Interface CreateUsageLimitRequest.Builder

All Superinterfaces:
AwsRequest.Builder, Buildable, CopyableBuilder<CreateUsageLimitRequest.Builder,CreateUsageLimitRequest>, RedshiftRequest.Builder, SdkBuilder<CreateUsageLimitRequest.Builder,CreateUsageLimitRequest>, SdkPojo, SdkRequest.Builder
Enclosing class:
CreateUsageLimitRequest

public static interface CreateUsageLimitRequest.Builder extends RedshiftRequest.Builder, SdkPojo, CopyableBuilder<CreateUsageLimitRequest.Builder,CreateUsageLimitRequest>
  • Method Details

    • clusterIdentifier

      CreateUsageLimitRequest.Builder clusterIdentifier(String clusterIdentifier)

      The identifier of the cluster that you want to limit usage.

      Parameters:
      clusterIdentifier - The identifier of the cluster that you want to limit usage.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • featureType

      CreateUsageLimitRequest.Builder featureType(String featureType)

      The Amazon Redshift feature that you want to limit.

      Parameters:
      featureType - The Amazon Redshift feature that you want to limit.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • featureType

      The Amazon Redshift feature that you want to limit.

      Parameters:
      featureType - The Amazon Redshift feature that you want to limit.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • limitType

      The type of limit. Depending on the feature type, this can be based on a time duration or data size. If FeatureType is spectrum, then LimitType must be data-scanned. If FeatureType is concurrency-scaling, then LimitType must be time. If FeatureType is cross-region-datasharing, then LimitType must be data-scanned.

      Parameters:
      limitType - The type of limit. Depending on the feature type, this can be based on a time duration or data size. If FeatureType is spectrum, then LimitType must be data-scanned. If FeatureType is concurrency-scaling, then LimitType must be time. If FeatureType is cross-region-datasharing, then LimitType must be data-scanned.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • limitType

      The type of limit. Depending on the feature type, this can be based on a time duration or data size. If FeatureType is spectrum, then LimitType must be data-scanned. If FeatureType is concurrency-scaling, then LimitType must be time. If FeatureType is cross-region-datasharing, then LimitType must be data-scanned.

      Parameters:
      limitType - The type of limit. Depending on the feature type, this can be based on a time duration or data size. If FeatureType is spectrum, then LimitType must be data-scanned. If FeatureType is concurrency-scaling, then LimitType must be time. If FeatureType is cross-region-datasharing, then LimitType must be data-scanned.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • amount

      The limit amount. If time-based, this amount is in minutes. If data-based, this amount is in terabytes (TB). The value must be a positive number.

      Parameters:
      amount - The limit amount. If time-based, this amount is in minutes. If data-based, this amount is in terabytes (TB). The value must be a positive number.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • period

      The time period that the amount applies to. A weekly period begins on Sunday. The default is monthly.

      Parameters:
      period - The time period that the amount applies to. A weekly period begins on Sunday. The default is monthly.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • period

      The time period that the amount applies to. A weekly period begins on Sunday. The default is monthly.

      Parameters:
      period - The time period that the amount applies to. A weekly period begins on Sunday. The default is monthly.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • breachAction

      CreateUsageLimitRequest.Builder breachAction(String breachAction)

      The action that Amazon Redshift takes when the limit is reached. The default is log. For more information about this parameter, see UsageLimit.

      Parameters:
      breachAction - The action that Amazon Redshift takes when the limit is reached. The default is log. For more information about this parameter, see UsageLimit.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • breachAction

      The action that Amazon Redshift takes when the limit is reached. The default is log. For more information about this parameter, see UsageLimit.

      Parameters:
      breachAction - The action that Amazon Redshift takes when the limit is reached. The default is log. For more information about this parameter, see UsageLimit.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • tags

      A list of tag instances.

      Parameters:
      tags - A list of tag instances.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tags

      A list of tag instances.

      Parameters:
      tags - A list of tag instances.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tags

      A list of tag instances.

      This is a convenience method that creates an instance of the Tag.Builder avoiding the need to create one manually via Tag.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to tags(List<Tag>).

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

      CreateUsageLimitRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.