Class ExternalEventState.Builder
-
- All Implemented Interfaces:
-
org.apache.avro.data.RecordBuilder
public class ExternalEventState.Builder extends SpecificRecordBuilderBase<T> implements RecordBuilder<T>
RecordBuilder for ExternalEventState instances.
-
-
Field Summary
Fields Modifier and Type Field Description public String
requestId
public ExternalEventStateStatus
status
public ExternalEventStateStatus.Builder
statusBuilder
public ExternalEvent
eventToSend
public ExternalEvent.Builder
eventToSendBuilder
public int
retries
public String
factoryClassName
public Instant
sendTimestamp
public ExternalEventResponse
response
public ExternalEventResponse.Builder
responseBuilder
-
Method Summary
Modifier and Type Method Description String
getRequestId()
Gets the value of the 'requestId' field. ExternalEventState.Builder
setRequestId(String value)
Sets the value of the 'requestId' field. ExternalEventStateStatus
getStatus()
Gets the value of the 'status' field. ExternalEventState.Builder
setStatus(ExternalEventStateStatus value)
Sets the value of the 'status' field. ExternalEventStateStatus.Builder
getStatusBuilder()
Gets the Builder instance for the 'status' field and creates one if it doesn't exist yet. ExternalEventState.Builder
setStatusBuilder(ExternalEventStateStatus.Builder value)
Sets the Builder instance for the 'status' field Status of the state. ExternalEvent
getEventToSend()
Gets the value of the 'eventToSend' field. ExternalEventState.Builder
setEventToSend(ExternalEvent value)
Sets the value of the 'eventToSend' field. ExternalEvent.Builder
getEventToSendBuilder()
Gets the Builder instance for the 'eventToSend' field and creates one if it doesn't exist yet. ExternalEventState.Builder
setEventToSendBuilder(ExternalEvent.Builder value)
Sets the Builder instance for the 'eventToSend' field The event to send int
getRetries()
Gets the value of the 'retries' field. ExternalEventState.Builder
setRetries(int value)
Sets the value of the 'retries' field. String
getFactoryClassName()
Gets the value of the 'factoryClassName' field. ExternalEventState.Builder
setFactoryClassName(String value)
Sets the value of the 'factoryClassName' field. Instant
getSendTimestamp()
Gets the value of the 'sendTimestamp' field. ExternalEventState.Builder
setSendTimestamp(Instant value)
Sets the value of the 'sendTimestamp' field. ExternalEventResponse
getResponse()
Gets the value of the 'response' field. ExternalEventState.Builder
setResponse(ExternalEventResponse value)
Sets the value of the 'response' field. ExternalEventResponse.Builder
getResponseBuilder()
Gets the Builder instance for the 'response' field and creates one if it doesn't exist yet. ExternalEventState.Builder
setResponseBuilder(ExternalEventResponse.Builder value)
Sets the Builder instance for the 'response' field The response received from the external worker. boolean
hasRequestId()
Checks whether the 'requestId' field has been set. ExternalEventState.Builder
clearRequestId()
Clears the value of the 'requestId' field. boolean
hasStatus()
Checks whether the 'status' field has been set. boolean
hasStatusBuilder()
Checks whether the 'status' field has an active Builder instance Status of the state. ExternalEventState.Builder
clearStatus()
Clears the value of the 'status' field. boolean
hasEventToSend()
Checks whether the 'eventToSend' field has been set. boolean
hasEventToSendBuilder()
Checks whether the 'eventToSend' field has an active Builder instance The event to send ExternalEventState.Builder
clearEventToSend()
Clears the value of the 'eventToSend' field. boolean
hasRetries()
Checks whether the 'retries' field has been set. ExternalEventState.Builder
clearRetries()
Clears the value of the 'retries' field. boolean
hasFactoryClassName()
Checks whether the 'factoryClassName' field has been set. ExternalEventState.Builder
clearFactoryClassName()
Clears the value of the 'factoryClassName' field. boolean
hasSendTimestamp()
Checks whether the 'sendTimestamp' field has been set. ExternalEventState.Builder
clearSendTimestamp()
Clears the value of the 'sendTimestamp' field. boolean
hasResponse()
Checks whether the 'response' field has been set. boolean
hasResponseBuilder()
Checks whether the 'response' field has an active Builder instance The response received from the external worker. ExternalEventState.Builder
clearResponse()
Clears the value of the 'response' field. ExternalEventState
build()
-
-
Method Detail
-
getRequestId
String getRequestId()
Gets the value of the 'requestId' field. Unique ID of a single request. The ID remains the same for each resend.
-
setRequestId
ExternalEventState.Builder setRequestId(String value)
Sets the value of the 'requestId' field. Unique ID of a single request. The ID remains the same for each resend.
- Parameters:
value
- The value of 'requestId'.
-
getStatus
ExternalEventStateStatus getStatus()
Gets the value of the 'status' field. Status of the state.
-
setStatus
ExternalEventState.Builder setStatus(ExternalEventStateStatus value)
Sets the value of the 'status' field. Status of the state.
- Parameters:
value
- The value of 'status'.
-
getStatusBuilder
ExternalEventStateStatus.Builder getStatusBuilder()
Gets the Builder instance for the 'status' field and creates one if it doesn't exist yet. Status of the state.
-
setStatusBuilder
ExternalEventState.Builder setStatusBuilder(ExternalEventStateStatus.Builder value)
Sets the Builder instance for the 'status' field Status of the state.
- Parameters:
value
- The builder instance that must be set.
-
getEventToSend
ExternalEvent getEventToSend()
Gets the value of the 'eventToSend' field. The event to send
-
setEventToSend
ExternalEventState.Builder setEventToSend(ExternalEvent value)
Sets the value of the 'eventToSend' field. The event to send
- Parameters:
value
- The value of 'eventToSend'.
-
getEventToSendBuilder
ExternalEvent.Builder getEventToSendBuilder()
Gets the Builder instance for the 'eventToSend' field and creates one if it doesn't exist yet. The event to send
-
setEventToSendBuilder
ExternalEventState.Builder setEventToSendBuilder(ExternalEvent.Builder value)
Sets the Builder instance for the 'eventToSend' field The event to send
- Parameters:
value
- The builder instance that must be set.
-
getRetries
int getRetries()
Gets the value of the 'retries' field. The amount of times the request has been sent.
-
setRetries
ExternalEventState.Builder setRetries(int value)
Sets the value of the 'retries' field. The amount of times the request has been sent.
- Parameters:
value
- The value of 'retries'.
-
getFactoryClassName
String getFactoryClassName()
Gets the value of the 'factoryClassName' field. The name of the factory to use when resuming the flow.
-
setFactoryClassName
ExternalEventState.Builder setFactoryClassName(String value)
Sets the value of the 'factoryClassName' field. The name of the factory to use when resuming the flow.
- Parameters:
value
- The value of 'factoryClassName'.
-
getSendTimestamp
Instant getSendTimestamp()
Gets the value of the 'sendTimestamp' field. Timestamp of when to send a message. If this time is in the past, then the message needs to be (re)sent.
-
setSendTimestamp
ExternalEventState.Builder setSendTimestamp(Instant value)
Sets the value of the 'sendTimestamp' field. Timestamp of when to send a message. If this time is in the past, then the message needs to be (re)sent.
- Parameters:
value
- The value of 'sendTimestamp'.
-
getResponse
ExternalEventResponse getResponse()
Gets the value of the 'response' field. The response received from the external worker.
-
setResponse
ExternalEventState.Builder setResponse(ExternalEventResponse value)
Sets the value of the 'response' field. The response received from the external worker.
- Parameters:
value
- The value of 'response'.
-
getResponseBuilder
ExternalEventResponse.Builder getResponseBuilder()
Gets the Builder instance for the 'response' field and creates one if it doesn't exist yet. The response received from the external worker.
-
setResponseBuilder
ExternalEventState.Builder setResponseBuilder(ExternalEventResponse.Builder value)
Sets the Builder instance for the 'response' field The response received from the external worker.
- Parameters:
value
- The builder instance that must be set.
-
hasRequestId
boolean hasRequestId()
Checks whether the 'requestId' field has been set. Unique ID of a single request. The ID remains the same for each resend.
-
clearRequestId
ExternalEventState.Builder clearRequestId()
Clears the value of the 'requestId' field. Unique ID of a single request. The ID remains the same for each resend.
-
hasStatus
boolean hasStatus()
Checks whether the 'status' field has been set. Status of the state.
-
hasStatusBuilder
boolean hasStatusBuilder()
Checks whether the 'status' field has an active Builder instance Status of the state.
-
clearStatus
ExternalEventState.Builder clearStatus()
Clears the value of the 'status' field. Status of the state.
-
hasEventToSend
boolean hasEventToSend()
Checks whether the 'eventToSend' field has been set. The event to send
-
hasEventToSendBuilder
boolean hasEventToSendBuilder()
Checks whether the 'eventToSend' field has an active Builder instance The event to send
-
clearEventToSend
ExternalEventState.Builder clearEventToSend()
Clears the value of the 'eventToSend' field. The event to send
-
hasRetries
boolean hasRetries()
Checks whether the 'retries' field has been set. The amount of times the request has been sent.
-
clearRetries
ExternalEventState.Builder clearRetries()
Clears the value of the 'retries' field. The amount of times the request has been sent.
-
hasFactoryClassName
boolean hasFactoryClassName()
Checks whether the 'factoryClassName' field has been set. The name of the factory to use when resuming the flow.
-
clearFactoryClassName
ExternalEventState.Builder clearFactoryClassName()
Clears the value of the 'factoryClassName' field. The name of the factory to use when resuming the flow.
-
hasSendTimestamp
boolean hasSendTimestamp()
Checks whether the 'sendTimestamp' field has been set. Timestamp of when to send a message. If this time is in the past, then the message needs to be (re)sent.
-
clearSendTimestamp
ExternalEventState.Builder clearSendTimestamp()
Clears the value of the 'sendTimestamp' field. Timestamp of when to send a message. If this time is in the past, then the message needs to be (re)sent.
-
hasResponse
boolean hasResponse()
Checks whether the 'response' field has been set. The response received from the external worker.
-
hasResponseBuilder
boolean hasResponseBuilder()
Checks whether the 'response' field has an active Builder instance The response received from the external worker.
-
clearResponse
ExternalEventState.Builder clearResponse()
Clears the value of the 'response' field. The response received from the external worker.
-
build
ExternalEventState build()
-
-
-
-