Class FlowStatus.Builder
-
- All Implemented Interfaces:
-
org.apache.avro.data.RecordBuilder
public class FlowStatus.Builder extends SpecificRecordBuilderBase<T> implements RecordBuilder<T>
RecordBuilder for FlowStatus instances.
-
-
Field Summary
Fields Modifier and Type Field Description public FlowKey
key
public FlowKey.Builder
keyBuilder
public FlowInitiatorType
initiatorType
public String
flowId
public String
flowClassName
public FlowStates
flowStatus
public String
result
public ExceptionEnvelope
error
public ExceptionEnvelope.Builder
errorBuilder
public String
processingTerminatedReason
public Instant
createdTimestamp
public Instant
lastUpdateTimestamp
-
Method Summary
Modifier and Type Method Description FlowKey
getKey()
Gets the value of the 'key' field. FlowStatus.Builder
setKey(FlowKey value)
Sets the value of the 'key' field. FlowKey.Builder
getKeyBuilder()
Gets the Builder instance for the 'key' field and creates one if it doesn't exist yet. FlowStatus.Builder
setKeyBuilder(FlowKey.Builder value)
Sets the Builder instance for the 'key' field The unique ID for the status FlowInitiatorType
getInitiatorType()
Gets the value of the 'initiatorType' field. FlowStatus.Builder
setInitiatorType(FlowInitiatorType value)
Sets the value of the 'initiatorType' field. String
getFlowId()
Gets the value of the 'flowId' field. FlowStatus.Builder
setFlowId(String value)
Sets the value of the 'flowId' field. String
getFlowClassName()
Gets the value of the 'flowClassName' field. FlowStatus.Builder
setFlowClassName(String value)
Sets the value of the 'flowClassName' field. FlowStates
getFlowStatus()
Gets the value of the 'flowStatus' field. FlowStatus.Builder
setFlowStatus(FlowStates value)
Sets the value of the 'flowStatus' field. String
getResult()
Gets the value of the 'result' field. FlowStatus.Builder
setResult(String value)
Sets the value of the 'result' field. ExceptionEnvelope
getError()
Gets the value of the 'error' field. FlowStatus.Builder
setError(ExceptionEnvelope value)
Sets the value of the 'error' field. ExceptionEnvelope.Builder
getErrorBuilder()
Gets the Builder instance for the 'error' field and creates one if it doesn't exist yet. FlowStatus.Builder
setErrorBuilder(ExceptionEnvelope.Builder value)
Sets the Builder instance for the 'error' field Optional error message, this will be set if the flow status is 'FAILED' String
getProcessingTerminatedReason()
Gets the value of the 'processingTerminatedReason' field. FlowStatus.Builder
setProcessingTerminatedReason(String value)
Sets the value of the 'processingTerminatedReason' field. Instant
getCreatedTimestamp()
Gets the value of the 'createdTimestamp' field. FlowStatus.Builder
setCreatedTimestamp(Instant value)
Sets the value of the 'createdTimestamp' field. Instant
getLastUpdateTimestamp()
Gets the value of the 'lastUpdateTimestamp' field. FlowStatus.Builder
setLastUpdateTimestamp(Instant value)
Sets the value of the 'lastUpdateTimestamp' field. boolean
hasKey()
Checks whether the 'key' field has been set. boolean
hasKeyBuilder()
Checks whether the 'key' field has an active Builder instance The unique ID for the status FlowStatus.Builder
clearKey()
Clears the value of the 'key' field. boolean
hasInitiatorType()
Checks whether the 'initiatorType' field has been set. FlowStatus.Builder
clearInitiatorType()
Clears the value of the 'initiatorType' field. boolean
hasFlowId()
Checks whether the 'flowId' field has been set. FlowStatus.Builder
clearFlowId()
Clears the value of the 'flowId' field. boolean
hasFlowClassName()
Checks whether the 'flowClassName' field has been set. FlowStatus.Builder
clearFlowClassName()
Clears the value of the 'flowClassName' field. boolean
hasFlowStatus()
Checks whether the 'flowStatus' field has been set. FlowStatus.Builder
clearFlowStatus()
Clears the value of the 'flowStatus' field. boolean
hasResult()
Checks whether the 'result' field has been set. FlowStatus.Builder
clearResult()
Clears the value of the 'result' field. boolean
hasError()
Checks whether the 'error' field has been set. boolean
hasErrorBuilder()
Checks whether the 'error' field has an active Builder instance Optional error message, this will be set if the flow status is 'FAILED' FlowStatus.Builder
clearError()
Clears the value of the 'error' field. boolean
hasProcessingTerminatedReason()
Checks whether the 'processingTerminatedReason' field has been set. FlowStatus.Builder
clearProcessingTerminatedReason()
Clears the value of the 'processingTerminatedReason' field. boolean
hasCreatedTimestamp()
Checks whether the 'createdTimestamp' field has been set. FlowStatus.Builder
clearCreatedTimestamp()
Clears the value of the 'createdTimestamp' field. boolean
hasLastUpdateTimestamp()
Checks whether the 'lastUpdateTimestamp' field has been set. FlowStatus.Builder
clearLastUpdateTimestamp()
Clears the value of the 'lastUpdateTimestamp' field. FlowStatus
build()
-
-
Method Detail
-
setKey
FlowStatus.Builder setKey(FlowKey value)
Sets the value of the 'key' field. The unique ID for the status
- Parameters:
value
- The value of 'key'.
-
getKeyBuilder
FlowKey.Builder getKeyBuilder()
Gets the Builder instance for the 'key' field and creates one if it doesn't exist yet. The unique ID for the status
-
setKeyBuilder
FlowStatus.Builder setKeyBuilder(FlowKey.Builder value)
Sets the Builder instance for the 'key' field The unique ID for the status
- Parameters:
value
- The builder instance that must be set.
-
getInitiatorType
FlowInitiatorType getInitiatorType()
Gets the value of the 'initiatorType' field. The type of initiator that started the flow
-
setInitiatorType
FlowStatus.Builder setInitiatorType(FlowInitiatorType value)
Sets the value of the 'initiatorType' field. The type of initiator that started the flow
- Parameters:
value
- The value of 'initiatorType'.
-
setFlowId
FlowStatus.Builder setFlowId(String value)
Sets the value of the 'flowId' field. The unique flow ID
- Parameters:
value
- The value of 'flowId'.
-
getFlowClassName
String getFlowClassName()
Gets the value of the 'flowClassName' field. The fully qualified class name of the flow
-
setFlowClassName
FlowStatus.Builder setFlowClassName(String value)
Sets the value of the 'flowClassName' field. The fully qualified class name of the flow
- Parameters:
value
- The value of 'flowClassName'.
-
getFlowStatus
FlowStates getFlowStatus()
Gets the value of the 'flowStatus' field. The current processing status of a flow
-
setFlowStatus
FlowStatus.Builder setFlowStatus(FlowStates value)
Sets the value of the 'flowStatus' field. The current processing status of a flow
- Parameters:
value
- The value of 'flowStatus'.
-
getResult
String getResult()
Gets the value of the 'result' field. Optional result, this contains the result from the flow will only be set if the flow status is 'COMPLETED'
-
setResult
FlowStatus.Builder setResult(String value)
Sets the value of the 'result' field. Optional result, this contains the result from the flow will only be set if the flow status is 'COMPLETED'
- Parameters:
value
- The value of 'result'.
-
getError
ExceptionEnvelope getError()
Gets the value of the 'error' field. Optional error message, this will be set if the flow status is 'FAILED'
-
setError
FlowStatus.Builder setError(ExceptionEnvelope value)
Sets the value of the 'error' field. Optional error message, this will be set if the flow status is 'FAILED'
- Parameters:
value
- The value of 'error'.
-
getErrorBuilder
ExceptionEnvelope.Builder getErrorBuilder()
Gets the Builder instance for the 'error' field and creates one if it doesn't exist yet. Optional error message, this will be set if the flow status is 'FAILED'
-
setErrorBuilder
FlowStatus.Builder setErrorBuilder(ExceptionEnvelope.Builder value)
Sets the Builder instance for the 'error' field Optional error message, this will be set if the flow status is 'FAILED'
- Parameters:
value
- The builder instance that must be set.
-
getProcessingTerminatedReason
String getProcessingTerminatedReason()
Gets the value of the 'processingTerminatedReason' field. Optional message indicating reasoning why processing a flow has been terminated.
-
setProcessingTerminatedReason
FlowStatus.Builder setProcessingTerminatedReason(String value)
Sets the value of the 'processingTerminatedReason' field. Optional message indicating reasoning why processing a flow has been terminated.
- Parameters:
value
- The value of 'processingTerminatedReason'.
-
getCreatedTimestamp
Instant getCreatedTimestamp()
Gets the value of the 'createdTimestamp' field. The date the flow was created.
-
setCreatedTimestamp
FlowStatus.Builder setCreatedTimestamp(Instant value)
Sets the value of the 'createdTimestamp' field. The date the flow was created.
- Parameters:
value
- The value of 'createdTimestamp'.
-
getLastUpdateTimestamp
Instant getLastUpdateTimestamp()
Gets the value of the 'lastUpdateTimestamp' field. The date and time this status update was published.
-
setLastUpdateTimestamp
FlowStatus.Builder setLastUpdateTimestamp(Instant value)
Sets the value of the 'lastUpdateTimestamp' field. The date and time this status update was published.
- Parameters:
value
- The value of 'lastUpdateTimestamp'.
-
hasKey
boolean hasKey()
Checks whether the 'key' field has been set. The unique ID for the status
-
hasKeyBuilder
boolean hasKeyBuilder()
Checks whether the 'key' field has an active Builder instance The unique ID for the status
-
clearKey
FlowStatus.Builder clearKey()
Clears the value of the 'key' field. The unique ID for the status
-
hasInitiatorType
boolean hasInitiatorType()
Checks whether the 'initiatorType' field has been set. The type of initiator that started the flow
-
clearInitiatorType
FlowStatus.Builder clearInitiatorType()
Clears the value of the 'initiatorType' field. The type of initiator that started the flow
-
hasFlowId
boolean hasFlowId()
Checks whether the 'flowId' field has been set. The unique flow ID
-
clearFlowId
FlowStatus.Builder clearFlowId()
Clears the value of the 'flowId' field. The unique flow ID
-
hasFlowClassName
boolean hasFlowClassName()
Checks whether the 'flowClassName' field has been set. The fully qualified class name of the flow
-
clearFlowClassName
FlowStatus.Builder clearFlowClassName()
Clears the value of the 'flowClassName' field. The fully qualified class name of the flow
-
hasFlowStatus
boolean hasFlowStatus()
Checks whether the 'flowStatus' field has been set. The current processing status of a flow
-
clearFlowStatus
FlowStatus.Builder clearFlowStatus()
Clears the value of the 'flowStatus' field. The current processing status of a flow
-
hasResult
boolean hasResult()
Checks whether the 'result' field has been set. Optional result, this contains the result from the flow will only be set if the flow status is 'COMPLETED'
-
clearResult
FlowStatus.Builder clearResult()
Clears the value of the 'result' field. Optional result, this contains the result from the flow will only be set if the flow status is 'COMPLETED'
-
hasError
boolean hasError()
Checks whether the 'error' field has been set. Optional error message, this will be set if the flow status is 'FAILED'
-
hasErrorBuilder
boolean hasErrorBuilder()
Checks whether the 'error' field has an active Builder instance Optional error message, this will be set if the flow status is 'FAILED'
-
clearError
FlowStatus.Builder clearError()
Clears the value of the 'error' field. Optional error message, this will be set if the flow status is 'FAILED'
-
hasProcessingTerminatedReason
boolean hasProcessingTerminatedReason()
Checks whether the 'processingTerminatedReason' field has been set. Optional message indicating reasoning why processing a flow has been terminated.
-
clearProcessingTerminatedReason
FlowStatus.Builder clearProcessingTerminatedReason()
Clears the value of the 'processingTerminatedReason' field. Optional message indicating reasoning why processing a flow has been terminated.
-
hasCreatedTimestamp
boolean hasCreatedTimestamp()
Checks whether the 'createdTimestamp' field has been set. The date the flow was created.
-
clearCreatedTimestamp
FlowStatus.Builder clearCreatedTimestamp()
Clears the value of the 'createdTimestamp' field. The date the flow was created.
-
hasLastUpdateTimestamp
boolean hasLastUpdateTimestamp()
Checks whether the 'lastUpdateTimestamp' field has been set. The date and time this status update was published.
-
clearLastUpdateTimestamp
FlowStatus.Builder clearLastUpdateTimestamp()
Clears the value of the 'lastUpdateTimestamp' field. The date and time this status update was published.
-
build
FlowStatus build()
-
-
-
-