Class ServiceQuota
- java.lang.Object
-
- software.amazon.awssdk.services.servicequotas.model.ServiceQuota
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ServiceQuota.Builder,ServiceQuota>
@Generated("software.amazon.awssdk:codegen") public final class ServiceQuota extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ServiceQuota.Builder,ServiceQuota>
Information about a quota.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceServiceQuota.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Booleanadjustable()Indicates whether the quota value can be increased.static ServiceQuota.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)ErrorReasonerrorReason()The error code and error reason.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)BooleanglobalQuota()Indicates whether the quota is global.inthashCode()QuotaPeriodperiod()The period of time.AppliedLevelEnumquotaAppliedAtLevel()Specifies at which level of granularity that the quota value is applied.StringquotaAppliedAtLevelAsString()Specifies at which level of granularity that the quota value is applied.StringquotaArn()The Amazon Resource Name (ARN) of the quota.StringquotaCode()Specifies the quota identifier.QuotaContextInfoquotaContext()The context for this service quota.StringquotaName()Specifies the quota name.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends ServiceQuota.Builder>serializableBuilderClass()StringserviceCode()Specifies the service identifier.StringserviceName()Specifies the service name.ServiceQuota.BuildertoBuilder()StringtoString()Returns a string representation of this object.Stringunit()The unit of measurement.MetricInfousageMetric()Information about the measurement.Doublevalue()The quota value.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
serviceCode
public final String serviceCode()
Specifies the service identifier. To find the service code value for an Amazon Web Services service, use the ListServices operation.
- Returns:
- Specifies the service identifier. To find the service code value for an Amazon Web Services service, use the ListServices operation.
-
serviceName
public final String serviceName()
Specifies the service name.
- Returns:
- Specifies the service name.
-
quotaArn
public final String quotaArn()
The Amazon Resource Name (ARN) of the quota.
- Returns:
- The Amazon Resource Name (ARN) of the quota.
-
quotaCode
public final String quotaCode()
Specifies the quota identifier. To find the quota code for a specific quota, use the ListServiceQuotas operation, and look for the
QuotaCoderesponse in the output for the quota you want.- Returns:
- Specifies the quota identifier. To find the quota code for a specific quota, use the
ListServiceQuotas operation, and look for the
QuotaCoderesponse in the output for the quota you want.
-
quotaName
public final String quotaName()
Specifies the quota name.
- Returns:
- Specifies the quota name.
-
value
public final Double value()
The quota value.
- Returns:
- The quota value.
-
unit
public final String unit()
The unit of measurement.
- Returns:
- The unit of measurement.
-
adjustable
public final Boolean adjustable()
Indicates whether the quota value can be increased.
- Returns:
- Indicates whether the quota value can be increased.
-
globalQuota
public final Boolean globalQuota()
Indicates whether the quota is global.
- Returns:
- Indicates whether the quota is global.
-
usageMetric
public final MetricInfo usageMetric()
Information about the measurement.
- Returns:
- Information about the measurement.
-
period
public final QuotaPeriod period()
The period of time.
- Returns:
- The period of time.
-
errorReason
public final ErrorReason errorReason()
The error code and error reason.
- Returns:
- The error code and error reason.
-
quotaAppliedAtLevel
public final AppliedLevelEnum quotaAppliedAtLevel()
Specifies at which level of granularity that the quota value is applied.
If the service returns an enum value that is not available in the current SDK version,
quotaAppliedAtLevelwill returnAppliedLevelEnum.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromquotaAppliedAtLevelAsString().- Returns:
- Specifies at which level of granularity that the quota value is applied.
- See Also:
AppliedLevelEnum
-
quotaAppliedAtLevelAsString
public final String quotaAppliedAtLevelAsString()
Specifies at which level of granularity that the quota value is applied.
If the service returns an enum value that is not available in the current SDK version,
quotaAppliedAtLevelwill returnAppliedLevelEnum.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromquotaAppliedAtLevelAsString().- Returns:
- Specifies at which level of granularity that the quota value is applied.
- See Also:
AppliedLevelEnum
-
quotaContext
public final QuotaContextInfo quotaContext()
The context for this service quota.
- Returns:
- The context for this service quota.
-
toBuilder
public ServiceQuota.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ServiceQuota.Builder,ServiceQuota>
-
builder
public static ServiceQuota.Builder builder()
-
serializableBuilderClass
public static Class<? extends ServiceQuota.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-