Class MemcacheInstance.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.memcache_instance.MemcacheInstance.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<MemcacheInstance>
- Enclosing class:
- MemcacheInstance
@Stability(Stable) public static final class MemcacheInstance.Builder extends Object implements software.amazon.jsii.Builder<MemcacheInstance>
A fluent builder forMemcacheInstance.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MemcacheInstance.BuilderauthorizedNetwork(String authorizedNetwork)The full name of the GCE network to connect the instance to.MemcacheInstancebuild()MemcacheInstance.Builderconnection(com.hashicorp.cdktf.SSHProvisionerConnection connection)MemcacheInstance.Builderconnection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)MemcacheInstance.Buildercount(com.hashicorp.cdktf.TerraformCount count)MemcacheInstance.Buildercount(Number count)static MemcacheInstance.Buildercreate(software.constructs.Construct scope, String id)MemcacheInstance.BuilderdependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)MemcacheInstance.BuilderdisplayName(String displayName)A user-visible name for the instance.MemcacheInstance.BuilderforEach(com.hashicorp.cdktf.ITerraformIterator forEach)MemcacheInstance.Builderid(String id)Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/memcache_instance#id MemcacheInstance#id}.MemcacheInstance.Builderlabels(Map<String,String> labels)Resource labels to represent user-provided metadata.MemcacheInstance.Builderlifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)MemcacheInstance.BuildermaintenancePolicy(MemcacheInstanceMaintenancePolicy maintenancePolicy)maintenance_policy block.MemcacheInstance.BuildermemcacheParameters(MemcacheInstanceMemcacheParameters memcacheParameters)memcache_parameters block.MemcacheInstance.BuildermemcacheVersion(String memcacheVersion)The major version of Memcached software.MemcacheInstance.Buildername(String name)The resource name of the instance.MemcacheInstance.BuildernodeConfig(MemcacheInstanceNodeConfig nodeConfig)node_config block.MemcacheInstance.BuildernodeCount(Number nodeCount)Number of nodes in the memcache instance.MemcacheInstance.Builderproject(String project)Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/memcache_instance#project MemcacheInstance#project}.MemcacheInstance.Builderprovider(com.hashicorp.cdktf.TerraformProvider provider)MemcacheInstance.Builderprovisioners(List<? extends Object> provisioners)MemcacheInstance.Builderregion(String region)The region of the Memcache instance.MemcacheInstance.BuilderreservedIpRangeId(List<String> 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.MemcacheInstance.Buildertimeouts(MemcacheInstanceTimeouts timeouts)timeouts block.MemcacheInstance.Builderzones(List<String> zones)Zones where memcache nodes should be provisioned.
-
-
-
Method Detail
-
create
@Stability(Stable) public static MemcacheInstance.Builder create(software.constructs.Construct scope, String id)
- Parameters:
scope- The scope in which to define this construct. This parameter is required.id- The scoped construct ID. This parameter is required.- Returns:
- a new instance of
MemcacheInstance.Builder.
-
connection
@Stability(Experimental) public MemcacheInstance.Builder connection(com.hashicorp.cdktf.SSHProvisionerConnection connection)
- Parameters:
connection- This parameter is required.- Returns:
this
-
connection
@Stability(Experimental) public MemcacheInstance.Builder connection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)
- Parameters:
connection- This parameter is required.- Returns:
this
-
count
@Stability(Experimental) public MemcacheInstance.Builder count(Number count)
- Parameters:
count- This parameter is required.- Returns:
this
-
count
@Stability(Experimental) public MemcacheInstance.Builder count(com.hashicorp.cdktf.TerraformCount count)
- Parameters:
count- This parameter is required.- Returns:
this
-
dependsOn
@Stability(Experimental) public MemcacheInstance.Builder dependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)
- Parameters:
dependsOn- This parameter is required.- Returns:
this
-
forEach
@Stability(Experimental) public MemcacheInstance.Builder forEach(com.hashicorp.cdktf.ITerraformIterator forEach)
- Parameters:
forEach- This parameter is required.- Returns:
this
-
lifecycle
@Stability(Experimental) public MemcacheInstance.Builder lifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)
- Parameters:
lifecycle- This parameter is required.- Returns:
this
-
provider
@Stability(Experimental) public MemcacheInstance.Builder provider(com.hashicorp.cdktf.TerraformProvider provider)
- Parameters:
provider- This parameter is required.- Returns:
this
-
provisioners
@Stability(Experimental) public MemcacheInstance.Builder provisioners(List<? extends Object> provisioners)
- Parameters:
provisioners- This parameter is required.- Returns:
this
-
name
@Stability(Stable) public MemcacheInstance.Builder name(String name)
The resource name of the instance.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/memcache_instance#name MemcacheInstance#name}
- Parameters:
name- The resource name of the instance. This parameter is required.- Returns:
this
-
nodeConfig
@Stability(Stable) public MemcacheInstance.Builder nodeConfig(MemcacheInstanceNodeConfig nodeConfig)
node_config block.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/memcache_instance#node_config MemcacheInstance#node_config}
- Parameters:
nodeConfig- node_config block. This parameter is required.- Returns:
this
-
nodeCount
@Stability(Stable) public MemcacheInstance.Builder nodeCount(Number nodeCount)
Number of nodes in the memcache instance.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/memcache_instance#node_count MemcacheInstance#node_count}
- Parameters:
nodeCount- Number of nodes in the memcache instance. This parameter is required.- Returns:
this
-
authorizedNetwork
@Stability(Stable) public MemcacheInstance.Builder authorizedNetwork(String 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}
- Parameters:
authorizedNetwork- The full name of the GCE network to connect the instance to. If not provided, 'default' will be used. This parameter is required.- Returns:
this
-
displayName
@Stability(Stable) public MemcacheInstance.Builder displayName(String 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}
- Parameters:
displayName- A user-visible name for the instance. This parameter is required.- Returns:
this
-
id
@Stability(Stable) public MemcacheInstance.Builder id(String 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.
- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/memcache_instance#id MemcacheInstance#id}. This parameter is required.- Returns:
this
-
labels
@Stability(Stable) public MemcacheInstance.Builder labels(Map<String,String> 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}
- Parameters:
labels- Resource labels to represent user-provided metadata. This parameter is required.- Returns:
this
-
maintenancePolicy
@Stability(Stable) public MemcacheInstance.Builder maintenancePolicy(MemcacheInstanceMaintenancePolicy 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}
- Parameters:
maintenancePolicy- maintenance_policy block. This parameter is required.- Returns:
this
-
memcacheParameters
@Stability(Stable) public MemcacheInstance.Builder memcacheParameters(MemcacheInstanceMemcacheParameters 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}
- Parameters:
memcacheParameters- memcache_parameters block. This parameter is required.- Returns:
this
-
memcacheVersion
@Stability(Stable) public MemcacheInstance.Builder memcacheVersion(String 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}
- Parameters:
memcacheVersion- The major version of Memcached software. This parameter is required.- Returns:
this
-
project
@Stability(Stable) public MemcacheInstance.Builder project(String project)
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/memcache_instance#project MemcacheInstance#project}.- Parameters:
project- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/memcache_instance#project MemcacheInstance#project}. This parameter is required.- Returns:
this
-
region
@Stability(Stable) public MemcacheInstance.Builder region(String 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}
- Parameters:
region- The region of the Memcache instance. If it is not provided, the provider region is used. This parameter is required.- Returns:
this
-
reservedIpRangeId
@Stability(Stable) public MemcacheInstance.Builder reservedIpRangeId(List<String> 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}
- 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. This parameter is required.- Returns:
this
-
timeouts
@Stability(Stable) public MemcacheInstance.Builder timeouts(MemcacheInstanceTimeouts 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}
- Parameters:
timeouts- timeouts block. This parameter is required.- Returns:
this
-
zones
@Stability(Stable) public MemcacheInstance.Builder zones(List<String> 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}
- Parameters:
zones- Zones where memcache nodes should be provisioned. If not provided, all zones will be used. This parameter is required.- Returns:
this
-
build
@Stability(Stable) public MemcacheInstance build()
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<MemcacheInstance>- Returns:
- a newly built instance of
MemcacheInstance.
-
-