Interface CreateUsageLimitRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateUsageLimitRequest.Builder,,CreateUsageLimitRequest> RedshiftRequest.Builder,SdkBuilder<CreateUsageLimitRequest.Builder,,CreateUsageLimitRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
CreateUsageLimitRequest
-
Method Summary
Modifier and TypeMethodDescriptionThe limit amount.breachAction(String breachAction) The action that Amazon Redshift takes when the limit is reached.breachAction(UsageLimitBreachAction breachAction) The action that Amazon Redshift takes when the limit is reached.clusterIdentifier(String clusterIdentifier) The identifier of the cluster that you want to limit usage.featureType(String featureType) The Amazon Redshift feature that you want to limit.featureType(UsageLimitFeatureType featureType) The Amazon Redshift feature that you want to limit.The type of limit.limitType(UsageLimitLimitType limitType) The type of limit.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.The time period that the amount applies to.period(UsageLimitPeriod period) The time period that the amount applies to.tags(Collection<Tag> tags) A list of tag instances.tags(Consumer<Tag.Builder>... tags) A list of tag instances.A list of tag instances.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.redshift.model.RedshiftRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
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
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
FeatureTypeisspectrum, thenLimitTypemust bedata-scanned. IfFeatureTypeisconcurrency-scaling, thenLimitTypemust betime. IfFeatureTypeiscross-region-datasharing, thenLimitTypemust bedata-scanned.- Parameters:
limitType- The type of limit. Depending on the feature type, this can be based on a time duration or data size. IfFeatureTypeisspectrum, thenLimitTypemust bedata-scanned. IfFeatureTypeisconcurrency-scaling, thenLimitTypemust betime. IfFeatureTypeiscross-region-datasharing, thenLimitTypemust bedata-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
FeatureTypeisspectrum, thenLimitTypemust bedata-scanned. IfFeatureTypeisconcurrency-scaling, thenLimitTypemust betime. IfFeatureTypeiscross-region-datasharing, thenLimitTypemust bedata-scanned.- Parameters:
limitType- The type of limit. Depending on the feature type, this can be based on a time duration or data size. IfFeatureTypeisspectrum, thenLimitTypemust bedata-scanned. IfFeatureTypeisconcurrency-scaling, thenLimitTypemust betime. IfFeatureTypeiscross-region-datasharing, thenLimitTypemust bedata-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
weeklyperiod begins on Sunday. The default ismonthly.- Parameters:
period- The time period that the amount applies to. Aweeklyperiod begins on Sunday. The default ismonthly.- 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
weeklyperiod begins on Sunday. The default ismonthly.- Parameters:
period- The time period that the amount applies to. Aweeklyperiod begins on Sunday. The default ismonthly.- 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:
-
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 theTag.Builderavoiding the need to create one manually viaTag.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totags(List<Tag>).- Parameters:
tags- a consumer that will call methods onTag.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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateUsageLimitRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-