Class ConflictException

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

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

The operation could not be completed because of a conflict 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 CloudWatchOmniException
      Returns:
      A new builder initialized with this config's properties.
    • builder

      public static ConflictException.Builder builder()
    • serializableBuilderClass

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

      public String conflictType()

      The type of conflict that caused the request to fail. Not always present.

      Returns:
      The type of conflict that caused the request to fail. Not always present.
    • resourceId

      public String resourceId()

      The identifier of the resource that is in conflict. Not always present.

      Returns:
      The identifier of the resource that is in conflict. Not always present.
    • resourceType

      public String resourceType()

      The type of the resource that is in conflict. Not always present.

      Returns:
      The type of the resource that is in conflict. Not always present.
    • errorCode

      public String errorCode()

      The error code associated with the conflict. Not always present.

      Returns:
      The error code associated with the conflict. Not always present.
    • 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.