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