Class PublishStateMachineVersionRequest

All Implemented Interfaces:
SdkPojo, ToCopyableBuilder<PublishStateMachineVersionRequest.Builder,PublishStateMachineVersionRequest>

@Generated("software.amazon.awssdk:codegen") public final class PublishStateMachineVersionRequest extends SfnRequest implements ToCopyableBuilder<PublishStateMachineVersionRequest.Builder,PublishStateMachineVersionRequest>
  • Method Details

    • stateMachineArn

      public final String stateMachineArn()

      The Amazon Resource Name (ARN) of the state machine.

      Returns:
      The Amazon Resource Name (ARN) of the state machine.
    • revisionId

      public final String revisionId()

      Only publish the state machine version if the current state machine's revision ID matches the specified ID.

      Use this option to avoid publishing a version if the state machine changed since you last updated it. If the specified revision ID doesn't match the state machine's current revision ID, the API returns ConflictException.

      To specify an initial revision ID for a state machine with no revision ID assigned, specify the string INITIAL for the revisionId parameter. For example, you can specify a revisionID of INITIAL when you create a state machine using the CreateStateMachine API action.

      Returns:
      Only publish the state machine version if the current state machine's revision ID matches the specified ID.

      Use this option to avoid publishing a version if the state machine changed since you last updated it. If the specified revision ID doesn't match the state machine's current revision ID, the API returns ConflictException.

      To specify an initial revision ID for a state machine with no revision ID assigned, specify the string INITIAL for the revisionId parameter. For example, you can specify a revisionID of INITIAL when you create a state machine using the CreateStateMachine API action.

    • description

      public final String description()

      An optional description of the state machine version.

      Returns:
      An optional description of the state machine version.
    • toBuilder

      Specified by:
      toBuilder in interface ToCopyableBuilder<PublishStateMachineVersionRequest.Builder,PublishStateMachineVersionRequest>
      Specified by:
      toBuilder in class SfnRequest
    • builder

    • serializableBuilderClass

      public static Class<? extends PublishStateMachineVersionRequest.Builder> serializableBuilderClass()
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class AwsRequest
    • equals

      public final boolean equals(Object obj)
      Overrides:
      equals in class AwsRequest
    • equalsBySdkFields

      public final boolean equalsBySdkFields(Object obj)
      Specified by:
      equalsBySdkFields in interface SdkPojo
    • 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.
      Overrides:
      toString in class Object
    • getValueForField

      public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
      Overrides:
      getValueForField in class SdkRequest
    • sdkFields

      public final List<SdkField<?>> sdkFields()
      Specified by:
      sdkFields in interface SdkPojo
    • sdkFieldNameToField

      public final Map<String,SdkField<?>> sdkFieldNameToField()
      Specified by:
      sdkFieldNameToField in interface SdkPojo