Class WorkflowExecutionCancelRequestedEventAttributes
- java.lang.Object
-
- software.amazon.awssdk.services.swf.model.WorkflowExecutionCancelRequestedEventAttributes
-
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<WorkflowExecutionCancelRequestedEventAttributes.Builder,WorkflowExecutionCancelRequestedEventAttributes>
@Generated("software.amazon.awssdk:codegen") public final class WorkflowExecutionCancelRequestedEventAttributes extends Object implements SdkPojo, Serializable, ToCopyableBuilder<WorkflowExecutionCancelRequestedEventAttributes.Builder,WorkflowExecutionCancelRequestedEventAttributes>
Provides the details of the
WorkflowExecutionCancelRequested
event.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
WorkflowExecutionCancelRequestedEventAttributes.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static WorkflowExecutionCancelRequestedEventAttributes.Builder
builder()
WorkflowExecutionCancelRequestedCause
cause()
If set, indicates that the request to cancel the workflow execution was automatically generated, and specifies the cause.String
causeAsString()
If set, indicates that the request to cancel the workflow execution was automatically generated, and specifies the cause.boolean
equals(Object obj)
boolean
equalsBySdkFields(Object obj)
Long
externalInitiatedEventId()
The ID of theRequestCancelExternalWorkflowExecutionInitiated
event corresponding to theRequestCancelExternalWorkflowExecution
decision to cancel this workflow execution.The source event with this ID can be found in the history of the source workflow execution.WorkflowExecution
externalWorkflowExecution()
The external workflow execution for which the cancellation was requested.<T> Optional<T>
getValueForField(String fieldName, Class<T> clazz)
int
hashCode()
Map<String,SdkField<?>>
sdkFieldNameToField()
List<SdkField<?>>
sdkFields()
static Class<? extends WorkflowExecutionCancelRequestedEventAttributes.Builder>
serializableBuilderClass()
WorkflowExecutionCancelRequestedEventAttributes.Builder
toBuilder()
String
toString()
Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
externalWorkflowExecution
public final WorkflowExecution externalWorkflowExecution()
The external workflow execution for which the cancellation was requested.
- Returns:
- The external workflow execution for which the cancellation was requested.
-
externalInitiatedEventId
public final Long externalInitiatedEventId()
The ID of the
RequestCancelExternalWorkflowExecutionInitiated
event corresponding to theRequestCancelExternalWorkflowExecution
decision to cancel this workflow execution.The source event with this ID can be found in the history of the source workflow execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.- Returns:
- The ID of the
RequestCancelExternalWorkflowExecutionInitiated
event corresponding to theRequestCancelExternalWorkflowExecution
decision to cancel this workflow execution.The source event with this ID can be found in the history of the source workflow execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
-
cause
public final WorkflowExecutionCancelRequestedCause cause()
If set, indicates that the request to cancel the workflow execution was automatically generated, and specifies the cause. This happens if the parent workflow execution times out or is terminated, and the child policy is set to cancel child executions.
If the service returns an enum value that is not available in the current SDK version,
cause()
will returnWorkflowExecutionCancelRequestedCause.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromcauseAsString()
.- Returns:
- If set, indicates that the request to cancel the workflow execution was automatically generated, and specifies the cause. This happens if the parent workflow execution times out or is terminated, and the child policy is set to cancel child executions.
- See Also:
WorkflowExecutionCancelRequestedCause
-
causeAsString
public final String causeAsString()
If set, indicates that the request to cancel the workflow execution was automatically generated, and specifies the cause. This happens if the parent workflow execution times out or is terminated, and the child policy is set to cancel child executions.
If the service returns an enum value that is not available in the current SDK version,
cause()
will returnWorkflowExecutionCancelRequestedCause.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromcauseAsString()
.- Returns:
- If set, indicates that the request to cancel the workflow execution was automatically generated, and specifies the cause. This happens if the parent workflow execution times out or is terminated, and the child policy is set to cancel child executions.
- See Also:
WorkflowExecutionCancelRequestedCause
-
toBuilder
public WorkflowExecutionCancelRequestedEventAttributes.Builder toBuilder()
- Specified by:
toBuilder
in interfaceToCopyableBuilder<WorkflowExecutionCancelRequestedEventAttributes.Builder,WorkflowExecutionCancelRequestedEventAttributes>
-
builder
public static WorkflowExecutionCancelRequestedEventAttributes.Builder builder()
-
serializableBuilderClass
public static Class<? extends WorkflowExecutionCancelRequestedEventAttributes.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFields
in interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToField
in interfaceSdkPojo
-
-