Class ServiceQuota
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<ServiceQuota.Builder,
ServiceQuota>
Information about a quota.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal Boolean
Indicates whether the quota value can be increased.static ServiceQuota.Builder
builder()
final boolean
final boolean
equalsBySdkFields
(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final ErrorReason
The error code and error reason.final <T> Optional
<T> getValueForField
(String fieldName, Class<T> clazz) final Boolean
Indicates whether the quota is global.final int
hashCode()
final QuotaPeriod
period()
The period of time.final AppliedLevelEnum
Specifies at which level of granularity that the quota value is applied.final String
Specifies at which level of granularity that the quota value is applied.final String
quotaArn()
The Amazon Resource Name (ARN) of the quota.final String
Specifies the quota identifier.final QuotaContextInfo
The context for this service quota.final String
Specifies the quota name.static Class
<? extends ServiceQuota.Builder> final String
Specifies the service identifier.final String
Specifies the service name.Take this object and create a builder that contains all of the current property values of this object.final String
toString()
Returns a string representation of this object.final String
unit()
The unit of measurement.final MetricInfo
Information about the measurement.final Double
value()
The quota value.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
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
Specifies the service name.
- Returns:
- Specifies the service name.
-
quotaArn
The Amazon Resource Name (ARN) of the quota.
- Returns:
- The Amazon Resource Name (ARN) of the quota.
-
quotaCode
Specifies the quota identifier. To find the quota code for a specific quota, use the ListServiceQuotas operation, and look for the
QuotaCode
response 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
QuotaCode
response in the output for the quota you want.
-
quotaName
Specifies the quota name.
- Returns:
- Specifies the quota name.
-
value
The quota value.
- Returns:
- The quota value.
-
unit
The unit of measurement.
- Returns:
- The unit of measurement.
-
adjustable
Indicates whether the quota value can be increased.
- Returns:
- Indicates whether the quota value can be increased.
-
globalQuota
Indicates whether the quota is global.
- Returns:
- Indicates whether the quota is global.
-
usageMetric
Information about the measurement.
- Returns:
- Information about the measurement.
-
period
The period of time.
- Returns:
- The period of time.
-
errorReason
The error code and error reason.
- Returns:
- The error code and error reason.
-
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,
quotaAppliedAtLevel
will 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:
-
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,
quotaAppliedAtLevel
will 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:
-
quotaContext
The context for this service quota.
- Returns:
- The context for this service quota.
-
toBuilder
Description copied from interface:ToCopyableBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToCopyableBuilder<ServiceQuota.Builder,
ServiceQuota> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
Description copied from interface:SdkPojo
Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojo
class, and is generated based on a service model.If an
SdkPojo
class does not have any inherited fields,equalsBySdkFields
andequals
are essentially the same.- Specified by:
equalsBySdkFields
in interfaceSdkPojo
- Parameters:
obj
- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
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. -
getValueForField
-
sdkFields
-