Interface ServiceQuota.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ServiceQuota.Builder,
,ServiceQuota> SdkBuilder<ServiceQuota.Builder,
,ServiceQuota> SdkPojo
- Enclosing class:
ServiceQuota
-
Method Summary
Modifier and TypeMethodDescriptionadjustable
(Boolean adjustable) Indicates whether the quota value can be increased.default ServiceQuota.Builder
errorReason
(Consumer<ErrorReason.Builder> errorReason) The error code and error reason.errorReason
(ErrorReason errorReason) The error code and error reason.globalQuota
(Boolean globalQuota) Indicates whether the quota is global.default ServiceQuota.Builder
period
(Consumer<QuotaPeriod.Builder> period) The period of time.period
(QuotaPeriod period) The period of time.quotaAppliedAtLevel
(String quotaAppliedAtLevel) Specifies at which level of granularity that the quota value is applied.quotaAppliedAtLevel
(AppliedLevelEnum quotaAppliedAtLevel) Specifies at which level of granularity that the quota value is applied.The Amazon Resource Name (ARN) of the quota.Specifies the quota identifier.default ServiceQuota.Builder
quotaContext
(Consumer<QuotaContextInfo.Builder> quotaContext) The context for this service quota.quotaContext
(QuotaContextInfo quotaContext) The context for this service quota.Specifies the quota name.serviceCode
(String serviceCode) Specifies the service identifier.serviceName
(String serviceName) Specifies the service name.The unit of measurement.default ServiceQuota.Builder
usageMetric
(Consumer<MetricInfo.Builder> usageMetric) Information about the measurement.usageMetric
(MetricInfo usageMetric) Information about the measurement.The quota value.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
serviceCode
Specifies the service identifier. To find the service code value for an Amazon Web Services service, use the ListServices operation.
- Parameters:
serviceCode
- Specifies the service identifier. To find the service code value for an Amazon Web Services service, use the ListServices operation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
serviceName
Specifies the service name.
- Parameters:
serviceName
- Specifies the service name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
quotaArn
The Amazon Resource Name (ARN) of the quota.
- Parameters:
quotaArn
- The Amazon Resource Name (ARN) of the quota.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.- Parameters:
quotaCode
- Specifies the quota identifier. To find the quota code for a specific quota, use the ListServiceQuotas operation, and look for theQuotaCode
response in the output for the quota you want.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
quotaName
Specifies the quota name.
- Parameters:
quotaName
- Specifies the quota name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
value
The quota value.
- Parameters:
value
- The quota value.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
unit
The unit of measurement.
- Parameters:
unit
- The unit of measurement.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
adjustable
Indicates whether the quota value can be increased.
- Parameters:
adjustable
- Indicates whether the quota value can be increased.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
globalQuota
Indicates whether the quota is global.
- Parameters:
globalQuota
- Indicates whether the quota is global.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
usageMetric
Information about the measurement.
- Parameters:
usageMetric
- Information about the measurement.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
usageMetric
Information about the measurement.
This is a convenience method that creates an instance of theMetricInfo.Builder
avoiding the need to create one manually viaMetricInfo.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tousageMetric(MetricInfo)
.- Parameters:
usageMetric
- a consumer that will call methods onMetricInfo.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
period
The period of time.
- Parameters:
period
- The period of time.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
period
The period of time.
This is a convenience method that creates an instance of theQuotaPeriod.Builder
avoiding the need to create one manually viaQuotaPeriod.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toperiod(QuotaPeriod)
.- Parameters:
period
- a consumer that will call methods onQuotaPeriod.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
errorReason
The error code and error reason.
- Parameters:
errorReason
- The error code and error reason.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
errorReason
The error code and error reason.
This is a convenience method that creates an instance of theErrorReason.Builder
avoiding the need to create one manually viaErrorReason.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toerrorReason(ErrorReason)
.- Parameters:
errorReason
- a consumer that will call methods onErrorReason.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
quotaAppliedAtLevel
Specifies at which level of granularity that the quota value is applied.
- Parameters:
quotaAppliedAtLevel
- Specifies at which level of granularity that the quota value is applied.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
quotaAppliedAtLevel
Specifies at which level of granularity that the quota value is applied.
- Parameters:
quotaAppliedAtLevel
- Specifies at which level of granularity that the quota value is applied.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
quotaContext
The context for this service quota.
- Parameters:
quotaContext
- The context for this service quota.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
quotaContext
The context for this service quota.
This is a convenience method that creates an instance of theQuotaContextInfo.Builder
avoiding the need to create one manually viaQuotaContextInfo.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toquotaContext(QuotaContextInfo)
.- Parameters:
quotaContext
- a consumer that will call methods onQuotaContextInfo.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-