Class CfnScheduledAction.ResizeClusterMessageProperty.Builder
java.lang.Object
software.amazon.awscdk.services.redshift.CfnScheduledAction.ResizeClusterMessageProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnScheduledAction.ResizeClusterMessageProperty>
- Enclosing interface:
CfnScheduledAction.ResizeClusterMessageProperty
@Stability(Stable)
public static final class CfnScheduledAction.ResizeClusterMessageProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnScheduledAction.ResizeClusterMessageProperty>
A builder for
CfnScheduledAction.ResizeClusterMessageProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnScheduledAction.ResizeClusterMessageProperty.getClassic()classic(IResolvable classic) Sets the value ofCfnScheduledAction.ResizeClusterMessageProperty.getClassic()clusterIdentifier(String clusterIdentifier) Sets the value ofCfnScheduledAction.ResizeClusterMessageProperty.getClusterIdentifier()clusterType(String clusterType) Sets the value ofCfnScheduledAction.ResizeClusterMessageProperty.getClusterType()Sets the value ofCfnScheduledAction.ResizeClusterMessageProperty.getNodeType()numberOfNodes(Number numberOfNodes) Sets the value ofCfnScheduledAction.ResizeClusterMessageProperty.getNumberOfNodes()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
clusterIdentifier
@Stability(Stable) public CfnScheduledAction.ResizeClusterMessageProperty.Builder clusterIdentifier(String clusterIdentifier) Sets the value ofCfnScheduledAction.ResizeClusterMessageProperty.getClusterIdentifier()- Parameters:
clusterIdentifier- The unique identifier for the cluster to resize. This parameter is required.- Returns:
this
-
classic
@Stability(Stable) public CfnScheduledAction.ResizeClusterMessageProperty.Builder classic(Boolean classic) Sets the value ofCfnScheduledAction.ResizeClusterMessageProperty.getClassic()- Parameters:
classic- A boolean value indicating whether the resize operation is using the classic resize process. If you don't provide this parameter or set the value tofalse, the resize type is elastic.- Returns:
this
-
classic
@Stability(Stable) public CfnScheduledAction.ResizeClusterMessageProperty.Builder classic(IResolvable classic) Sets the value ofCfnScheduledAction.ResizeClusterMessageProperty.getClassic()- Parameters:
classic- A boolean value indicating whether the resize operation is using the classic resize process. If you don't provide this parameter or set the value tofalse, the resize type is elastic.- Returns:
this
-
clusterType
@Stability(Stable) public CfnScheduledAction.ResizeClusterMessageProperty.Builder clusterType(String clusterType) Sets the value ofCfnScheduledAction.ResizeClusterMessageProperty.getClusterType()- Parameters:
clusterType- The new cluster type for the specified cluster.- Returns:
this
-
nodeType
@Stability(Stable) public CfnScheduledAction.ResizeClusterMessageProperty.Builder nodeType(String nodeType) Sets the value ofCfnScheduledAction.ResizeClusterMessageProperty.getNodeType()- Parameters:
nodeType- The new node type for the nodes you are adding. If not specified, the cluster's current node type is used.- Returns:
this
-
numberOfNodes
@Stability(Stable) public CfnScheduledAction.ResizeClusterMessageProperty.Builder numberOfNodes(Number numberOfNodes) Sets the value ofCfnScheduledAction.ResizeClusterMessageProperty.getNumberOfNodes()- Parameters:
numberOfNodes- The new number of nodes for the cluster. If not specified, the cluster's current number of nodes is used.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnScheduledAction.ResizeClusterMessageProperty>- Returns:
- a new instance of
CfnScheduledAction.ResizeClusterMessageProperty - Throws:
NullPointerException- if any required attribute was not provided
-