Class ConflictException

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

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

The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.

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 ContextException
      Returns:
      A new builder initialized with this config's properties.
    • builder

      public static ConflictException.Builder builder()
    • serializableBuilderClass

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

      public String resourceId()

      The ID of the resource that caused the conflict. When several resources caused it, a comma-separated list of their IDs.

      Returns:
      The ID of the resource that caused the conflict. When several resources caused it, a comma-separated list of their IDs.
    • resourceType

      public ResourceType resourceType()

      The type of the resource that caused the conflict.

      Valid values:

      • agent-context - An agent context.

      • connection - A connection.

      • curation-policy - A curation policy.

      • evaluation - Reserved for future use.

      • ontology - An ontology.

      • ontology-induction - An ontology induction.

      • resource-policy - A resource-based policy.

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

      Returns:
      The type of the resource that caused the conflict.

      Valid values:

      • agent-context - An agent context.

      • connection - A connection.

      • curation-policy - A curation policy.

      • evaluation - Reserved for future use.

      • ontology - An ontology.

      • ontology-induction - An ontology induction.

      • resource-policy - A resource-based policy.

      See Also:
    • resourceTypeAsString

      public String resourceTypeAsString()

      The type of the resource that caused the conflict.

      Valid values:

      • agent-context - An agent context.

      • connection - A connection.

      • curation-policy - A curation policy.

      • evaluation - Reserved for future use.

      • ontology - An ontology.

      • ontology-induction - An ontology induction.

      • resource-policy - A resource-based policy.

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

      Returns:
      The type of the resource that caused the conflict.

      Valid values:

      • agent-context - An agent context.

      • connection - A connection.

      • curation-policy - A curation policy.

      • evaluation - Reserved for future use.

      • ontology - An ontology.

      • ontology-induction - An ontology induction.

      • resource-policy - A resource-based policy.

      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.