Class CfnUsageLimitMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.redshift.CfnUsageLimitMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnUsageLimitMixinProps>
- Enclosing interface:
CfnUsageLimitMixinProps
@Stability(Stable)
public static final class CfnUsageLimitMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnUsageLimitMixinProps>
A builder for
CfnUsageLimitMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnUsageLimitMixinProps.getAmount()breachAction(String breachAction) Sets the value ofCfnUsageLimitMixinProps.getBreachAction()build()Builds the configured instance.clusterIdentifier(String clusterIdentifier) Sets the value ofCfnUsageLimitMixinProps.getClusterIdentifier()featureType(String featureType) Sets the value ofCfnUsageLimitMixinProps.getFeatureType()Sets the value ofCfnUsageLimitMixinProps.getLimitType()Sets the value ofCfnUsageLimitMixinProps.getPeriod()Sets the value ofCfnUsageLimitMixinProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
amount
Sets the value ofCfnUsageLimitMixinProps.getAmount()- 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:
this
-
breachAction
Sets the value ofCfnUsageLimitMixinProps.getBreachAction()- Parameters:
breachAction- The action that Amazon Redshift takes when the limit is reached. The default is log.- Returns:
this
-
clusterIdentifier
@Stability(Stable) public CfnUsageLimitMixinProps.Builder clusterIdentifier(String clusterIdentifier) Sets the value ofCfnUsageLimitMixinProps.getClusterIdentifier()- Parameters:
clusterIdentifier- The identifier of the cluster that you want to limit usage.- Returns:
this
-
featureType
Sets the value ofCfnUsageLimitMixinProps.getFeatureType()- Parameters:
featureType- The Amazon Redshift feature that you want to limit.- Returns:
this
-
limitType
Sets the value ofCfnUsageLimitMixinProps.getLimitType()- 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:
this
-
period
Sets the value ofCfnUsageLimitMixinProps.getPeriod()- Parameters:
period- The time period that the amount applies to. A weekly period begins on Sunday. The default is monthly.- Returns:
this
-
tags
Sets the value ofCfnUsageLimitMixinProps.getTags()- Parameters:
tags- A list of tag instances.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnUsageLimitMixinProps>- Returns:
- a new instance of
CfnUsageLimitMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-