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 Summary
-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.redshift.model.RedshiftRequest.Builder
build
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
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:
UsageLimitFeatureType
,UsageLimitFeatureType
-
featureType
CreateUsageLimitRequest.Builder featureType(UsageLimitFeatureType 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:
UsageLimitFeatureType
,UsageLimitFeatureType
-
limitType
CreateUsageLimitRequest.Builder limitType(String limitType)
The type of limit. Depending on the feature type, this can be based on a time duration or data size. If
FeatureType
isspectrum
, thenLimitType
must bedata-scanned
. IfFeatureType
isconcurrency-scaling
, thenLimitType
must betime
. IfFeatureType
iscross-region-datasharing
, thenLimitType
must bedata-scanned
.- Parameters:
limitType
- The type of limit. Depending on the feature type, this can be based on a time duration or data size. IfFeatureType
isspectrum
, thenLimitType
must bedata-scanned
. IfFeatureType
isconcurrency-scaling
, thenLimitType
must betime
. IfFeatureType
iscross-region-datasharing
, thenLimitType
must bedata-scanned
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
UsageLimitLimitType
,UsageLimitLimitType
-
limitType
CreateUsageLimitRequest.Builder limitType(UsageLimitLimitType limitType)
The type of limit. Depending on the feature type, this can be based on a time duration or data size. If
FeatureType
isspectrum
, thenLimitType
must bedata-scanned
. IfFeatureType
isconcurrency-scaling
, thenLimitType
must betime
. IfFeatureType
iscross-region-datasharing
, thenLimitType
must bedata-scanned
.- Parameters:
limitType
- The type of limit. Depending on the feature type, this can be based on a time duration or data size. IfFeatureType
isspectrum
, thenLimitType
must bedata-scanned
. IfFeatureType
isconcurrency-scaling
, thenLimitType
must betime
. IfFeatureType
iscross-region-datasharing
, thenLimitType
must bedata-scanned
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
UsageLimitLimitType
,UsageLimitLimitType
-
amount
CreateUsageLimitRequest.Builder amount(Long 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
CreateUsageLimitRequest.Builder period(String period)
The time period that the amount applies to. A
weekly
period begins on Sunday. The default ismonthly
.- Parameters:
period
- The time period that the amount applies to. Aweekly
period begins on Sunday. The default ismonthly
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
UsageLimitPeriod
,UsageLimitPeriod
-
period
CreateUsageLimitRequest.Builder period(UsageLimitPeriod period)
The time period that the amount applies to. A
weekly
period begins on Sunday. The default ismonthly
.- Parameters:
period
- The time period that the amount applies to. Aweekly
period begins on Sunday. The default ismonthly
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
UsageLimitPeriod
,UsageLimitPeriod
-
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:
UsageLimitBreachAction
,UsageLimitBreachAction
-
breachAction
CreateUsageLimitRequest.Builder breachAction(UsageLimitBreachAction 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:
UsageLimitBreachAction
,UsageLimitBreachAction
-
tags
CreateUsageLimitRequest.Builder tags(Collection<Tag> 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
CreateUsageLimitRequest.Builder tags(Tag... 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
CreateUsageLimitRequest.Builder tags(Consumer<Tag.Builder>... tags)
A list of tag instances.
This is a convenience method that creates an instance of theTag.Builder
avoiding the need to create one manually viaTag.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed to#tags(List
.) - 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:
#tags(java.util.Collection
)
-
overrideConfiguration
CreateUsageLimitRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
-
overrideConfiguration
CreateUsageLimitRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
-
-