Record Class GatewayMessageHandlerConfig
java.lang.Object
java.lang.Record
com.inductiveautomation.eventstream.config.handler.GatewayMessageHandlerConfig
public record GatewayMessageHandlerConfig(ExpressionValue project, ExpressionValue messageHandler, ExpressionValue payload, List<GatewayMessageHandlerConfig.Property> properties)
extends Record
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionGatewayMessageHandlerConfig(ExpressionValue project, ExpressionValue messageHandler, ExpressionValue payload, List<GatewayMessageHandlerConfig.Property> properties) Creates an instance of aGatewayMessageHandlerConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.static GatewayMessageHandlerConfigfromJson(com.inductiveautomation.ignition.common.gson.JsonObject json) final inthashCode()Returns a hash code value for this object.Returns the value of themessageHandlerrecord component.payload()Returns the value of thepayloadrecord component.project()Returns the value of theprojectrecord component.Returns the value of thepropertiesrecord component.com.inductiveautomation.ignition.common.gson.JsonObjecttoJson()final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
GatewayMessageHandlerConfig
public GatewayMessageHandlerConfig(ExpressionValue project, ExpressionValue messageHandler, ExpressionValue payload, List<GatewayMessageHandlerConfig.Property> properties) Creates an instance of aGatewayMessageHandlerConfigrecord class.- Parameters:
project- the value for theprojectrecord componentmessageHandler- the value for themessageHandlerrecord componentpayload- the value for thepayloadrecord componentproperties- the value for thepropertiesrecord component
-
-
Method Details
-
fromJson
public static GatewayMessageHandlerConfig fromJson(@Nullable com.inductiveautomation.ignition.common.gson.JsonObject json) -
toJson
public com.inductiveautomation.ignition.common.gson.JsonObject toJson() -
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. All components in this record class are compared withObjects::equals(Object,Object). -
project
Returns the value of theprojectrecord component.- Returns:
- the value of the
projectrecord component
-
messageHandler
Returns the value of themessageHandlerrecord component.- Returns:
- the value of the
messageHandlerrecord component
-
payload
Returns the value of thepayloadrecord component.- Returns:
- the value of the
payloadrecord component
-
properties
Returns the value of thepropertiesrecord component.- Returns:
- the value of the
propertiesrecord component
-