Class CfnServerlessCacheMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.elasticache.CfnServerlessCacheMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnServerlessCacheMixinProps>
- Enclosing interface:
CfnServerlessCacheMixinProps
@Stability(Stable)
public static final class CfnServerlessCacheMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnServerlessCacheMixinProps>
A builder for
CfnServerlessCacheMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.cacheUsageLimits(CfnServerlessCachePropsMixin.CacheUsageLimitsProperty cacheUsageLimits) Sets the value ofCfnServerlessCacheMixinProps.getCacheUsageLimits()cacheUsageLimits(IResolvable cacheUsageLimits) Sets the value ofCfnServerlessCacheMixinProps.getCacheUsageLimits()dailySnapshotTime(String dailySnapshotTime) Sets the value ofCfnServerlessCacheMixinProps.getDailySnapshotTime()description(String description) Sets the value ofCfnServerlessCacheMixinProps.getDescription()Sets the value ofCfnServerlessCacheMixinProps.getEndpoint()endpoint(IResolvable endpoint) Sets the value ofCfnServerlessCacheMixinProps.getEndpoint()Sets the value ofCfnServerlessCacheMixinProps.getEngine()finalSnapshotName(String finalSnapshotName) Sets the value ofCfnServerlessCacheMixinProps.getFinalSnapshotName()Sets the value ofCfnServerlessCacheMixinProps.getKmsKeyId()Sets the value ofCfnServerlessCacheMixinProps.getKmsKeyId()majorEngineVersion(String majorEngineVersion) Sets the value ofCfnServerlessCacheMixinProps.getMajorEngineVersion()readerEndpoint(CfnServerlessCachePropsMixin.EndpointProperty readerEndpoint) Sets the value ofCfnServerlessCacheMixinProps.getReaderEndpoint()readerEndpoint(IResolvable readerEndpoint) Sets the value ofCfnServerlessCacheMixinProps.getReaderEndpoint()securityGroupIds(List<? extends Object> securityGroupIds) Sets the value ofCfnServerlessCacheMixinProps.getSecurityGroupIds()serverlessCacheName(String serverlessCacheName) Sets the value ofCfnServerlessCacheMixinProps.getServerlessCacheName()snapshotArnsToRestore(List<String> snapshotArnsToRestore) Sets the value ofCfnServerlessCacheMixinProps.getSnapshotArnsToRestore()snapshotRetentionLimit(Number snapshotRetentionLimit) Sets the value ofCfnServerlessCacheMixinProps.getSnapshotRetentionLimit()Sets the value ofCfnServerlessCacheMixinProps.getSubnetIds()Sets the value ofCfnServerlessCacheMixinProps.getTags()userGroupId(String userGroupId) Sets the value ofCfnServerlessCacheMixinProps.getUserGroupId()userGroupId(IUserGroupRef userGroupId) Sets the value ofCfnServerlessCacheMixinProps.getUserGroupId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
cacheUsageLimits
@Stability(Stable) public CfnServerlessCacheMixinProps.Builder cacheUsageLimits(IResolvable cacheUsageLimits) Sets the value ofCfnServerlessCacheMixinProps.getCacheUsageLimits()- Parameters:
cacheUsageLimits- The cache usage limit for the serverless cache.- Returns:
this
-
cacheUsageLimits
@Stability(Stable) public CfnServerlessCacheMixinProps.Builder cacheUsageLimits(CfnServerlessCachePropsMixin.CacheUsageLimitsProperty cacheUsageLimits) Sets the value ofCfnServerlessCacheMixinProps.getCacheUsageLimits()- Parameters:
cacheUsageLimits- The cache usage limit for the serverless cache.- Returns:
this
-
dailySnapshotTime
@Stability(Stable) public CfnServerlessCacheMixinProps.Builder dailySnapshotTime(String dailySnapshotTime) Sets the value ofCfnServerlessCacheMixinProps.getDailySnapshotTime()- Parameters:
dailySnapshotTime- The daily time that a cache snapshot will be created. Default is NULL, i.e. snapshots will not be created at a specific time on a daily basis. Available for Valkey, Redis OSS and Serverless Memcached only.- Returns:
this
-
description
Sets the value ofCfnServerlessCacheMixinProps.getDescription()- Parameters:
description- A description of the serverless cache.- Returns:
this
-
endpoint
Sets the value ofCfnServerlessCacheMixinProps.getEndpoint()- Parameters:
endpoint- Represents the information required for client programs to connect to a cache node. This value is read-only.- Returns:
this
-
endpoint
@Stability(Stable) public CfnServerlessCacheMixinProps.Builder endpoint(CfnServerlessCachePropsMixin.EndpointProperty endpoint) Sets the value ofCfnServerlessCacheMixinProps.getEndpoint()- Parameters:
endpoint- Represents the information required for client programs to connect to a cache node. This value is read-only.- Returns:
this
-
engine
Sets the value ofCfnServerlessCacheMixinProps.getEngine()- Parameters:
engine- The engine the serverless cache is compatible with.- Returns:
this
-
finalSnapshotName
@Stability(Stable) public CfnServerlessCacheMixinProps.Builder finalSnapshotName(String finalSnapshotName) Sets the value ofCfnServerlessCacheMixinProps.getFinalSnapshotName()- Parameters:
finalSnapshotName- The name of the final snapshot taken of a cache before the cache is deleted.- Returns:
this
-
kmsKeyId
Sets the value ofCfnServerlessCacheMixinProps.getKmsKeyId()- Parameters:
kmsKeyId- The ID of the AWS Key Management Service (KMS) key that is used to encrypt data at rest in the serverless cache.- Returns:
this
-
kmsKeyId
Sets the value ofCfnServerlessCacheMixinProps.getKmsKeyId()- Parameters:
kmsKeyId- The ID of the AWS Key Management Service (KMS) key that is used to encrypt data at rest in the serverless cache.- Returns:
this
-
majorEngineVersion
@Stability(Stable) public CfnServerlessCacheMixinProps.Builder majorEngineVersion(String majorEngineVersion) Sets the value ofCfnServerlessCacheMixinProps.getMajorEngineVersion()- Parameters:
majorEngineVersion- The version number of the engine the serverless cache is compatible with.- Returns:
this
-
readerEndpoint
@Stability(Stable) public CfnServerlessCacheMixinProps.Builder readerEndpoint(IResolvable readerEndpoint) Sets the value ofCfnServerlessCacheMixinProps.getReaderEndpoint()- Parameters:
readerEndpoint- Represents the information required for client programs to connect to a cache node. This value is read-only.- Returns:
this
-
readerEndpoint
@Stability(Stable) public CfnServerlessCacheMixinProps.Builder readerEndpoint(CfnServerlessCachePropsMixin.EndpointProperty readerEndpoint) Sets the value ofCfnServerlessCacheMixinProps.getReaderEndpoint()- Parameters:
readerEndpoint- Represents the information required for client programs to connect to a cache node. This value is read-only.- Returns:
this
-
securityGroupIds
@Stability(Stable) public CfnServerlessCacheMixinProps.Builder securityGroupIds(List<? extends Object> securityGroupIds) Sets the value ofCfnServerlessCacheMixinProps.getSecurityGroupIds()- Parameters:
securityGroupIds- The IDs of the EC2 security groups associated with the serverless cache.- Returns:
this
-
serverlessCacheName
@Stability(Stable) public CfnServerlessCacheMixinProps.Builder serverlessCacheName(String serverlessCacheName) Sets the value ofCfnServerlessCacheMixinProps.getServerlessCacheName()- Parameters:
serverlessCacheName- The unique identifier of the serverless cache.- Returns:
this
-
snapshotArnsToRestore
@Stability(Stable) public CfnServerlessCacheMixinProps.Builder snapshotArnsToRestore(List<String> snapshotArnsToRestore) Sets the value ofCfnServerlessCacheMixinProps.getSnapshotArnsToRestore()- Parameters:
snapshotArnsToRestore- The ARN of the snapshot from which to restore data into the new cache.- Returns:
this
-
snapshotRetentionLimit
@Stability(Stable) public CfnServerlessCacheMixinProps.Builder snapshotRetentionLimit(Number snapshotRetentionLimit) Sets the value ofCfnServerlessCacheMixinProps.getSnapshotRetentionLimit()- Parameters:
snapshotRetentionLimit- The current setting for the number of serverless cache snapshots the system will retain. Available for Valkey, Redis OSS and Serverless Memcached only.- Returns:
this
-
subnetIds
@Stability(Stable) public CfnServerlessCacheMixinProps.Builder subnetIds(List<? extends Object> subnetIds) Sets the value ofCfnServerlessCacheMixinProps.getSubnetIds()- Parameters:
subnetIds- If no subnet IDs are given and your VPC is in us-west-1, then ElastiCache will select 2 default subnets across AZs in your VPC. For all other Regions, if no subnet IDs are given then ElastiCache will select 3 default subnets across AZs in your default VPC.- Returns:
this
-
tags
Sets the value ofCfnServerlessCacheMixinProps.getTags()- Parameters:
tags- A list of tags to be added to this resource.- Returns:
this
-
userGroupId
Sets the value ofCfnServerlessCacheMixinProps.getUserGroupId()- Parameters:
userGroupId- The identifier of the user group associated with the serverless cache. Available for Valkey and Redis OSS only. Default is NULL.- Returns:
this
-
userGroupId
@Stability(Stable) public CfnServerlessCacheMixinProps.Builder userGroupId(IUserGroupRef userGroupId) Sets the value ofCfnServerlessCacheMixinProps.getUserGroupId()- Parameters:
userGroupId- The identifier of the user group associated with the serverless cache. Available for Valkey and Redis OSS only. Default is NULL.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnServerlessCacheMixinProps>- Returns:
- a new instance of
CfnServerlessCacheMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-