Class NetappVolumeSnapshotConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.netapp_volume_snapshot.NetappVolumeSnapshotConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<NetappVolumeSnapshotConfig>
- Enclosing interface:
- NetappVolumeSnapshotConfig
@Stability(Stable) public static final class NetappVolumeSnapshotConfig.Builder extends Object implements software.amazon.jsii.Builder<NetappVolumeSnapshotConfig>
A builder forNetappVolumeSnapshotConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NetappVolumeSnapshotConfigbuild()Builds the configured instance.NetappVolumeSnapshotConfig.Builderconnection(com.hashicorp.cdktf.SSHProvisionerConnection connection)Sets the value ofTerraformMetaArguments.getConnection()NetappVolumeSnapshotConfig.Builderconnection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)Sets the value ofTerraformMetaArguments.getConnection()NetappVolumeSnapshotConfig.Buildercount(com.hashicorp.cdktf.TerraformCount count)Sets the value ofTerraformMetaArguments.getCount()NetappVolumeSnapshotConfig.Buildercount(Number count)Sets the value ofTerraformMetaArguments.getCount()NetappVolumeSnapshotConfig.BuilderdependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)Sets the value ofTerraformMetaArguments.getDependsOn()NetappVolumeSnapshotConfig.Builderdescription(String description)Sets the value ofNetappVolumeSnapshotConfig.getDescription()NetappVolumeSnapshotConfig.BuilderforEach(com.hashicorp.cdktf.ITerraformIterator forEach)Sets the value ofTerraformMetaArguments.getForEach()NetappVolumeSnapshotConfig.Builderid(String id)Sets the value ofNetappVolumeSnapshotConfig.getId()NetappVolumeSnapshotConfig.Builderlabels(Map<String,String> labels)Sets the value ofNetappVolumeSnapshotConfig.getLabels()NetappVolumeSnapshotConfig.Builderlifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)Sets the value ofTerraformMetaArguments.getLifecycle()NetappVolumeSnapshotConfig.Builderlocation(String location)Sets the value ofNetappVolumeSnapshotConfig.getLocation()NetappVolumeSnapshotConfig.Buildername(String name)Sets the value ofNetappVolumeSnapshotConfig.getName()NetappVolumeSnapshotConfig.Builderproject(String project)Sets the value ofNetappVolumeSnapshotConfig.getProject()NetappVolumeSnapshotConfig.Builderprovider(com.hashicorp.cdktf.TerraformProvider provider)Sets the value ofTerraformMetaArguments.getProvider()NetappVolumeSnapshotConfig.Builderprovisioners(List<? extends Object> provisioners)Sets the value ofTerraformMetaArguments.getProvisioners()NetappVolumeSnapshotConfig.Buildertimeouts(NetappVolumeSnapshotTimeouts timeouts)Sets the value ofNetappVolumeSnapshotConfig.getTimeouts()NetappVolumeSnapshotConfig.BuildervolumeName(String volumeName)Sets the value ofNetappVolumeSnapshotConfig.getVolumeName()
-
-
-
Method Detail
-
location
@Stability(Stable) public NetappVolumeSnapshotConfig.Builder location(String location)
Sets the value ofNetappVolumeSnapshotConfig.getLocation()- Parameters:
location- Name of the snapshot location. Snapshots are child resources of volumes and live in the same location. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/netapp_volume_snapshot#location NetappVolumeSnapshot#location}- Returns:
this
-
name
@Stability(Stable) public NetappVolumeSnapshotConfig.Builder name(String name)
Sets the value ofNetappVolumeSnapshotConfig.getName()- Parameters:
name- The name of the snapshot. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/netapp_volume_snapshot#name NetappVolumeSnapshot#name}- Returns:
this
-
volumeName
@Stability(Stable) public NetappVolumeSnapshotConfig.Builder volumeName(String volumeName)
Sets the value ofNetappVolumeSnapshotConfig.getVolumeName()- Parameters:
volumeName- The name of the volume to create the snapshot in. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/netapp_volume_snapshot#volume_name NetappVolumeSnapshot#volume_name}- Returns:
this
-
description
@Stability(Stable) public NetappVolumeSnapshotConfig.Builder description(String description)
Sets the value ofNetappVolumeSnapshotConfig.getDescription()- Parameters:
description- Description for the snapshot. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/netapp_volume_snapshot#description NetappVolumeSnapshot#description}- Returns:
this
-
id
@Stability(Stable) public NetappVolumeSnapshotConfig.Builder id(String id)
Sets the value ofNetappVolumeSnapshotConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/netapp_volume_snapshot#id NetappVolumeSnapshot#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 NetappVolumeSnapshotConfig.Builder labels(Map<String,String> labels)
Sets the value ofNetappVolumeSnapshotConfig.getLabels()- Parameters:
labels- Labels as key value pairs. Example: '{ "owner": "Bob", "department": "finance", "purpose": "testing" }'. **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/netapp_volume_snapshot#labels NetappVolumeSnapshot#labels}- Returns:
this
-
project
@Stability(Stable) public NetappVolumeSnapshotConfig.Builder project(String project)
Sets the value ofNetappVolumeSnapshotConfig.getProject()- Parameters:
project- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/netapp_volume_snapshot#project NetappVolumeSnapshot#project}.- Returns:
this
-
timeouts
@Stability(Stable) public NetappVolumeSnapshotConfig.Builder timeouts(NetappVolumeSnapshotTimeouts timeouts)
Sets the value ofNetappVolumeSnapshotConfig.getTimeouts()- Parameters:
timeouts- timeouts block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/netapp_volume_snapshot#timeouts NetappVolumeSnapshot#timeouts}- Returns:
this
-
connection
@Stability(Experimental) public NetappVolumeSnapshotConfig.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 NetappVolumeSnapshotConfig.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 NetappVolumeSnapshotConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public NetappVolumeSnapshotConfig.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 NetappVolumeSnapshotConfig.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 NetappVolumeSnapshotConfig.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 NetappVolumeSnapshotConfig.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 NetappVolumeSnapshotConfig.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 NetappVolumeSnapshotConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public NetappVolumeSnapshotConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<NetappVolumeSnapshotConfig>- Returns:
- a new instance of
NetappVolumeSnapshotConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-