Class ConflictException

All Implemented Interfaces:
Serializable, SdkPojo, ToCopyableBuilder<ConflictException.Builder,ConflictException>

@Generated("software.amazon.awssdk:codegen") public final class ConflictException extends DevOpsAgentException implements ToCopyableBuilder<ConflictException.Builder,ConflictException>

The request conflicts with the current state of the resource.

See Also:
  • Method Details

    • toBuilder

      public ConflictException.Builder toBuilder()
      Description copied from class: AwsServiceException
      Create a AwsServiceException.Builder initialized with the properties of this AwsServiceException.
      Specified by:
      toBuilder in interface ToCopyableBuilder<ConflictException.Builder,ConflictException>
      Overrides:
      toBuilder in class DevOpsAgentException
      Returns:
      A new builder initialized with this config's properties.
    • builder

      public static ConflictException.Builder builder()
    • serializableBuilderClass

      public static Class<? extends ConflictException.Builder> serializableBuilderClass()
    • reason

      public ConflictExceptionReason reason()

      A machine-readable reason code that explains why the request conflicted with the current state of the resource. For example, CHAT_ARCHIVED indicates that the request acted on a chat that is archived. This field is absent when no specific reason applies.

      If the service returns an enum value that is not available in the current SDK version, reason will return ConflictExceptionReason.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from reasonAsString().

      Returns:
      A machine-readable reason code that explains why the request conflicted with the current state of the resource. For example, CHAT_ARCHIVED indicates that the request acted on a chat that is archived. This field is absent when no specific reason applies.
      See Also:
    • reasonAsString

      public String reasonAsString()

      A machine-readable reason code that explains why the request conflicted with the current state of the resource. For example, CHAT_ARCHIVED indicates that the request acted on a chat that is archived. This field is absent when no specific reason applies.

      If the service returns an enum value that is not available in the current SDK version, reason will return ConflictExceptionReason.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from reasonAsString().

      Returns:
      A machine-readable reason code that explains why the request conflicted with the current state of the resource. For example, CHAT_ARCHIVED indicates that the request acted on a chat that is archived. This field is absent when no specific reason applies.
      See Also:
    • sdkFields

      public final List<SdkField<?>> sdkFields()
      Specified by:
      sdkFields in interface SdkPojo
      Overrides:
      sdkFields in class SdkServiceException
      Returns:
      List of SdkField in this POJO. May be empty list but should never be null.
    • sdkFieldNameToField

      public final Map<String,SdkField<?>> sdkFieldNameToField()
      Specified by:
      sdkFieldNameToField in interface SdkPojo
      Returns:
      The mapping between the field name and its corresponding field.