Class ResourceNotFoundException

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

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

The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.

See Also:
  • Method Details

    • toBuilder

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

      public static ResourceNotFoundException.Builder builder()
    • serializableBuilderClass

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

      public String resourceId()

      The ID of the resource that was not found.

      Returns:
      The ID of the resource that was not found.
    • resourceType

      public ResourceType resourceType()

      The type of the resource that wasn't found.

      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 wasn't found.

      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 wasn't found.

      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 wasn't found.

      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.