Interface ServiceQuota.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<ServiceQuota.Builder,ServiceQuota>,SdkBuilder<ServiceQuota.Builder,ServiceQuota>,SdkPojo
- Enclosing class:
- ServiceQuota
public static interface ServiceQuota.Builder extends SdkPojo, CopyableBuilder<ServiceQuota.Builder,ServiceQuota>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description ServiceQuota.Builderadjustable(Boolean adjustable)Indicates whether the quota value can be increased.default ServiceQuota.BuildererrorReason(Consumer<ErrorReason.Builder> errorReason)The error code and error reason.ServiceQuota.BuildererrorReason(ErrorReason errorReason)The error code and error reason.ServiceQuota.BuilderglobalQuota(Boolean globalQuota)Indicates whether the quota is global.default ServiceQuota.Builderperiod(Consumer<QuotaPeriod.Builder> period)The period of time.ServiceQuota.Builderperiod(QuotaPeriod period)The period of time.ServiceQuota.BuilderquotaAppliedAtLevel(String quotaAppliedAtLevel)Specifies at which level of granularity that the quota value is applied.ServiceQuota.BuilderquotaAppliedAtLevel(AppliedLevelEnum quotaAppliedAtLevel)Specifies at which level of granularity that the quota value is applied.ServiceQuota.BuilderquotaArn(String quotaArn)The Amazon Resource Name (ARN) of the quota.ServiceQuota.BuilderquotaCode(String quotaCode)Specifies the quota identifier.default ServiceQuota.BuilderquotaContext(Consumer<QuotaContextInfo.Builder> quotaContext)The context for this service quota.ServiceQuota.BuilderquotaContext(QuotaContextInfo quotaContext)The context for this service quota.ServiceQuota.BuilderquotaName(String quotaName)Specifies the quota name.ServiceQuota.BuilderserviceCode(String serviceCode)Specifies the service identifier.ServiceQuota.BuilderserviceName(String serviceName)Specifies the service name.ServiceQuota.Builderunit(String unit)The unit of measurement.default ServiceQuota.BuilderusageMetric(Consumer<MetricInfo.Builder> usageMetric)Information about the measurement.ServiceQuota.BuilderusageMetric(MetricInfo usageMetric)Information about the measurement.ServiceQuota.Buildervalue(Double value)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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
serviceCode
ServiceQuota.Builder serviceCode(String 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
ServiceQuota.Builder serviceName(String 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
ServiceQuota.Builder quotaArn(String 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
ServiceQuota.Builder quotaCode(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.- Parameters:
quotaCode- Specifies the quota identifier. To find the quota code for a specific quota, use the ListServiceQuotas operation, and look for theQuotaCoderesponse in the output for the quota you want.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
quotaName
ServiceQuota.Builder quotaName(String 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
ServiceQuota.Builder value(Double 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
ServiceQuota.Builder unit(String 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
ServiceQuota.Builder adjustable(Boolean 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
ServiceQuota.Builder globalQuota(Boolean 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
ServiceQuota.Builder usageMetric(MetricInfo 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
default ServiceQuota.Builder usageMetric(Consumer<MetricInfo.Builder> usageMetric)
Information about the measurement.
This is a convenience method that creates an instance of theMetricInfo.Builderavoiding the need to create one manually viaMetricInfo.builder().When the
Consumercompletes,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:
usageMetric(MetricInfo)
-
period
ServiceQuota.Builder period(QuotaPeriod 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
default ServiceQuota.Builder period(Consumer<QuotaPeriod.Builder> period)
The period of time.
This is a convenience method that creates an instance of theQuotaPeriod.Builderavoiding the need to create one manually viaQuotaPeriod.builder().When the
Consumercompletes,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:
period(QuotaPeriod)
-
errorReason
ServiceQuota.Builder errorReason(ErrorReason 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
default ServiceQuota.Builder errorReason(Consumer<ErrorReason.Builder> errorReason)
The error code and error reason.
This is a convenience method that creates an instance of theErrorReason.Builderavoiding the need to create one manually viaErrorReason.builder().When the
Consumercompletes,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:
errorReason(ErrorReason)
-
quotaAppliedAtLevel
ServiceQuota.Builder quotaAppliedAtLevel(String 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:
AppliedLevelEnum,AppliedLevelEnum
-
quotaAppliedAtLevel
ServiceQuota.Builder quotaAppliedAtLevel(AppliedLevelEnum 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:
AppliedLevelEnum,AppliedLevelEnum
-
quotaContext
ServiceQuota.Builder quotaContext(QuotaContextInfo 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
default ServiceQuota.Builder quotaContext(Consumer<QuotaContextInfo.Builder> quotaContext)
The context for this service quota.
This is a convenience method that creates an instance of theQuotaContextInfo.Builderavoiding the need to create one manually viaQuotaContextInfo.builder().When the
Consumercompletes,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:
quotaContext(QuotaContextInfo)
-
-