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