Class RedisClusterConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.redis_cluster.RedisClusterConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<RedisClusterConfig>
- Enclosing interface:
- RedisClusterConfig
@Stability(Stable) public static final class RedisClusterConfig.Builder extends Object implements software.amazon.jsii.Builder<RedisClusterConfig>
A builder forRedisClusterConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RedisClusterConfig.BuilderauthorizationMode(String authorizationMode)Sets the value ofRedisClusterConfig.getAuthorizationMode()RedisClusterConfigbuild()Builds the configured instance.RedisClusterConfig.Builderconnection(com.hashicorp.cdktf.SSHProvisionerConnection connection)Sets the value ofTerraformMetaArguments.getConnection()RedisClusterConfig.Builderconnection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)Sets the value ofTerraformMetaArguments.getConnection()RedisClusterConfig.Buildercount(com.hashicorp.cdktf.TerraformCount count)Sets the value ofTerraformMetaArguments.getCount()RedisClusterConfig.Buildercount(Number count)Sets the value ofTerraformMetaArguments.getCount()RedisClusterConfig.BuilderdependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)Sets the value ofTerraformMetaArguments.getDependsOn()RedisClusterConfig.BuilderforEach(com.hashicorp.cdktf.ITerraformIterator forEach)Sets the value ofTerraformMetaArguments.getForEach()RedisClusterConfig.Builderid(String id)Sets the value ofRedisClusterConfig.getId()RedisClusterConfig.Builderlifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)Sets the value ofTerraformMetaArguments.getLifecycle()RedisClusterConfig.Buildername(String name)Sets the value ofRedisClusterConfig.getName()RedisClusterConfig.BuildernodeType(String nodeType)Sets the value ofRedisClusterConfig.getNodeType()RedisClusterConfig.Builderproject(String project)Sets the value ofRedisClusterConfig.getProject()RedisClusterConfig.Builderprovider(com.hashicorp.cdktf.TerraformProvider provider)Sets the value ofTerraformMetaArguments.getProvider()RedisClusterConfig.Builderprovisioners(List<? extends Object> provisioners)Sets the value ofTerraformMetaArguments.getProvisioners()RedisClusterConfig.BuilderpscConfigs(com.hashicorp.cdktf.IResolvable pscConfigs)Sets the value ofRedisClusterConfig.getPscConfigs()RedisClusterConfig.BuilderpscConfigs(List<? extends RedisClusterPscConfigs> pscConfigs)Sets the value ofRedisClusterConfig.getPscConfigs()RedisClusterConfig.BuilderredisConfigs(Map<String,String> redisConfigs)Sets the value ofRedisClusterConfig.getRedisConfigs()RedisClusterConfig.Builderregion(String region)Sets the value ofRedisClusterConfig.getRegion()RedisClusterConfig.BuilderreplicaCount(Number replicaCount)Sets the value ofRedisClusterConfig.getReplicaCount()RedisClusterConfig.BuildershardCount(Number shardCount)Sets the value ofRedisClusterConfig.getShardCount()RedisClusterConfig.Buildertimeouts(RedisClusterTimeouts timeouts)Sets the value ofRedisClusterConfig.getTimeouts()RedisClusterConfig.BuildertransitEncryptionMode(String transitEncryptionMode)Sets the value ofRedisClusterConfig.getTransitEncryptionMode()RedisClusterConfig.BuilderzoneDistributionConfig(RedisClusterZoneDistributionConfig zoneDistributionConfig)Sets the value ofRedisClusterConfig.getZoneDistributionConfig()
-
-
-
Method Detail
-
pscConfigs
@Stability(Stable) public RedisClusterConfig.Builder pscConfigs(com.hashicorp.cdktf.IResolvable pscConfigs)
Sets the value ofRedisClusterConfig.getPscConfigs()- Parameters:
pscConfigs- psc_configs block. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/redis_cluster#psc_configs RedisCluster#psc_configs}- Returns:
this
-
pscConfigs
@Stability(Stable) public RedisClusterConfig.Builder pscConfigs(List<? extends RedisClusterPscConfigs> pscConfigs)
Sets the value ofRedisClusterConfig.getPscConfigs()- Parameters:
pscConfigs- psc_configs block. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/redis_cluster#psc_configs RedisCluster#psc_configs}- Returns:
this
-
shardCount
@Stability(Stable) public RedisClusterConfig.Builder shardCount(Number shardCount)
Sets the value ofRedisClusterConfig.getShardCount()- Parameters:
shardCount- Required. Number of shards for the Redis cluster. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/redis_cluster#shard_count RedisCluster#shard_count}- Returns:
this
-
authorizationMode
@Stability(Stable) public RedisClusterConfig.Builder authorizationMode(String authorizationMode)
Sets the value ofRedisClusterConfig.getAuthorizationMode()- Parameters:
authorizationMode- Optional. The authorization mode of the Redis cluster. If not provided, auth feature is disabled for the cluster. Default value: "AUTH_MODE_DISABLED" Possible values: ["AUTH_MODE_UNSPECIFIED", "AUTH_MODE_IAM_AUTH", "AUTH_MODE_DISABLED"] Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/redis_cluster#authorization_mode RedisCluster#authorization_mode}- Returns:
this
-
id
@Stability(Stable) public RedisClusterConfig.Builder id(String id)
Sets the value ofRedisClusterConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/redis_cluster#id RedisCluster#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
-
name
@Stability(Stable) public RedisClusterConfig.Builder name(String name)
Sets the value ofRedisClusterConfig.getName()- Parameters:
name- Unique name of the resource in this scope including project and location using the form: projects/{projectId}/locations/{locationId}/clusters/{clusterId}. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/redis_cluster#name RedisCluster#name}- Returns:
this
-
nodeType
@Stability(Stable) public RedisClusterConfig.Builder nodeType(String nodeType)
Sets the value ofRedisClusterConfig.getNodeType()- Parameters:
nodeType- The nodeType for the Redis cluster. If not provided, REDIS_HIGHMEM_MEDIUM will be used as default Possible values: ["REDIS_SHARED_CORE_NANO", "REDIS_HIGHMEM_MEDIUM", "REDIS_HIGHMEM_XLARGE", "REDIS_STANDARD_SMALL"] Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/redis_cluster#node_type RedisCluster#node_type}- Returns:
this
-
project
@Stability(Stable) public RedisClusterConfig.Builder project(String project)
Sets the value ofRedisClusterConfig.getProject()- Parameters:
project- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/redis_cluster#project RedisCluster#project}.- Returns:
this
-
redisConfigs
@Stability(Stable) public RedisClusterConfig.Builder redisConfigs(Map<String,String> redisConfigs)
Sets the value ofRedisClusterConfig.getRedisConfigs()- Parameters:
redisConfigs- Configure Redis Cluster behavior using a subset of native Redis configuration parameters. Please check Memorystore documentation for the list of supported parameters: https://cloud.google.com/memorystore/docs/cluster/supported-instance-configurations Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/redis_cluster#redis_configs RedisCluster#redis_configs}- Returns:
this
-
region
@Stability(Stable) public RedisClusterConfig.Builder region(String region)
Sets the value ofRedisClusterConfig.getRegion()- Parameters:
region- The name of the region of the Redis cluster. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/redis_cluster#region RedisCluster#region}- Returns:
this
-
replicaCount
@Stability(Stable) public RedisClusterConfig.Builder replicaCount(Number replicaCount)
Sets the value ofRedisClusterConfig.getReplicaCount()- Parameters:
replicaCount- Optional. The number of replica nodes per shard. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/redis_cluster#replica_count RedisCluster#replica_count}- Returns:
this
-
timeouts
@Stability(Stable) public RedisClusterConfig.Builder timeouts(RedisClusterTimeouts timeouts)
Sets the value ofRedisClusterConfig.getTimeouts()- Parameters:
timeouts- timeouts block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/redis_cluster#timeouts RedisCluster#timeouts}- Returns:
this
-
transitEncryptionMode
@Stability(Stable) public RedisClusterConfig.Builder transitEncryptionMode(String transitEncryptionMode)
Sets the value ofRedisClusterConfig.getTransitEncryptionMode()- Parameters:
transitEncryptionMode- Optional. The in-transit encryption for the Redis cluster. If not provided, encryption is disabled for the cluster. Default value: "TRANSIT_ENCRYPTION_MODE_DISABLED" Possible values: ["TRANSIT_ENCRYPTION_MODE_UNSPECIFIED", "TRANSIT_ENCRYPTION_MODE_DISABLED", "TRANSIT_ENCRYPTION_MODE_SERVER_AUTHENTICATION"] Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/redis_cluster#transit_encryption_mode RedisCluster#transit_encryption_mode}- Returns:
this
-
zoneDistributionConfig
@Stability(Stable) public RedisClusterConfig.Builder zoneDistributionConfig(RedisClusterZoneDistributionConfig zoneDistributionConfig)
Sets the value ofRedisClusterConfig.getZoneDistributionConfig()- Parameters:
zoneDistributionConfig- zone_distribution_config block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/redis_cluster#zone_distribution_config RedisCluster#zone_distribution_config}- Returns:
this
-
connection
@Stability(Experimental) public RedisClusterConfig.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 RedisClusterConfig.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 RedisClusterConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public RedisClusterConfig.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 RedisClusterConfig.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 RedisClusterConfig.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 RedisClusterConfig.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 RedisClusterConfig.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 RedisClusterConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public RedisClusterConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<RedisClusterConfig>- Returns:
- a new instance of
RedisClusterConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-