Class CfnServerlessCacheProps.Builder
java.lang.Object
software.amazon.awscdk.services.elasticache.CfnServerlessCacheProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnServerlessCacheProps>
- Enclosing interface:
CfnServerlessCacheProps
@Stability(Stable)
public static final class CfnServerlessCacheProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnServerlessCacheProps>
A builder for
CfnServerlessCacheProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.cacheUsageLimits(IResolvable cacheUsageLimits) Sets the value ofCfnServerlessCacheProps.getCacheUsageLimits()cacheUsageLimits(CfnServerlessCache.CacheUsageLimitsProperty cacheUsageLimits) Sets the value ofCfnServerlessCacheProps.getCacheUsageLimits()dailySnapshotTime(String dailySnapshotTime) Sets the value ofCfnServerlessCacheProps.getDailySnapshotTime()description(String description) Sets the value ofCfnServerlessCacheProps.getDescription()endpoint(IResolvable endpoint) Sets the value ofCfnServerlessCacheProps.getEndpoint()endpoint(CfnServerlessCache.EndpointProperty endpoint) Sets the value ofCfnServerlessCacheProps.getEndpoint()Sets the value ofCfnServerlessCacheProps.getEngine()finalSnapshotName(String finalSnapshotName) Sets the value ofCfnServerlessCacheProps.getFinalSnapshotName()Sets the value ofCfnServerlessCacheProps.getKmsKeyId()majorEngineVersion(String majorEngineVersion) Sets the value ofCfnServerlessCacheProps.getMajorEngineVersion()readerEndpoint(IResolvable readerEndpoint) Sets the value ofCfnServerlessCacheProps.getReaderEndpoint()readerEndpoint(CfnServerlessCache.EndpointProperty readerEndpoint) Sets the value ofCfnServerlessCacheProps.getReaderEndpoint()securityGroupIds(List<String> securityGroupIds) Sets the value ofCfnServerlessCacheProps.getSecurityGroupIds()serverlessCacheName(String serverlessCacheName) Sets the value ofCfnServerlessCacheProps.getServerlessCacheName()snapshotArnsToRestore(List<String> snapshotArnsToRestore) Sets the value ofCfnServerlessCacheProps.getSnapshotArnsToRestore()snapshotRetentionLimit(Number snapshotRetentionLimit) Sets the value ofCfnServerlessCacheProps.getSnapshotRetentionLimit()Sets the value ofCfnServerlessCacheProps.getSubnetIds()Sets the value ofCfnServerlessCacheProps.getTags()userGroupId(String userGroupId) Sets the value ofCfnServerlessCacheProps.getUserGroupId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
engine
Sets the value ofCfnServerlessCacheProps.getEngine()- Parameters:
engine- The engine the serverless cache is compatible with. This parameter is required.- Returns:
this
-
serverlessCacheName
@Stability(Stable) public CfnServerlessCacheProps.Builder serverlessCacheName(String serverlessCacheName) Sets the value ofCfnServerlessCacheProps.getServerlessCacheName()- Parameters:
serverlessCacheName- The unique identifier of the serverless cache. This parameter is required.- Returns:
this
-
cacheUsageLimits
@Stability(Stable) public CfnServerlessCacheProps.Builder cacheUsageLimits(IResolvable cacheUsageLimits) Sets the value ofCfnServerlessCacheProps.getCacheUsageLimits()- Parameters:
cacheUsageLimits- The cache usage limit for the serverless cache.- Returns:
this
-
cacheUsageLimits
@Stability(Stable) public CfnServerlessCacheProps.Builder cacheUsageLimits(CfnServerlessCache.CacheUsageLimitsProperty cacheUsageLimits) Sets the value ofCfnServerlessCacheProps.getCacheUsageLimits()- Parameters:
cacheUsageLimits- The cache usage limit for the serverless cache.- Returns:
this
-
dailySnapshotTime
@Stability(Stable) public CfnServerlessCacheProps.Builder dailySnapshotTime(String dailySnapshotTime) Sets the value ofCfnServerlessCacheProps.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 ofCfnServerlessCacheProps.getDescription()- Parameters:
description- A description of the serverless cache.- Returns:
this
-
endpoint
Sets the value ofCfnServerlessCacheProps.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 CfnServerlessCacheProps.Builder endpoint(CfnServerlessCache.EndpointProperty endpoint) Sets the value ofCfnServerlessCacheProps.getEndpoint()- Parameters:
endpoint- Represents the information required for client programs to connect to a cache node. This value is read-only.- Returns:
this
-
finalSnapshotName
@Stability(Stable) public CfnServerlessCacheProps.Builder finalSnapshotName(String finalSnapshotName) Sets the value ofCfnServerlessCacheProps.getFinalSnapshotName()- Parameters:
finalSnapshotName- The name of the final snapshot taken of a cache before the cache is deleted.- Returns:
this
-
kmsKeyId
Sets the value ofCfnServerlessCacheProps.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 CfnServerlessCacheProps.Builder majorEngineVersion(String majorEngineVersion) Sets the value ofCfnServerlessCacheProps.getMajorEngineVersion()- Parameters:
majorEngineVersion- The version number of the engine the serverless cache is compatible with.- Returns:
this
-
readerEndpoint
@Stability(Stable) public CfnServerlessCacheProps.Builder readerEndpoint(IResolvable readerEndpoint) Sets the value ofCfnServerlessCacheProps.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 CfnServerlessCacheProps.Builder readerEndpoint(CfnServerlessCache.EndpointProperty readerEndpoint) Sets the value ofCfnServerlessCacheProps.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 CfnServerlessCacheProps.Builder securityGroupIds(List<String> securityGroupIds) Sets the value ofCfnServerlessCacheProps.getSecurityGroupIds()- Parameters:
securityGroupIds- The IDs of the EC2 security groups associated with the serverless cache.- Returns:
this
-
snapshotArnsToRestore
@Stability(Stable) public CfnServerlessCacheProps.Builder snapshotArnsToRestore(List<String> snapshotArnsToRestore) Sets the value ofCfnServerlessCacheProps.getSnapshotArnsToRestore()- Parameters:
snapshotArnsToRestore- The ARN of the snapshot from which to restore data into the new cache.- Returns:
this
-
snapshotRetentionLimit
@Stability(Stable) public CfnServerlessCacheProps.Builder snapshotRetentionLimit(Number snapshotRetentionLimit) Sets the value ofCfnServerlessCacheProps.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
Sets the value ofCfnServerlessCacheProps.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 ofCfnServerlessCacheProps.getTags()- Parameters:
tags- A list of tags to be added to this resource.- Returns:
this
-
userGroupId
Sets the value ofCfnServerlessCacheProps.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<CfnServerlessCacheProps>- Returns:
- a new instance of
CfnServerlessCacheProps - Throws:
NullPointerException- if any required attribute was not provided
-