Class CfnServerlessCacheSnapshotProps.Builder
java.lang.Object
software.amazon.awscdk.services.elasticache.CfnServerlessCacheSnapshotProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnServerlessCacheSnapshotProps>
- Enclosing interface:
CfnServerlessCacheSnapshotProps
@Stability(Stable)
public static final class CfnServerlessCacheSnapshotProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnServerlessCacheSnapshotProps>
A builder for
CfnServerlessCacheSnapshotProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnServerlessCacheSnapshotProps.getKmsKeyId()serverlessCacheName(String serverlessCacheName) Sets the value ofCfnServerlessCacheSnapshotProps.getServerlessCacheName()serverlessCacheSnapshotName(String serverlessCacheSnapshotName) Sets the value ofCfnServerlessCacheSnapshotProps.getServerlessCacheSnapshotName()Sets the value ofCfnServerlessCacheSnapshotProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
serverlessCacheName
@Stability(Stable) public CfnServerlessCacheSnapshotProps.Builder serverlessCacheName(String serverlessCacheName) Sets the value ofCfnServerlessCacheSnapshotProps.getServerlessCacheName()- Parameters:
serverlessCacheName- The name of an existing serverless cache. This parameter is required. The snapshot is created from this cache.- Returns:
this
-
serverlessCacheSnapshotName
@Stability(Stable) public CfnServerlessCacheSnapshotProps.Builder serverlessCacheSnapshotName(String serverlessCacheSnapshotName) Sets the value ofCfnServerlessCacheSnapshotProps.getServerlessCacheSnapshotName()- Parameters:
serverlessCacheSnapshotName- The name of the serverless cache snapshot. This parameter is required. Must be unique for the customer account. This value is stored as a lowercase string.- Returns:
this
-
kmsKeyId
Sets the value ofCfnServerlessCacheSnapshotProps.getKmsKeyId()- Parameters:
kmsKeyId- The Amazon Resource Name (ARN) of the AWS KMS key used to encrypt the snapshot. Provide the key ARN: the resource returns the key ARN on read, so supplying a bare key ID or alias for this createOnly property may be reported as drift by CloudFormation.- Returns:
this
-
tags
Sets the value ofCfnServerlessCacheSnapshotProps.getTags()- Parameters:
tags- A list of tags to be added to the serverless cache snapshot resource.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnServerlessCacheSnapshotProps>- Returns:
- a new instance of
CfnServerlessCacheSnapshotProps - Throws:
NullPointerException- if any required attribute was not provided
-