Class NetappVolumeReplicationConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.netapp_volume_replication.NetappVolumeReplicationConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<NetappVolumeReplicationConfig>
- Enclosing interface:
- NetappVolumeReplicationConfig
@Stability(Stable) public static final class NetappVolumeReplicationConfig.Builder extends Object implements software.amazon.jsii.Builder<NetappVolumeReplicationConfig>
A builder forNetappVolumeReplicationConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
location
@Stability(Stable) public NetappVolumeReplicationConfig.Builder location(String location)
Sets the value ofNetappVolumeReplicationConfig.getLocation()- Parameters:
location- Name of region for this resource. The resource needs to be created in the region of the destination volume. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/netapp_volume_replication#location NetappVolumeReplication#location}- Returns:
this
-
name
@Stability(Stable) public NetappVolumeReplicationConfig.Builder name(String name)
Sets the value ofNetappVolumeReplicationConfig.getName()- Parameters:
name- The name of the replication. Needs to be unique per location. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/netapp_volume_replication#name NetappVolumeReplication#name}- Returns:
this
-
replicationSchedule
@Stability(Stable) public NetappVolumeReplicationConfig.Builder replicationSchedule(String replicationSchedule)
Sets the value ofNetappVolumeReplicationConfig.getReplicationSchedule()- Parameters:
replicationSchedule- Specifies the replication interval. Possible values: ["EVERY_10_MINUTES", "HOURLY", "DAILY"]. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/netapp_volume_replication#replication_schedule NetappVolumeReplication#replication_schedule}- Returns:
this
-
volumeName
@Stability(Stable) public NetappVolumeReplicationConfig.Builder volumeName(String volumeName)
Sets the value ofNetappVolumeReplicationConfig.getVolumeName()- Parameters:
volumeName- The name of the existing source volume. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/netapp_volume_replication#volume_name NetappVolumeReplication#volume_name}- Returns:
this
-
deleteDestinationVolume
@Stability(Stable) public NetappVolumeReplicationConfig.Builder deleteDestinationVolume(Boolean deleteDestinationVolume)
Sets the value ofNetappVolumeReplicationConfig.getDeleteDestinationVolume()- Parameters:
deleteDestinationVolume- A destination volume is created as part of replication creation. The destination volume will not became under Terraform management unless you import it manually. If you delete the replication, this volume will remain. Setting this parameter to true will delete the *current* destination volume when destroying the replication. If you reversed the replication direction, this will be your former source volume! For production use, it is recommended to keep this parameter false to avoid accidental volume deletion. Handle with care. Default is false. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/netapp_volume_replication#delete_destination_volume NetappVolumeReplication#delete_destination_volume}- Returns:
this
-
deleteDestinationVolume
@Stability(Stable) public NetappVolumeReplicationConfig.Builder deleteDestinationVolume(com.hashicorp.cdktf.IResolvable deleteDestinationVolume)
Sets the value ofNetappVolumeReplicationConfig.getDeleteDestinationVolume()- Parameters:
deleteDestinationVolume- A destination volume is created as part of replication creation. The destination volume will not became under Terraform management unless you import it manually. If you delete the replication, this volume will remain. Setting this parameter to true will delete the *current* destination volume when destroying the replication. If you reversed the replication direction, this will be your former source volume! For production use, it is recommended to keep this parameter false to avoid accidental volume deletion. Handle with care. Default is false. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/netapp_volume_replication#delete_destination_volume NetappVolumeReplication#delete_destination_volume}- Returns:
this
-
description
@Stability(Stable) public NetappVolumeReplicationConfig.Builder description(String description)
Sets the value ofNetappVolumeReplicationConfig.getDescription()- Parameters:
description- An description of this resource. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/netapp_volume_replication#description NetappVolumeReplication#description}- Returns:
this
-
destinationVolumeParameters
@Stability(Stable) public NetappVolumeReplicationConfig.Builder destinationVolumeParameters(NetappVolumeReplicationDestinationVolumeParameters destinationVolumeParameters)
Sets the value ofNetappVolumeReplicationConfig.getDestinationVolumeParameters()- Parameters:
destinationVolumeParameters- destination_volume_parameters block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/netapp_volume_replication#destination_volume_parameters NetappVolumeReplication#destination_volume_parameters}- Returns:
this
-
forceStopping
@Stability(Stable) public NetappVolumeReplicationConfig.Builder forceStopping(Boolean forceStopping)
Sets the value ofNetappVolumeReplicationConfig.getForceStopping()- Parameters:
forceStopping- Only replications with mirror_state=MIRRORED can be stopped. A replication in mirror_state=TRANSFERRING currently receives an update and stopping the update might be undesirable. Set this parameter to true to stop anyway. All data transferred to the destination will be discarded and content of destination volume will remain at the state of the last successful update. Default is false. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/netapp_volume_replication#force_stopping NetappVolumeReplication#force_stopping}- Returns:
this
-
forceStopping
@Stability(Stable) public NetappVolumeReplicationConfig.Builder forceStopping(com.hashicorp.cdktf.IResolvable forceStopping)
Sets the value ofNetappVolumeReplicationConfig.getForceStopping()- Parameters:
forceStopping- Only replications with mirror_state=MIRRORED can be stopped. A replication in mirror_state=TRANSFERRING currently receives an update and stopping the update might be undesirable. Set this parameter to true to stop anyway. All data transferred to the destination will be discarded and content of destination volume will remain at the state of the last successful update. Default is false. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/netapp_volume_replication#force_stopping NetappVolumeReplication#force_stopping}- Returns:
this
-
id
@Stability(Stable) public NetappVolumeReplicationConfig.Builder id(String id)
Sets the value ofNetappVolumeReplicationConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/netapp_volume_replication#id NetappVolumeReplication#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 NetappVolumeReplicationConfig.Builder labels(Map<String,String> labels)
Sets the value ofNetappVolumeReplicationConfig.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_replication#labels NetappVolumeReplication#labels}- Returns:
this
-
project
@Stability(Stable) public NetappVolumeReplicationConfig.Builder project(String project)
Sets the value ofNetappVolumeReplicationConfig.getProject()- Parameters:
project- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/netapp_volume_replication#project NetappVolumeReplication#project}.- Returns:
this
-
replicationEnabled
@Stability(Stable) public NetappVolumeReplicationConfig.Builder replicationEnabled(Boolean replicationEnabled)
Sets the value ofNetappVolumeReplicationConfig.getReplicationEnabled()- Parameters:
replicationEnabled- Set to false to stop/break the mirror. Stopping the mirror makes the destination volume read-write and act independently from the source volume. Set to true to enable/resume the mirror. WARNING: Resuming a mirror overwrites any changes done to the destination volume with the content of the source volume. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/netapp_volume_replication#replication_enabled NetappVolumeReplication#replication_enabled}- Returns:
this
-
replicationEnabled
@Stability(Stable) public NetappVolumeReplicationConfig.Builder replicationEnabled(com.hashicorp.cdktf.IResolvable replicationEnabled)
Sets the value ofNetappVolumeReplicationConfig.getReplicationEnabled()- Parameters:
replicationEnabled- Set to false to stop/break the mirror. Stopping the mirror makes the destination volume read-write and act independently from the source volume. Set to true to enable/resume the mirror. WARNING: Resuming a mirror overwrites any changes done to the destination volume with the content of the source volume. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/netapp_volume_replication#replication_enabled NetappVolumeReplication#replication_enabled}- Returns:
this
-
timeouts
@Stability(Stable) public NetappVolumeReplicationConfig.Builder timeouts(NetappVolumeReplicationTimeouts timeouts)
Sets the value ofNetappVolumeReplicationConfig.getTimeouts()- Parameters:
timeouts- timeouts block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/netapp_volume_replication#timeouts NetappVolumeReplication#timeouts}- Returns:
this
-
waitForMirror
@Stability(Stable) public NetappVolumeReplicationConfig.Builder waitForMirror(Boolean waitForMirror)
Sets the value ofNetappVolumeReplicationConfig.getWaitForMirror()- Parameters:
waitForMirror- Replication resource state is independent of mirror_state. With enough data, it can take many hours for mirror_state to reach MIRRORED. If you want Terraform to wait for the mirror to finish on create/stop/resume operations, set this parameter to true. Default is false. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/netapp_volume_replication#wait_for_mirror NetappVolumeReplication#wait_for_mirror}- Returns:
this
-
waitForMirror
@Stability(Stable) public NetappVolumeReplicationConfig.Builder waitForMirror(com.hashicorp.cdktf.IResolvable waitForMirror)
Sets the value ofNetappVolumeReplicationConfig.getWaitForMirror()- Parameters:
waitForMirror- Replication resource state is independent of mirror_state. With enough data, it can take many hours for mirror_state to reach MIRRORED. If you want Terraform to wait for the mirror to finish on create/stop/resume operations, set this parameter to true. Default is false. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/netapp_volume_replication#wait_for_mirror NetappVolumeReplication#wait_for_mirror}- Returns:
this
-
connection
@Stability(Experimental) public NetappVolumeReplicationConfig.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 NetappVolumeReplicationConfig.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 NetappVolumeReplicationConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public NetappVolumeReplicationConfig.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 NetappVolumeReplicationConfig.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 NetappVolumeReplicationConfig.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 NetappVolumeReplicationConfig.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 NetappVolumeReplicationConfig.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 NetappVolumeReplicationConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public NetappVolumeReplicationConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<NetappVolumeReplicationConfig>- Returns:
- a new instance of
NetappVolumeReplicationConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-