Class ServiceQuotaExceededException

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

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

You exceeded your service quota. Service quotas, also referred to as limits, are the maximum number of service resources or operations for your Amazon Web Services account.

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<ServiceQuotaExceededException.Builder,ServiceQuotaExceededException>
      Overrides:
      toBuilder in class DeadlineException
      Returns:
      A new builder initialized with this config's properties.
    • builder

      public static ServiceQuotaExceededException.Builder builder()
    • serializableBuilderClass

      public static Class<? extends ServiceQuotaExceededException.Builder> serializableBuilderClass()
    • hasContext

      public boolean hasContext()
      For responses, this returns true if the service returned a value for the Context property. This DOES NOT check that the value is non-empty (for which, you should check the isEmpty() method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
    • context

      public Map<String,String> context()

      Information about the resources in use when the exception was thrown.

      Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.

      This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the hasContext() method.

      Returns:
      Information about the resources in use when the exception was thrown.
    • quotaCode

      public String quotaCode()

      Identifies the quota that has been exceeded.

      Returns:
      Identifies the quota that has been exceeded.
    • reason

      A string that describes the reason the quota was exceeded.

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

      Returns:
      A string that describes the reason the quota was exceeded.
      See Also:
    • reasonAsString

      public String reasonAsString()

      A string that describes the reason the quota was exceeded.

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

      Returns:
      A string that describes the reason the quota was exceeded.
      See Also:
    • resourceId

      public String resourceId()

      The identifier of the affected resource.

      Returns:
      The identifier of the affected resource.
    • resourceType

      public String resourceType()

      The type of the affected resource

      Returns:
      The type of the affected resource
    • serviceCode

      public String serviceCode()

      Identifies the service that exceeded the quota.

      Returns:
      Identifies the service that exceeded the quota.
    • 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.