Record Class PushResponse
java.lang.Object
java.lang.Record
com.inductiveautomation.ignition.gateway.dataroutes.PushResponse
public record PushResponse(boolean success, List<PushResponse.ChangedResource> changes, @Nullable Throwable problem)
extends Record
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionPushResponse
(boolean success, List<PushResponse.ChangedResource> changes, Throwable problem) Creates an instance of aPushResponse
record class. -
Method Summary
Modifier and TypeMethodDescriptionchanges()
Returns the value of thechanges
record component.final boolean
Indicates whether some other object is "equal to" this one.static PushResponse
static com.inductiveautomation.ignition.common.gson.JsonObject
final int
hashCode()
Returns a hash code value for this object.problem()
Returns the value of theproblem
record component.boolean
success()
Returns the value of thesuccess
record component.static PushResponse
success
(List<ChangeOperation> changes) final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
PushResponse
public PushResponse(boolean success, List<PushResponse.ChangedResource> changes, @Nullable Throwable problem) Creates an instance of aPushResponse
record class.- Parameters:
success
- the value for thesuccess
record componentchanges
- the value for thechanges
record componentproblem
- the value for theproblem
record component
-
-
Method Details
-
success
-
failure
-
getJsonSchema
public static com.inductiveautomation.ignition.common.gson.JsonObject getJsonSchema() -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
success
public boolean success()Returns the value of thesuccess
record component.- Returns:
- the value of the
success
record component
-
changes
Returns the value of thechanges
record component.- Returns:
- the value of the
changes
record component
-
problem
Returns the value of theproblem
record component.- Returns:
- the value of the
problem
record component
-