Interface ModifyUsageLimitResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<ModifyUsageLimitResponse.Builder,ModifyUsageLimitResponse>,RedshiftResponse.Builder,SdkBuilder<ModifyUsageLimitResponse.Builder,ModifyUsageLimitResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- ModifyUsageLimitResponse
@Mutable @NotThreadSafe public static interface ModifyUsageLimitResponse.Builder extends RedshiftResponse.Builder, SdkPojo, CopyableBuilder<ModifyUsageLimitResponse.Builder,ModifyUsageLimitResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ModifyUsageLimitResponse.Builderamount(Long amount)The limit amount.ModifyUsageLimitResponse.BuilderbreachAction(String breachAction)The action that Amazon Redshift takes when the limit is reached.ModifyUsageLimitResponse.BuilderbreachAction(UsageLimitBreachAction breachAction)The action that Amazon Redshift takes when the limit is reached.ModifyUsageLimitResponse.BuilderclusterIdentifier(String clusterIdentifier)The identifier of the cluster with a usage limit.ModifyUsageLimitResponse.BuilderfeatureType(String featureType)The Amazon Redshift feature to which the limit applies.ModifyUsageLimitResponse.BuilderfeatureType(UsageLimitFeatureType featureType)The Amazon Redshift feature to which the limit applies.ModifyUsageLimitResponse.BuilderlimitType(String limitType)The type of limit.ModifyUsageLimitResponse.BuilderlimitType(UsageLimitLimitType limitType)The type of limit.ModifyUsageLimitResponse.Builderperiod(String period)The time period that the amount applies to.ModifyUsageLimitResponse.Builderperiod(UsageLimitPeriod period)The time period that the amount applies to.ModifyUsageLimitResponse.Buildertags(Collection<Tag> tags)A list of tag instances.ModifyUsageLimitResponse.Buildertags(Consumer<Tag.Builder>... tags)A list of tag instances.ModifyUsageLimitResponse.Buildertags(Tag... tags)A list of tag instances.ModifyUsageLimitResponse.BuilderusageLimitId(String usageLimitId)The identifier of the usage limit.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.redshift.model.RedshiftResponse.Builder
build, responseMetadata, responseMetadata
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
-
-
-
Method Detail
-
usageLimitId
ModifyUsageLimitResponse.Builder usageLimitId(String usageLimitId)
The identifier of the usage limit.
- Parameters:
usageLimitId- The identifier of the usage limit.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clusterIdentifier
ModifyUsageLimitResponse.Builder clusterIdentifier(String clusterIdentifier)
The identifier of the cluster with a usage limit.
- Parameters:
clusterIdentifier- The identifier of the cluster with a usage limit.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
featureType
ModifyUsageLimitResponse.Builder featureType(String featureType)
The Amazon Redshift feature to which the limit applies.
- Parameters:
featureType- The Amazon Redshift feature to which the limit applies.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
UsageLimitFeatureType,UsageLimitFeatureType
-
featureType
ModifyUsageLimitResponse.Builder featureType(UsageLimitFeatureType featureType)
The Amazon Redshift feature to which the limit applies.
- Parameters:
featureType- The Amazon Redshift feature to which the limit applies.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
UsageLimitFeatureType,UsageLimitFeatureType
-
limitType
ModifyUsageLimitResponse.Builder limitType(String limitType)
The type of limit. Depending on the feature type, this can be based on a time duration or data size.
- Parameters:
limitType- The type of limit. Depending on the feature type, this can be based on a time duration or data size.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
UsageLimitLimitType,UsageLimitLimitType
-
limitType
ModifyUsageLimitResponse.Builder limitType(UsageLimitLimitType limitType)
The type of limit. Depending on the feature type, this can be based on a time duration or data size.
- Parameters:
limitType- The type of limit. Depending on the feature type, this can be based on a time duration or data size.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
UsageLimitLimitType,UsageLimitLimitType
-
amount
ModifyUsageLimitResponse.Builder amount(Long amount)
The limit amount. If time-based, this amount is in minutes. If data-based, this amount is in terabytes (TB).
- Parameters:
amount- The limit amount. If time-based, this amount is in minutes. If data-based, this amount is in terabytes (TB).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
period
ModifyUsageLimitResponse.Builder period(String 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:
UsageLimitPeriod,UsageLimitPeriod
-
period
ModifyUsageLimitResponse.Builder period(UsageLimitPeriod 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:
UsageLimitPeriod,UsageLimitPeriod
-
breachAction
ModifyUsageLimitResponse.Builder breachAction(String breachAction)
The action that Amazon Redshift takes when the limit is reached. Possible values are:
-
log - To log an event in a system table. The default is log.
-
emit-metric - To emit CloudWatch metrics.
-
disable - To disable the feature until the next usage period begins.
- Parameters:
breachAction- The action that Amazon Redshift takes when the limit is reached. Possible values are:-
log - To log an event in a system table. The default is log.
-
emit-metric - To emit CloudWatch metrics.
-
disable - To disable the feature until the next usage period begins.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
UsageLimitBreachAction,UsageLimitBreachAction
-
-
breachAction
ModifyUsageLimitResponse.Builder breachAction(UsageLimitBreachAction breachAction)
The action that Amazon Redshift takes when the limit is reached. Possible values are:
-
log - To log an event in a system table. The default is log.
-
emit-metric - To emit CloudWatch metrics.
-
disable - To disable the feature until the next usage period begins.
- Parameters:
breachAction- The action that Amazon Redshift takes when the limit is reached. Possible values are:-
log - To log an event in a system table. The default is log.
-
emit-metric - To emit CloudWatch metrics.
-
disable - To disable the feature until the next usage period begins.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
UsageLimitBreachAction,UsageLimitBreachAction
-
-
tags
ModifyUsageLimitResponse.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
ModifyUsageLimitResponse.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
ModifyUsageLimitResponse.Builder tags(Consumer<Tag.Builder>... 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 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)
-
-