Class FilestoreSnapshot.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.filestore_snapshot.FilestoreSnapshot.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<FilestoreSnapshot>
- Enclosing class:
- FilestoreSnapshot
@Stability(Stable) public static final class FilestoreSnapshot.Builder extends Object implements software.amazon.jsii.Builder<FilestoreSnapshot>
A fluent builder forFilestoreSnapshot.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description FilestoreSnapshotbuild()FilestoreSnapshot.Builderconnection(com.hashicorp.cdktf.SSHProvisionerConnection connection)FilestoreSnapshot.Builderconnection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)FilestoreSnapshot.Buildercount(com.hashicorp.cdktf.TerraformCount count)FilestoreSnapshot.Buildercount(Number count)static FilestoreSnapshot.Buildercreate(software.constructs.Construct scope, String id)FilestoreSnapshot.BuilderdependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)FilestoreSnapshot.Builderdescription(String description)A description of the snapshot with 2048 characters or less.FilestoreSnapshot.BuilderforEach(com.hashicorp.cdktf.ITerraformIterator forEach)FilestoreSnapshot.Builderid(String id)Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/filestore_snapshot#id FilestoreSnapshot#id}.FilestoreSnapshot.Builderinstance(String instance)The resource name of the filestore instance.FilestoreSnapshot.Builderlabels(Map<String,String> labels)Resource labels to represent user-provided metadata.FilestoreSnapshot.Builderlifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)FilestoreSnapshot.Builderlocation(String location)The name of the location of the instance.FilestoreSnapshot.Buildername(String name)The resource name of the snapshot.FilestoreSnapshot.Builderproject(String project)Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/filestore_snapshot#project FilestoreSnapshot#project}.FilestoreSnapshot.Builderprovider(com.hashicorp.cdktf.TerraformProvider provider)FilestoreSnapshot.Builderprovisioners(List<? extends Object> provisioners)FilestoreSnapshot.Buildertimeouts(FilestoreSnapshotTimeouts timeouts)timeouts block.
-
-
-
Method Detail
-
create
@Stability(Stable) public static FilestoreSnapshot.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
FilestoreSnapshot.Builder.
-
connection
@Stability(Experimental) public FilestoreSnapshot.Builder connection(com.hashicorp.cdktf.SSHProvisionerConnection connection)
- Parameters:
connection- This parameter is required.- Returns:
this
-
connection
@Stability(Experimental) public FilestoreSnapshot.Builder connection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)
- Parameters:
connection- This parameter is required.- Returns:
this
-
count
@Stability(Experimental) public FilestoreSnapshot.Builder count(Number count)
- Parameters:
count- This parameter is required.- Returns:
this
-
count
@Stability(Experimental) public FilestoreSnapshot.Builder count(com.hashicorp.cdktf.TerraformCount count)
- Parameters:
count- This parameter is required.- Returns:
this
-
dependsOn
@Stability(Experimental) public FilestoreSnapshot.Builder dependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)
- Parameters:
dependsOn- This parameter is required.- Returns:
this
-
forEach
@Stability(Experimental) public FilestoreSnapshot.Builder forEach(com.hashicorp.cdktf.ITerraformIterator forEach)
- Parameters:
forEach- This parameter is required.- Returns:
this
-
lifecycle
@Stability(Experimental) public FilestoreSnapshot.Builder lifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)
- Parameters:
lifecycle- This parameter is required.- Returns:
this
-
provider
@Stability(Experimental) public FilestoreSnapshot.Builder provider(com.hashicorp.cdktf.TerraformProvider provider)
- Parameters:
provider- This parameter is required.- Returns:
this
-
provisioners
@Stability(Experimental) public FilestoreSnapshot.Builder provisioners(List<? extends Object> provisioners)
- Parameters:
provisioners- This parameter is required.- Returns:
this
-
instance
@Stability(Stable) public FilestoreSnapshot.Builder instance(String instance)
The resource name of the filestore instance.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/filestore_snapshot#instance FilestoreSnapshot#instance}
- Parameters:
instance- The resource name of the filestore instance. This parameter is required.- Returns:
this
-
location
@Stability(Stable) public FilestoreSnapshot.Builder location(String 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_snapshot#location FilestoreSnapshot#location}
- Parameters:
location- The name of the location of the instance. This can be a region for ENTERPRISE tier instances. This parameter is required.- Returns:
this
-
name
@Stability(Stable) public FilestoreSnapshot.Builder name(String name)
The resource name of the snapshot. The name must be unique within the specified instance.The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression '[a-z](%5B-a-z0-9%5D*%5Ba-z0-9%5D)?' which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/filestore_snapshot#name FilestoreSnapshot#name}
- Parameters:
name- The resource name of the snapshot. The name must be unique within the specified instance. This parameter is required.- Returns:
this
-
description
@Stability(Stable) public FilestoreSnapshot.Builder description(String description)
A description of the snapshot with 2048 characters or less. Requests with longer descriptions will be rejected.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/filestore_snapshot#description FilestoreSnapshot#description}
- Parameters:
description- A description of the snapshot with 2048 characters or less. Requests with longer descriptions will be rejected. This parameter is required.- Returns:
this
-
id
@Stability(Stable) public FilestoreSnapshot.Builder id(String id)
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/filestore_snapshot#id FilestoreSnapshot#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/filestore_snapshot#id FilestoreSnapshot#id}. This parameter is required.- Returns:
this
-
labels
@Stability(Stable) public FilestoreSnapshot.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/filestore_snapshot#labels FilestoreSnapshot#labels}
- Parameters:
labels- Resource labels to represent user-provided metadata. This parameter is required.- Returns:
this
-
project
@Stability(Stable) public FilestoreSnapshot.Builder project(String project)
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/filestore_snapshot#project FilestoreSnapshot#project}.- Parameters:
project- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/filestore_snapshot#project FilestoreSnapshot#project}. This parameter is required.- Returns:
this
-
timeouts
@Stability(Stable) public FilestoreSnapshot.Builder timeouts(FilestoreSnapshotTimeouts timeouts)
timeouts block.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/filestore_snapshot#timeouts FilestoreSnapshot#timeouts}
- Parameters:
timeouts- timeouts block. This parameter is required.- Returns:
this
-
build
@Stability(Stable) public FilestoreSnapshot build()
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<FilestoreSnapshot>- Returns:
- a newly built instance of
FilestoreSnapshot.
-
-