Class MemcacheInstanceConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.memcache_instance.MemcacheInstanceConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<MemcacheInstanceConfig>
- Enclosing interface:
- MemcacheInstanceConfig
@Stability(Stable) public static final class MemcacheInstanceConfig.Builder extends Object implements software.amazon.jsii.Builder<MemcacheInstanceConfig>
A builder forMemcacheInstanceConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
name
@Stability(Stable) public MemcacheInstanceConfig.Builder name(String name)
Sets the value ofMemcacheInstanceConfig.getName()- Parameters:
name- The resource name of the instance. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/memcache_instance#name MemcacheInstance#name}- Returns:
this
-
nodeConfig
@Stability(Stable) public MemcacheInstanceConfig.Builder nodeConfig(MemcacheInstanceNodeConfig nodeConfig)
Sets the value ofMemcacheInstanceConfig.getNodeConfig()- Parameters:
nodeConfig- node_config block. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/memcache_instance#node_config MemcacheInstance#node_config}- Returns:
this
-
nodeCount
@Stability(Stable) public MemcacheInstanceConfig.Builder nodeCount(Number nodeCount)
Sets the value ofMemcacheInstanceConfig.getNodeCount()- Parameters:
nodeCount- Number of nodes in the memcache instance. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/memcache_instance#node_count MemcacheInstance#node_count}- Returns:
this
-
authorizedNetwork
@Stability(Stable) public MemcacheInstanceConfig.Builder authorizedNetwork(String authorizedNetwork)
Sets the value ofMemcacheInstanceConfig.getAuthorizedNetwork()- Parameters:
authorizedNetwork- The full name of the GCE network to connect the instance to. If not provided, 'default' will be used. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/memcache_instance#authorized_network MemcacheInstance#authorized_network}- Returns:
this
-
displayName
@Stability(Stable) public MemcacheInstanceConfig.Builder displayName(String displayName)
Sets the value ofMemcacheInstanceConfig.getDisplayName()- Parameters:
displayName- A user-visible name for the instance. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/memcache_instance#display_name MemcacheInstance#display_name}- Returns:
this
-
id
@Stability(Stable) public MemcacheInstanceConfig.Builder id(String id)
Sets the value ofMemcacheInstanceConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/memcache_instance#id MemcacheInstance#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
-
labels
@Stability(Stable) public MemcacheInstanceConfig.Builder labels(Map<String,String> labels)
Sets the value ofMemcacheInstanceConfig.getLabels()- Parameters:
labels- Resource labels to represent user-provided metadata. **Note**: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field 'effective_labels' for all of the labels present on the resource. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/memcache_instance#labels MemcacheInstance#labels}- Returns:
this
-
maintenancePolicy
@Stability(Stable) public MemcacheInstanceConfig.Builder maintenancePolicy(MemcacheInstanceMaintenancePolicy maintenancePolicy)
Sets the value ofMemcacheInstanceConfig.getMaintenancePolicy()- Parameters:
maintenancePolicy- maintenance_policy block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/memcache_instance#maintenance_policy MemcacheInstance#maintenance_policy}- Returns:
this
-
memcacheParameters
@Stability(Stable) public MemcacheInstanceConfig.Builder memcacheParameters(MemcacheInstanceMemcacheParameters memcacheParameters)
Sets the value ofMemcacheInstanceConfig.getMemcacheParameters()- Parameters:
memcacheParameters- memcache_parameters block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/memcache_instance#memcache_parameters MemcacheInstance#memcache_parameters}- Returns:
this
-
memcacheVersion
@Stability(Stable) public MemcacheInstanceConfig.Builder memcacheVersion(String memcacheVersion)
Sets the value ofMemcacheInstanceConfig.getMemcacheVersion()- Parameters:
memcacheVersion- The major version of Memcached software. If not provided, latest supported version will be used. Currently the latest supported major version is MEMCACHE_1_5. The minor version will be automatically determined by our system based on the latest supported minor version. Default value: "MEMCACHE_1_5" Possible values: ["MEMCACHE_1_5", "MEMCACHE_1_6_15"] Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/memcache_instance#memcache_version MemcacheInstance#memcache_version}- Returns:
this
-
project
@Stability(Stable) public MemcacheInstanceConfig.Builder project(String project)
Sets the value ofMemcacheInstanceConfig.getProject()- Parameters:
project- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/memcache_instance#project MemcacheInstance#project}.- Returns:
this
-
region
@Stability(Stable) public MemcacheInstanceConfig.Builder region(String region)
Sets the value ofMemcacheInstanceConfig.getRegion()- Parameters:
region- The region of the Memcache instance. If it is not provided, the provider region is used. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/memcache_instance#region MemcacheInstance#region}- Returns:
this
-
reservedIpRangeId
@Stability(Stable) public MemcacheInstanceConfig.Builder reservedIpRangeId(List<String> reservedIpRangeId)
Sets the value ofMemcacheInstanceConfig.getReservedIpRangeId()- Parameters:
reservedIpRangeId- Contains the name of allocated IP address ranges associated with the private service access connection for example, "test-default" associated with IP range 10.0.0.0/29. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/memcache_instance#reserved_ip_range_id MemcacheInstance#reserved_ip_range_id}- Returns:
this
-
timeouts
@Stability(Stable) public MemcacheInstanceConfig.Builder timeouts(MemcacheInstanceTimeouts timeouts)
Sets the value ofMemcacheInstanceConfig.getTimeouts()- Parameters:
timeouts- timeouts block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/memcache_instance#timeouts MemcacheInstance#timeouts}- Returns:
this
-
zones
@Stability(Stable) public MemcacheInstanceConfig.Builder zones(List<String> zones)
Sets the value ofMemcacheInstanceConfig.getZones()- Parameters:
zones- Zones where memcache nodes should be provisioned. If not provided, all zones will be used. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/memcache_instance#zones MemcacheInstance#zones}- Returns:
this
-
connection
@Stability(Experimental) public MemcacheInstanceConfig.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 MemcacheInstanceConfig.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 MemcacheInstanceConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public MemcacheInstanceConfig.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 MemcacheInstanceConfig.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 MemcacheInstanceConfig.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 MemcacheInstanceConfig.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 MemcacheInstanceConfig.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 MemcacheInstanceConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public MemcacheInstanceConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<MemcacheInstanceConfig>- Returns:
- a new instance of
MemcacheInstanceConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-