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
WorkflowExecutionCancelRequestedevent.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceWorkflowExecutionCancelRequestedEventAttributes.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static WorkflowExecutionCancelRequestedEventAttributes.Builderbuilder()WorkflowExecutionCancelRequestedCausecause()If set, indicates that the request to cancel the workflow execution was automatically generated, and specifies the cause.StringcauseAsString()If set, indicates that the request to cancel the workflow execution was automatically generated, and specifies the cause.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)LongexternalInitiatedEventId()The ID of theRequestCancelExternalWorkflowExecutionInitiatedevent corresponding to theRequestCancelExternalWorkflowExecutiondecision to cancel this workflow execution.The source event with this ID can be found in the history of the source workflow execution.WorkflowExecutionexternalWorkflowExecution()The external workflow execution for which the cancellation was requested.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends WorkflowExecutionCancelRequestedEventAttributes.Builder>serializableBuilderClass()WorkflowExecutionCancelRequestedEventAttributes.BuildertoBuilder()StringtoString()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
RequestCancelExternalWorkflowExecutionInitiatedevent corresponding to theRequestCancelExternalWorkflowExecutiondecision 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
RequestCancelExternalWorkflowExecutionInitiatedevent corresponding to theRequestCancelExternalWorkflowExecutiondecision 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:
toBuilderin 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:
equalsBySdkFieldsin 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:
sdkFieldNameToFieldin interfaceSdkPojo
-
-