Class ElasticacheClusterConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.aws.elasticache_cluster.ElasticacheClusterConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ElasticacheClusterConfig>
- Enclosing interface:
- ElasticacheClusterConfig
@Stability(Stable) public static final class ElasticacheClusterConfig.Builder extends Object implements software.amazon.jsii.Builder<ElasticacheClusterConfig>
A builder forElasticacheClusterConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
clusterId
@Stability(Stable) public ElasticacheClusterConfig.Builder clusterId(String clusterId)
Sets the value ofElasticacheClusterConfig.getClusterId()- Parameters:
clusterId- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/elasticache_cluster#cluster_id ElasticacheCluster#cluster_id}. This parameter is required.- Returns:
this
-
applyImmediately
@Stability(Stable) public ElasticacheClusterConfig.Builder applyImmediately(Boolean applyImmediately)
Sets the value ofElasticacheClusterConfig.getApplyImmediately()- Parameters:
applyImmediately- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/elasticache_cluster#apply_immediately ElasticacheCluster#apply_immediately}.- Returns:
this
-
applyImmediately
@Stability(Stable) public ElasticacheClusterConfig.Builder applyImmediately(com.hashicorp.cdktf.IResolvable applyImmediately)
Sets the value ofElasticacheClusterConfig.getApplyImmediately()- Parameters:
applyImmediately- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/elasticache_cluster#apply_immediately ElasticacheCluster#apply_immediately}.- Returns:
this
-
autoMinorVersionUpgrade
@Stability(Stable) public ElasticacheClusterConfig.Builder autoMinorVersionUpgrade(String autoMinorVersionUpgrade)
Sets the value ofElasticacheClusterConfig.getAutoMinorVersionUpgrade()- Parameters:
autoMinorVersionUpgrade- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/elasticache_cluster#auto_minor_version_upgrade ElasticacheCluster#auto_minor_version_upgrade}.- Returns:
this
-
availabilityZone
@Stability(Stable) public ElasticacheClusterConfig.Builder availabilityZone(String availabilityZone)
Sets the value ofElasticacheClusterConfig.getAvailabilityZone()- Parameters:
availabilityZone- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/elasticache_cluster#availability_zone ElasticacheCluster#availability_zone}.- Returns:
this
-
azMode
@Stability(Stable) public ElasticacheClusterConfig.Builder azMode(String azMode)
Sets the value ofElasticacheClusterConfig.getAzMode()- Parameters:
azMode- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/elasticache_cluster#az_mode ElasticacheCluster#az_mode}.- Returns:
this
-
engine
@Stability(Stable) public ElasticacheClusterConfig.Builder engine(String engine)
Sets the value ofElasticacheClusterConfig.getEngine()- Parameters:
engine- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/elasticache_cluster#engine ElasticacheCluster#engine}.- Returns:
this
-
engineVersion
@Stability(Stable) public ElasticacheClusterConfig.Builder engineVersion(String engineVersion)
Sets the value ofElasticacheClusterConfig.getEngineVersion()- Parameters:
engineVersion- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/elasticache_cluster#engine_version ElasticacheCluster#engine_version}.- Returns:
this
-
finalSnapshotIdentifier
@Stability(Stable) public ElasticacheClusterConfig.Builder finalSnapshotIdentifier(String finalSnapshotIdentifier)
Sets the value ofElasticacheClusterConfig.getFinalSnapshotIdentifier()- Parameters:
finalSnapshotIdentifier- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/elasticache_cluster#final_snapshot_identifier ElasticacheCluster#final_snapshot_identifier}.- Returns:
this
-
id
@Stability(Stable) public ElasticacheClusterConfig.Builder id(String id)
Sets the value ofElasticacheClusterConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/elasticache_cluster#id ElasticacheCluster#id}. Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.- Returns:
this
-
ipDiscovery
@Stability(Stable) public ElasticacheClusterConfig.Builder ipDiscovery(String ipDiscovery)
Sets the value ofElasticacheClusterConfig.getIpDiscovery()- Parameters:
ipDiscovery- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/elasticache_cluster#ip_discovery ElasticacheCluster#ip_discovery}.- Returns:
this
-
logDeliveryConfiguration
@Stability(Stable) public ElasticacheClusterConfig.Builder logDeliveryConfiguration(com.hashicorp.cdktf.IResolvable logDeliveryConfiguration)
Sets the value ofElasticacheClusterConfig.getLogDeliveryConfiguration()- Parameters:
logDeliveryConfiguration- log_delivery_configuration block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/elasticache_cluster#log_delivery_configuration ElasticacheCluster#log_delivery_configuration}- Returns:
this
-
logDeliveryConfiguration
@Stability(Stable) public ElasticacheClusterConfig.Builder logDeliveryConfiguration(List<? extends ElasticacheClusterLogDeliveryConfiguration> logDeliveryConfiguration)
Sets the value ofElasticacheClusterConfig.getLogDeliveryConfiguration()- Parameters:
logDeliveryConfiguration- log_delivery_configuration block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/elasticache_cluster#log_delivery_configuration ElasticacheCluster#log_delivery_configuration}- Returns:
this
-
maintenanceWindow
@Stability(Stable) public ElasticacheClusterConfig.Builder maintenanceWindow(String maintenanceWindow)
Sets the value ofElasticacheClusterConfig.getMaintenanceWindow()- Parameters:
maintenanceWindow- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/elasticache_cluster#maintenance_window ElasticacheCluster#maintenance_window}.- Returns:
this
-
networkType
@Stability(Stable) public ElasticacheClusterConfig.Builder networkType(String networkType)
Sets the value ofElasticacheClusterConfig.getNetworkType()- Parameters:
networkType- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/elasticache_cluster#network_type ElasticacheCluster#network_type}.- Returns:
this
-
nodeType
@Stability(Stable) public ElasticacheClusterConfig.Builder nodeType(String nodeType)
Sets the value ofElasticacheClusterConfig.getNodeType()- Parameters:
nodeType- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/elasticache_cluster#node_type ElasticacheCluster#node_type}.- Returns:
this
-
notificationTopicArn
@Stability(Stable) public ElasticacheClusterConfig.Builder notificationTopicArn(String notificationTopicArn)
Sets the value ofElasticacheClusterConfig.getNotificationTopicArn()- Parameters:
notificationTopicArn- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/elasticache_cluster#notification_topic_arn ElasticacheCluster#notification_topic_arn}.- Returns:
this
-
numCacheNodes
@Stability(Stable) public ElasticacheClusterConfig.Builder numCacheNodes(Number numCacheNodes)
Sets the value ofElasticacheClusterConfig.getNumCacheNodes()- Parameters:
numCacheNodes- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/elasticache_cluster#num_cache_nodes ElasticacheCluster#num_cache_nodes}.- Returns:
this
-
outpostMode
@Stability(Stable) public ElasticacheClusterConfig.Builder outpostMode(String outpostMode)
Sets the value ofElasticacheClusterConfig.getOutpostMode()- Parameters:
outpostMode- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/elasticache_cluster#outpost_mode ElasticacheCluster#outpost_mode}.- Returns:
this
-
parameterGroupName
@Stability(Stable) public ElasticacheClusterConfig.Builder parameterGroupName(String parameterGroupName)
Sets the value ofElasticacheClusterConfig.getParameterGroupName()- Parameters:
parameterGroupName- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/elasticache_cluster#parameter_group_name ElasticacheCluster#parameter_group_name}.- Returns:
this
-
port
@Stability(Stable) public ElasticacheClusterConfig.Builder port(Number port)
Sets the value ofElasticacheClusterConfig.getPort()- Parameters:
port- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/elasticache_cluster#port ElasticacheCluster#port}.- Returns:
this
-
preferredAvailabilityZones
@Stability(Stable) public ElasticacheClusterConfig.Builder preferredAvailabilityZones(List<String> preferredAvailabilityZones)
Sets the value ofElasticacheClusterConfig.getPreferredAvailabilityZones()- Parameters:
preferredAvailabilityZones- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/elasticache_cluster#preferred_availability_zones ElasticacheCluster#preferred_availability_zones}.- Returns:
this
-
preferredOutpostArn
@Stability(Stable) public ElasticacheClusterConfig.Builder preferredOutpostArn(String preferredOutpostArn)
Sets the value ofElasticacheClusterConfig.getPreferredOutpostArn()- Parameters:
preferredOutpostArn- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/elasticache_cluster#preferred_outpost_arn ElasticacheCluster#preferred_outpost_arn}.- Returns:
this
-
replicationGroupId
@Stability(Stable) public ElasticacheClusterConfig.Builder replicationGroupId(String replicationGroupId)
Sets the value ofElasticacheClusterConfig.getReplicationGroupId()- Parameters:
replicationGroupId- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/elasticache_cluster#replication_group_id ElasticacheCluster#replication_group_id}.- Returns:
this
-
securityGroupIds
@Stability(Stable) public ElasticacheClusterConfig.Builder securityGroupIds(List<String> securityGroupIds)
Sets the value ofElasticacheClusterConfig.getSecurityGroupIds()- Parameters:
securityGroupIds- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/elasticache_cluster#security_group_ids ElasticacheCluster#security_group_ids}.- Returns:
this
-
snapshotArns
@Stability(Stable) public ElasticacheClusterConfig.Builder snapshotArns(List<String> snapshotArns)
Sets the value ofElasticacheClusterConfig.getSnapshotArns()- Parameters:
snapshotArns- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/elasticache_cluster#snapshot_arns ElasticacheCluster#snapshot_arns}.- Returns:
this
-
snapshotName
@Stability(Stable) public ElasticacheClusterConfig.Builder snapshotName(String snapshotName)
Sets the value ofElasticacheClusterConfig.getSnapshotName()- Parameters:
snapshotName- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/elasticache_cluster#snapshot_name ElasticacheCluster#snapshot_name}.- Returns:
this
-
snapshotRetentionLimit
@Stability(Stable) public ElasticacheClusterConfig.Builder snapshotRetentionLimit(Number snapshotRetentionLimit)
Sets the value ofElasticacheClusterConfig.getSnapshotRetentionLimit()- Parameters:
snapshotRetentionLimit- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/elasticache_cluster#snapshot_retention_limit ElasticacheCluster#snapshot_retention_limit}.- Returns:
this
-
snapshotWindow
@Stability(Stable) public ElasticacheClusterConfig.Builder snapshotWindow(String snapshotWindow)
Sets the value ofElasticacheClusterConfig.getSnapshotWindow()- Parameters:
snapshotWindow- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/elasticache_cluster#snapshot_window ElasticacheCluster#snapshot_window}.- Returns:
this
-
subnetGroupName
@Stability(Stable) public ElasticacheClusterConfig.Builder subnetGroupName(String subnetGroupName)
Sets the value ofElasticacheClusterConfig.getSubnetGroupName()- Parameters:
subnetGroupName- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/elasticache_cluster#subnet_group_name ElasticacheCluster#subnet_group_name}.- Returns:
this
-
tags
@Stability(Stable) public ElasticacheClusterConfig.Builder tags(Map<String,String> tags)
Sets the value ofElasticacheClusterConfig.getTags()- Parameters:
tags- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/elasticache_cluster#tags ElasticacheCluster#tags}.- Returns:
this
-
tagsAll
@Stability(Stable) public ElasticacheClusterConfig.Builder tagsAll(Map<String,String> tagsAll)
Sets the value ofElasticacheClusterConfig.getTagsAll()- Parameters:
tagsAll- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/elasticache_cluster#tags_all ElasticacheCluster#tags_all}.- Returns:
this
-
connection
@Stability(Experimental) public ElasticacheClusterConfig.Builder connection(com.hashicorp.cdktf.SSHProvisionerConnection connection)
Sets the value ofTerraformMetaArguments.getConnection()- Parameters:
connection- the value to be set.- Returns:
this
-
connection
@Stability(Experimental) public ElasticacheClusterConfig.Builder connection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)
Sets the value ofTerraformMetaArguments.getConnection()- Parameters:
connection- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public ElasticacheClusterConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public ElasticacheClusterConfig.Builder count(com.hashicorp.cdktf.TerraformCount count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
dependsOn
@Stability(Experimental) public ElasticacheClusterConfig.Builder dependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)
Sets the value ofTerraformMetaArguments.getDependsOn()- Parameters:
dependsOn- the value to be set.- Returns:
this
-
forEach
@Stability(Experimental) public ElasticacheClusterConfig.Builder forEach(com.hashicorp.cdktf.ITerraformIterator forEach)
Sets the value ofTerraformMetaArguments.getForEach()- Parameters:
forEach- the value to be set.- Returns:
this
-
lifecycle
@Stability(Experimental) public ElasticacheClusterConfig.Builder lifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)
Sets the value ofTerraformMetaArguments.getLifecycle()- Parameters:
lifecycle- the value to be set.- Returns:
this
-
provider
@Stability(Experimental) public ElasticacheClusterConfig.Builder provider(com.hashicorp.cdktf.TerraformProvider provider)
Sets the value ofTerraformMetaArguments.getProvider()- Parameters:
provider- the value to be set.- Returns:
this
-
provisioners
@Stability(Experimental) public ElasticacheClusterConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public ElasticacheClusterConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ElasticacheClusterConfig>- Returns:
- a new instance of
ElasticacheClusterConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-