Class CfnServerlessCacheSnapshotMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.elasticache.CfnServerlessCacheSnapshotMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnServerlessCacheSnapshotMixinProps>
- Enclosing interface:
CfnServerlessCacheSnapshotMixinProps
@Stability(Stable)
public static final class CfnServerlessCacheSnapshotMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnServerlessCacheSnapshotMixinProps>
A builder for
CfnServerlessCacheSnapshotMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnServerlessCacheSnapshotMixinProps.getKmsKeyId()serverlessCacheName(String serverlessCacheName) Sets the value ofCfnServerlessCacheSnapshotMixinProps.getServerlessCacheName()serverlessCacheSnapshotName(String serverlessCacheSnapshotName) Sets the value ofCfnServerlessCacheSnapshotMixinProps.getServerlessCacheSnapshotName()Sets the value ofCfnServerlessCacheSnapshotMixinProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
kmsKeyId
Sets the value ofCfnServerlessCacheSnapshotMixinProps.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
-
serverlessCacheName
@Stability(Stable) public CfnServerlessCacheSnapshotMixinProps.Builder serverlessCacheName(String serverlessCacheName) Sets the value ofCfnServerlessCacheSnapshotMixinProps.getServerlessCacheName()- Parameters:
serverlessCacheName- The name of an existing serverless cache. The snapshot is created from this cache.- Returns:
this
-
serverlessCacheSnapshotName
@Stability(Stable) public CfnServerlessCacheSnapshotMixinProps.Builder serverlessCacheSnapshotName(String serverlessCacheSnapshotName) Sets the value ofCfnServerlessCacheSnapshotMixinProps.getServerlessCacheSnapshotName()- Parameters:
serverlessCacheSnapshotName- The name of the serverless cache snapshot. Must be unique for the customer account. This value is stored as a lowercase string.- Returns:
this
-
tags
@Stability(Stable) public CfnServerlessCacheSnapshotMixinProps.Builder tags(List<? extends CfnTag> tags) Sets the value ofCfnServerlessCacheSnapshotMixinProps.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<CfnServerlessCacheSnapshotMixinProps>- Returns:
- a new instance of
CfnServerlessCacheSnapshotMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-