Class FilestoreInstanceConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.filestore_instance.FilestoreInstanceConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<FilestoreInstanceConfig>
- Enclosing interface:
- FilestoreInstanceConfig
@Stability(Stable) public static final class FilestoreInstanceConfig.Builder extends Object implements software.amazon.jsii.Builder<FilestoreInstanceConfig>
A builder forFilestoreInstanceConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
fileShares
@Stability(Stable) public FilestoreInstanceConfig.Builder fileShares(FilestoreInstanceFileShares fileShares)
Sets the value ofFilestoreInstanceConfig.getFileShares()- Parameters:
fileShares- file_shares block. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/filestore_instance#file_shares FilestoreInstance#file_shares}- Returns:
this
-
name
@Stability(Stable) public FilestoreInstanceConfig.Builder name(String name)
Sets the value ofFilestoreInstanceConfig.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/filestore_instance#name FilestoreInstance#name}- Returns:
this
-
networks
@Stability(Stable) public FilestoreInstanceConfig.Builder networks(com.hashicorp.cdktf.IResolvable networks)
Sets the value ofFilestoreInstanceConfig.getNetworks()- Parameters:
networks- networks block. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/filestore_instance#networks FilestoreInstance#networks}- Returns:
this
-
networks
@Stability(Stable) public FilestoreInstanceConfig.Builder networks(List<? extends FilestoreInstanceNetworks> networks)
Sets the value ofFilestoreInstanceConfig.getNetworks()- Parameters:
networks- networks block. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/filestore_instance#networks FilestoreInstance#networks}- Returns:
this
-
tier
@Stability(Stable) public FilestoreInstanceConfig.Builder tier(String tier)
Sets the value ofFilestoreInstanceConfig.getTier()- Parameters:
tier- The service tier of the instance. Possible values include: STANDARD, PREMIUM, BASIC_HDD, BASIC_SSD, HIGH_SCALE_SSD, ZONAL, REGIONAL and ENTERPRISE. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/filestore_instance#tier FilestoreInstance#tier}- Returns:
this
-
description
@Stability(Stable) public FilestoreInstanceConfig.Builder description(String description)
Sets the value ofFilestoreInstanceConfig.getDescription()- Parameters:
description- A description of the instance. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/filestore_instance#description FilestoreInstance#description}- Returns:
this
-
id
@Stability(Stable) public FilestoreInstanceConfig.Builder id(String id)
Sets the value ofFilestoreInstanceConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/filestore_instance#id FilestoreInstance#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
-
kmsKeyName
@Stability(Stable) public FilestoreInstanceConfig.Builder kmsKeyName(String kmsKeyName)
Sets the value ofFilestoreInstanceConfig.getKmsKeyName()- Parameters:
kmsKeyName- KMS key name used for data encryption. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/filestore_instance#kms_key_name FilestoreInstance#kms_key_name}- Returns:
this
-
labels
@Stability(Stable) public FilestoreInstanceConfig.Builder labels(Map<String,String> labels)
Sets the value ofFilestoreInstanceConfig.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/filestore_instance#labels FilestoreInstance#labels}- Returns:
this
-
location
@Stability(Stable) public FilestoreInstanceConfig.Builder location(String location)
Sets the value ofFilestoreInstanceConfig.getLocation()- Parameters:
location- The name of the location of the instance. This can be a region for ENTERPRISE tier instances. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/filestore_instance#location FilestoreInstance#location}- Returns:
this
-
project
@Stability(Stable) public FilestoreInstanceConfig.Builder project(String project)
Sets the value ofFilestoreInstanceConfig.getProject()- Parameters:
project- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/filestore_instance#project FilestoreInstance#project}.- Returns:
this
-
timeouts
@Stability(Stable) public FilestoreInstanceConfig.Builder timeouts(FilestoreInstanceTimeouts timeouts)
Sets the value ofFilestoreInstanceConfig.getTimeouts()- Parameters:
timeouts- timeouts block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/filestore_instance#timeouts FilestoreInstance#timeouts}- Returns:
this
-
zone
@Stability(Stable) public FilestoreInstanceConfig.Builder zone(String zone)
Sets the value ofFilestoreInstanceConfig.getZone()- Parameters:
zone- The name of the Filestore zone of the instance. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/filestore_instance#zone FilestoreInstance#zone}- Returns:
this
-
connection
@Stability(Experimental) public FilestoreInstanceConfig.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 FilestoreInstanceConfig.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 FilestoreInstanceConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public FilestoreInstanceConfig.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 FilestoreInstanceConfig.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 FilestoreInstanceConfig.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 FilestoreInstanceConfig.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 FilestoreInstanceConfig.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 FilestoreInstanceConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public FilestoreInstanceConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<FilestoreInstanceConfig>- Returns:
- a new instance of
FilestoreInstanceConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-