Package net.corda.data.p2p.gateway
Class GatewayMessage.Builder
-
- All Implemented Interfaces:
-
org.apache.avro.data.RecordBuilder
public class GatewayMessage.Builder extends SpecificRecordBuilderBase<T> implements RecordBuilder<T>
RecordBuilder for GatewayMessage instances.
-
-
Method Summary
Modifier and Type Method Description String
getId()
Gets the value of the 'id' field. GatewayMessage.Builder
setId(String value)
Sets the value of the 'id' field. Object
getPayload()
Gets the value of the 'payload' field. GatewayMessage.Builder
setPayload(Object value)
Sets the value of the 'payload' field. boolean
hasId()
Checks whether the 'id' field has been set. GatewayMessage.Builder
clearId()
Clears the value of the 'id' field. boolean
hasPayload()
Checks whether the 'payload' field has been set. GatewayMessage.Builder
clearPayload()
Clears the value of the 'payload' field. GatewayMessage
build()
-
-
Method Detail
-
getId
String getId()
Gets the value of the 'id' field. A unique identifier of the message used for correlation to the response.
-
setId
GatewayMessage.Builder setId(String value)
Sets the value of the 'id' field. A unique identifier of the message used for correlation to the response.
- Parameters:
value
- The value of 'id'.
-
getPayload
Object getPayload()
Gets the value of the 'payload' field.
-
setPayload
GatewayMessage.Builder setPayload(Object value)
Sets the value of the 'payload' field.
- Parameters:
value
- The value of 'payload'.
-
hasId
boolean hasId()
Checks whether the 'id' field has been set. A unique identifier of the message used for correlation to the response.
-
clearId
GatewayMessage.Builder clearId()
Clears the value of the 'id' field. A unique identifier of the message used for correlation to the response.
-
hasPayload
boolean hasPayload()
Checks whether the 'payload' field has been set.
-
clearPayload
GatewayMessage.Builder clearPayload()
Clears the value of the 'payload' field.
-
build
GatewayMessage build()
-
-
-
-