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 Details

    • 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 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 the QuotaCode 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

      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

      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

      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 the MetricInfo.Builder avoiding the need to create one manually via MetricInfo.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to usageMetric(MetricInfo).

      Parameters:
      usageMetric - a consumer that will call methods on MetricInfo.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 the QuotaPeriod.Builder avoiding the need to create one manually via QuotaPeriod.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to period(QuotaPeriod).

      Parameters:
      period - a consumer that will call methods on QuotaPeriod.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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 the ErrorReason.Builder avoiding the need to create one manually via ErrorReason.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to errorReason(ErrorReason).

      Parameters:
      errorReason - a consumer that will call methods on ErrorReason.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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:
    • 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:
    • 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 the QuotaContextInfo.Builder avoiding the need to create one manually via QuotaContextInfo.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to quotaContext(QuotaContextInfo).

      Parameters:
      quotaContext - a consumer that will call methods on QuotaContextInfo.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: