Class SessionEvent.Builder
-
- All Implemented Interfaces:
-
org.apache.avro.data.RecordBuilder
public class SessionEvent.Builder extends SpecificRecordBuilderBase<T> implements RecordBuilder<T>
RecordBuilder for SessionEvent instances.
-
-
Field Summary
Fields Modifier and Type Field Description public MessageDirection
messageDirection
public Instant
timestamp
public String
sessionId
public Integer
sequenceNum
public HoldingIdentity
initiatingIdentity
public HoldingIdentity.Builder
initiatingIdentityBuilder
public HoldingIdentity
initiatedIdentity
public HoldingIdentity.Builder
initiatedIdentityBuilder
public Object
payload
public KeyValuePairList
contextSessionProperties
public KeyValuePairList.Builder
contextSessionPropertiesBuilder
-
Method Summary
Modifier and Type Method Description MessageDirection
getMessageDirection()
Gets the value of the 'messageDirection' field. SessionEvent.Builder
setMessageDirection(MessageDirection value)
Sets the value of the 'messageDirection' field. Instant
getTimestamp()
Gets the value of the 'timestamp' field. SessionEvent.Builder
setTimestamp(Instant value)
Sets the value of the 'timestamp' field. String
getSessionId()
Gets the value of the 'sessionId' field. SessionEvent.Builder
setSessionId(String value)
Sets the value of the 'sessionId' field. Integer
getSequenceNum()
Gets the value of the 'sequenceNum' field. SessionEvent.Builder
setSequenceNum(Integer value)
Sets the value of the 'sequenceNum' field. HoldingIdentity
getInitiatingIdentity()
Gets the value of the 'initiatingIdentity' field. SessionEvent.Builder
setInitiatingIdentity(HoldingIdentity value)
Sets the value of the 'initiatingIdentity' field. HoldingIdentity.Builder
getInitiatingIdentityBuilder()
Gets the Builder instance for the 'initiatingIdentity' field and creates one if it doesn't exist yet. SessionEvent.Builder
setInitiatingIdentityBuilder(HoldingIdentity.Builder value)
Sets the Builder instance for the 'initiatingIdentity' field Identity of party who started a session. HoldingIdentity
getInitiatedIdentity()
Gets the value of the 'initiatedIdentity' field. SessionEvent.Builder
setInitiatedIdentity(HoldingIdentity value)
Sets the value of the 'initiatedIdentity' field. HoldingIdentity.Builder
getInitiatedIdentityBuilder()
Gets the Builder instance for the 'initiatedIdentity' field and creates one if it doesn't exist yet. SessionEvent.Builder
setInitiatedIdentityBuilder(HoldingIdentity.Builder value)
Sets the Builder instance for the 'initiatedIdentity' field Identity of party in the session who was initiated. Object
getPayload()
Gets the value of the 'payload' field. SessionEvent.Builder
setPayload(Object value)
Sets the value of the 'payload' field. KeyValuePairList
getContextSessionProperties()
Gets the value of the 'contextSessionProperties' field. SessionEvent.Builder
setContextSessionProperties(KeyValuePairList value)
Sets the value of the 'contextSessionProperties' field. KeyValuePairList.Builder
getContextSessionPropertiesBuilder()
Gets the Builder instance for the 'contextSessionProperties' field and creates one if it doesn't exist yet. SessionEvent.Builder
setContextSessionPropertiesBuilder(KeyValuePairList.Builder value)
Sets the Builder instance for the 'contextSessionProperties' field A map of context properties received from a counterparty related to this flow session. boolean
hasMessageDirection()
Checks whether the 'messageDirection' field has been set. SessionEvent.Builder
clearMessageDirection()
Clears the value of the 'messageDirection' field. boolean
hasTimestamp()
Checks whether the 'timestamp' field has been set. SessionEvent.Builder
clearTimestamp()
Clears the value of the 'timestamp' field. boolean
hasSessionId()
Checks whether the 'sessionId' field has been set. SessionEvent.Builder
clearSessionId()
Clears the value of the 'sessionId' field. boolean
hasSequenceNum()
Checks whether the 'sequenceNum' field has been set. SessionEvent.Builder
clearSequenceNum()
Clears the value of the 'sequenceNum' field. boolean
hasInitiatingIdentity()
Checks whether the 'initiatingIdentity' field has been set. boolean
hasInitiatingIdentityBuilder()
Checks whether the 'initiatingIdentity' field has an active Builder instance Identity of party who started a session. SessionEvent.Builder
clearInitiatingIdentity()
Clears the value of the 'initiatingIdentity' field. boolean
hasInitiatedIdentity()
Checks whether the 'initiatedIdentity' field has been set. boolean
hasInitiatedIdentityBuilder()
Checks whether the 'initiatedIdentity' field has an active Builder instance Identity of party in the session who was initiated. SessionEvent.Builder
clearInitiatedIdentity()
Clears the value of the 'initiatedIdentity' field. boolean
hasPayload()
Checks whether the 'payload' field has been set. SessionEvent.Builder
clearPayload()
Clears the value of the 'payload' field. boolean
hasContextSessionProperties()
Checks whether the 'contextSessionProperties' field has been set. boolean
hasContextSessionPropertiesBuilder()
Checks whether the 'contextSessionProperties' field has an active Builder instance A map of context properties received from a counterparty related to this flow session. SessionEvent.Builder
clearContextSessionProperties()
Clears the value of the 'contextSessionProperties' field. SessionEvent
build()
-
-
Method Detail
-
getMessageDirection
MessageDirection getMessageDirection()
Gets the value of the 'messageDirection' field. INBOUND for messages originating from a counterparty. OUTBOUND for messages to be sent to a counterparty.
-
setMessageDirection
SessionEvent.Builder setMessageDirection(MessageDirection value)
Sets the value of the 'messageDirection' field. INBOUND for messages originating from a counterparty. OUTBOUND for messages to be sent to a counterparty.
- Parameters:
value
- The value of 'messageDirection'.
-
getTimestamp
Instant getTimestamp()
Gets the value of the 'timestamp' field. Time ([Instant]) in milliseconds when the session event was created
-
setTimestamp
SessionEvent.Builder setTimestamp(Instant value)
Sets the value of the 'timestamp' field. Time ([Instant]) in milliseconds when the session event was created
- Parameters:
value
- The value of 'timestamp'.
-
getSessionId
String getSessionId()
Gets the value of the 'sessionId' field. UUID for the session. The initiated party sessionID will have a suffix of `-INITIATED`
-
setSessionId
SessionEvent.Builder setSessionId(String value)
Sets the value of the 'sessionId' field. UUID for the session. The initiated party sessionID will have a suffix of `-INITIATED`
- Parameters:
value
- The value of 'sessionId'.
-
getSequenceNum
Integer getSequenceNum()
Gets the value of the 'sequenceNum' field. Unique id for a message sent to a party. sequenceNum is not bidirectional. Each party will track outbound/inbound sequence numbers separately.
-
setSequenceNum
SessionEvent.Builder setSequenceNum(Integer value)
Sets the value of the 'sequenceNum' field. Unique id for a message sent to a party. sequenceNum is not bidirectional. Each party will track outbound/inbound sequence numbers separately.
- Parameters:
value
- The value of 'sequenceNum'.
-
getInitiatingIdentity
HoldingIdentity getInitiatingIdentity()
Gets the value of the 'initiatingIdentity' field. Identity of party who started a session.
-
setInitiatingIdentity
SessionEvent.Builder setInitiatingIdentity(HoldingIdentity value)
Sets the value of the 'initiatingIdentity' field. Identity of party who started a session.
- Parameters:
value
- The value of 'initiatingIdentity'.
-
getInitiatingIdentityBuilder
HoldingIdentity.Builder getInitiatingIdentityBuilder()
Gets the Builder instance for the 'initiatingIdentity' field and creates one if it doesn't exist yet. Identity of party who started a session.
-
setInitiatingIdentityBuilder
SessionEvent.Builder setInitiatingIdentityBuilder(HoldingIdentity.Builder value)
Sets the Builder instance for the 'initiatingIdentity' field Identity of party who started a session.
- Parameters:
value
- The builder instance that must be set.
-
getInitiatedIdentity
HoldingIdentity getInitiatedIdentity()
Gets the value of the 'initiatedIdentity' field. Identity of party in the session who was initiated.
-
setInitiatedIdentity
SessionEvent.Builder setInitiatedIdentity(HoldingIdentity value)
Sets the value of the 'initiatedIdentity' field. Identity of party in the session who was initiated.
- Parameters:
value
- The value of 'initiatedIdentity'.
-
getInitiatedIdentityBuilder
HoldingIdentity.Builder getInitiatedIdentityBuilder()
Gets the Builder instance for the 'initiatedIdentity' field and creates one if it doesn't exist yet. Identity of party in the session who was initiated.
-
setInitiatedIdentityBuilder
SessionEvent.Builder setInitiatedIdentityBuilder(HoldingIdentity.Builder value)
Sets the Builder instance for the 'initiatedIdentity' field Identity of party in the session who was initiated.
- Parameters:
value
- The builder instance that must be set.
-
getPayload
Object getPayload()
Gets the value of the 'payload' field.
-
setPayload
SessionEvent.Builder setPayload(Object value)
Sets the value of the 'payload' field.
- Parameters:
value
- The value of 'payload'.
-
getContextSessionProperties
KeyValuePairList getContextSessionProperties()
Gets the value of the 'contextSessionProperties' field. A map of context properties received from a counterparty related to this flow session. This is static data and will be set to null when previously sent.
-
setContextSessionProperties
SessionEvent.Builder setContextSessionProperties(KeyValuePairList value)
Sets the value of the 'contextSessionProperties' field. A map of context properties received from a counterparty related to this flow session. This is static data and will be set to null when previously sent.
- Parameters:
value
- The value of 'contextSessionProperties'.
-
getContextSessionPropertiesBuilder
KeyValuePairList.Builder getContextSessionPropertiesBuilder()
Gets the Builder instance for the 'contextSessionProperties' field and creates one if it doesn't exist yet. A map of context properties received from a counterparty related to this flow session. This is static data and will be set to null when previously sent.
-
setContextSessionPropertiesBuilder
SessionEvent.Builder setContextSessionPropertiesBuilder(KeyValuePairList.Builder value)
Sets the Builder instance for the 'contextSessionProperties' field A map of context properties received from a counterparty related to this flow session. This is static data and will be set to null when previously sent.
- Parameters:
value
- The builder instance that must be set.
-
hasMessageDirection
boolean hasMessageDirection()
Checks whether the 'messageDirection' field has been set. INBOUND for messages originating from a counterparty. OUTBOUND for messages to be sent to a counterparty.
-
clearMessageDirection
SessionEvent.Builder clearMessageDirection()
Clears the value of the 'messageDirection' field. INBOUND for messages originating from a counterparty. OUTBOUND for messages to be sent to a counterparty.
-
hasTimestamp
boolean hasTimestamp()
Checks whether the 'timestamp' field has been set. Time ([Instant]) in milliseconds when the session event was created
-
clearTimestamp
SessionEvent.Builder clearTimestamp()
Clears the value of the 'timestamp' field. Time ([Instant]) in milliseconds when the session event was created
-
hasSessionId
boolean hasSessionId()
Checks whether the 'sessionId' field has been set. UUID for the session. The initiated party sessionID will have a suffix of `-INITIATED`
-
clearSessionId
SessionEvent.Builder clearSessionId()
Clears the value of the 'sessionId' field. UUID for the session. The initiated party sessionID will have a suffix of `-INITIATED`
-
hasSequenceNum
boolean hasSequenceNum()
Checks whether the 'sequenceNum' field has been set. Unique id for a message sent to a party. sequenceNum is not bidirectional. Each party will track outbound/inbound sequence numbers separately.
-
clearSequenceNum
SessionEvent.Builder clearSequenceNum()
Clears the value of the 'sequenceNum' field. Unique id for a message sent to a party. sequenceNum is not bidirectional. Each party will track outbound/inbound sequence numbers separately.
-
hasInitiatingIdentity
boolean hasInitiatingIdentity()
Checks whether the 'initiatingIdentity' field has been set. Identity of party who started a session.
-
hasInitiatingIdentityBuilder
boolean hasInitiatingIdentityBuilder()
Checks whether the 'initiatingIdentity' field has an active Builder instance Identity of party who started a session.
-
clearInitiatingIdentity
SessionEvent.Builder clearInitiatingIdentity()
Clears the value of the 'initiatingIdentity' field. Identity of party who started a session.
-
hasInitiatedIdentity
boolean hasInitiatedIdentity()
Checks whether the 'initiatedIdentity' field has been set. Identity of party in the session who was initiated.
-
hasInitiatedIdentityBuilder
boolean hasInitiatedIdentityBuilder()
Checks whether the 'initiatedIdentity' field has an active Builder instance Identity of party in the session who was initiated.
-
clearInitiatedIdentity
SessionEvent.Builder clearInitiatedIdentity()
Clears the value of the 'initiatedIdentity' field. Identity of party in the session who was initiated.
-
hasPayload
boolean hasPayload()
Checks whether the 'payload' field has been set.
-
clearPayload
SessionEvent.Builder clearPayload()
Clears the value of the 'payload' field.
-
hasContextSessionProperties
boolean hasContextSessionProperties()
Checks whether the 'contextSessionProperties' field has been set. A map of context properties received from a counterparty related to this flow session. This is static data and will be set to null when previously sent.
-
hasContextSessionPropertiesBuilder
boolean hasContextSessionPropertiesBuilder()
Checks whether the 'contextSessionProperties' field has an active Builder instance A map of context properties received from a counterparty related to this flow session. This is static data and will be set to null when previously sent.
-
clearContextSessionProperties
SessionEvent.Builder clearContextSessionProperties()
Clears the value of the 'contextSessionProperties' field. A map of context properties received from a counterparty related to this flow session. This is static data and will be set to null when previously sent.
-
build
SessionEvent build()
-
-
-
-