Class NetappVolumeReplicationConfig.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • location

        @Stability(Stable)
        public NetappVolumeReplicationConfig.Builder location​(String location)
        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)
        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)
        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)
        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)
        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)
        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
      • forceStopping

        @Stability(Stable)
        public NetappVolumeReplicationConfig.Builder forceStopping​(Boolean forceStopping)
        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)
        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)
        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)
        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
      • replicationEnabled

        @Stability(Stable)
        public NetappVolumeReplicationConfig.Builder replicationEnabled​(Boolean replicationEnabled)
        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)
        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
      • waitForMirror

        @Stability(Stable)
        public NetappVolumeReplicationConfig.Builder waitForMirror​(Boolean waitForMirror)
        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)
        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 of TerraformMetaArguments.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 of TerraformMetaArguments.getConnection()
        Parameters:
        connection - the value to be set.
        Returns:
        this
      • count

        @Stability(Experimental)
        public NetappVolumeReplicationConfig.Builder count​(com.hashicorp.cdktf.TerraformCount count)
        Sets the value of TerraformMetaArguments.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 of TerraformMetaArguments.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 of TerraformMetaArguments.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 of TerraformMetaArguments.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 of TerraformMetaArguments.getProvider()
        Parameters:
        provider - the value to be set.
        Returns:
        this
      • provisioners

        @Stability(Experimental)
        public NetappVolumeReplicationConfig.Builder provisioners​(List<? extends Object> provisioners)
        Sets the value of TerraformMetaArguments.getProvisioners()
        Parameters:
        provisioners - the value to be set.
        Returns:
        this