Class CfnSnapshotPropsMixin.NodeSnapshotProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.elasticache.CfnSnapshotPropsMixin.NodeSnapshotProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSnapshotPropsMixin.NodeSnapshotProperty>
- Enclosing interface:
CfnSnapshotPropsMixin.NodeSnapshotProperty
@Stability(Stable)
public static final class CfnSnapshotPropsMixin.NodeSnapshotProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSnapshotPropsMixin.NodeSnapshotProperty>
A builder for
CfnSnapshotPropsMixin.NodeSnapshotProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.cacheClusterId(String cacheClusterId) Sets the value ofCfnSnapshotPropsMixin.NodeSnapshotProperty.getCacheClusterId()cacheNodeCreateTime(String cacheNodeCreateTime) Sets the value ofCfnSnapshotPropsMixin.NodeSnapshotProperty.getCacheNodeCreateTime()cacheNodeId(String cacheNodeId) Sets the value ofCfnSnapshotPropsMixin.NodeSnapshotProperty.getCacheNodeId()Sets the value ofCfnSnapshotPropsMixin.NodeSnapshotProperty.getCacheSize()nodeGroupId(String nodeGroupId) Sets the value ofCfnSnapshotPropsMixin.NodeSnapshotProperty.getNodeGroupId()snapshotCreateTime(String snapshotCreateTime) Sets the value ofCfnSnapshotPropsMixin.NodeSnapshotProperty.getSnapshotCreateTime()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
cacheClusterId
@Stability(Stable) public CfnSnapshotPropsMixin.NodeSnapshotProperty.Builder cacheClusterId(String cacheClusterId) Sets the value ofCfnSnapshotPropsMixin.NodeSnapshotProperty.getCacheClusterId()- Parameters:
cacheClusterId- A unique identifier for the source cluster.- Returns:
this
-
cacheNodeCreateTime
@Stability(Stable) public CfnSnapshotPropsMixin.NodeSnapshotProperty.Builder cacheNodeCreateTime(String cacheNodeCreateTime) Sets the value ofCfnSnapshotPropsMixin.NodeSnapshotProperty.getCacheNodeCreateTime()- Parameters:
cacheNodeCreateTime- The date and time when the cache node was created in the source cluster.- Returns:
this
-
cacheNodeId
@Stability(Stable) public CfnSnapshotPropsMixin.NodeSnapshotProperty.Builder cacheNodeId(String cacheNodeId) Sets the value ofCfnSnapshotPropsMixin.NodeSnapshotProperty.getCacheNodeId()- Parameters:
cacheNodeId- The cache node identifier for the node in the source cluster.- Returns:
this
-
cacheSize
@Stability(Stable) public CfnSnapshotPropsMixin.NodeSnapshotProperty.Builder cacheSize(String cacheSize) Sets the value ofCfnSnapshotPropsMixin.NodeSnapshotProperty.getCacheSize()- Parameters:
cacheSize- The size of the cache on the source cache node.- Returns:
this
-
nodeGroupId
@Stability(Stable) public CfnSnapshotPropsMixin.NodeSnapshotProperty.Builder nodeGroupId(String nodeGroupId) Sets the value ofCfnSnapshotPropsMixin.NodeSnapshotProperty.getNodeGroupId()- Parameters:
nodeGroupId- A unique identifier for the source node group (shard).- Returns:
this
-
snapshotCreateTime
@Stability(Stable) public CfnSnapshotPropsMixin.NodeSnapshotProperty.Builder snapshotCreateTime(String snapshotCreateTime) Sets the value ofCfnSnapshotPropsMixin.NodeSnapshotProperty.getSnapshotCreateTime()- Parameters:
snapshotCreateTime- The date and time when the source node's metadata and cache data set was obtained for the snapshot.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnSnapshotPropsMixin.NodeSnapshotProperty>- Returns:
- a new instance of
CfnSnapshotPropsMixin.NodeSnapshotProperty - Throws:
NullPointerException- if any required attribute was not provided
-