Class NetappBackup.Builder

  • All Implemented Interfaces:
    software.amazon.jsii.Builder<NetappBackup>
    Enclosing class:
    NetappBackup

    @Stability(Stable)
    public static final class NetappBackup.Builder
    extends Object
    implements software.amazon.jsii.Builder<NetappBackup>
    A fluent builder for NetappBackup.
    • Method Detail

      • create

        @Stability(Stable)
        public static NetappBackup.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 NetappBackup.Builder.
      • connection

        @Stability(Experimental)
        public NetappBackup.Builder connection​(com.hashicorp.cdktf.SSHProvisionerConnection connection)
        Parameters:
        connection - This parameter is required.
        Returns:
        this
      • connection

        @Stability(Experimental)
        public NetappBackup.Builder connection​(com.hashicorp.cdktf.WinrmProvisionerConnection connection)
        Parameters:
        connection - This parameter is required.
        Returns:
        this
      • count

        @Stability(Experimental)
        public NetappBackup.Builder count​(Number count)
        Parameters:
        count - This parameter is required.
        Returns:
        this
      • count

        @Stability(Experimental)
        public NetappBackup.Builder count​(com.hashicorp.cdktf.TerraformCount count)
        Parameters:
        count - This parameter is required.
        Returns:
        this
      • dependsOn

        @Stability(Experimental)
        public NetappBackup.Builder dependsOn​(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)
        Parameters:
        dependsOn - This parameter is required.
        Returns:
        this
      • forEach

        @Stability(Experimental)
        public NetappBackup.Builder forEach​(com.hashicorp.cdktf.ITerraformIterator forEach)
        Parameters:
        forEach - This parameter is required.
        Returns:
        this
      • lifecycle

        @Stability(Experimental)
        public NetappBackup.Builder lifecycle​(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)
        Parameters:
        lifecycle - This parameter is required.
        Returns:
        this
      • provider

        @Stability(Experimental)
        public NetappBackup.Builder provider​(com.hashicorp.cdktf.TerraformProvider provider)
        Parameters:
        provider - This parameter is required.
        Returns:
        this
      • provisioners

        @Stability(Experimental)
        public NetappBackup.Builder provisioners​(List<? extends Object> provisioners)
        Parameters:
        provisioners - This parameter is required.
        Returns:
        this
      • location

        @Stability(Stable)
        public NetappBackup.Builder location​(String location)
        Location of the backup.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/netapp_backup#location NetappBackup#location}

        Parameters:
        location - Location of the backup. This parameter is required.
        Returns:
        this
      • name

        @Stability(Stable)
        public NetappBackup.Builder name​(String name)
        The resource name of the backup. Needs to be unique per location.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/netapp_backup#name NetappBackup#name}

        Parameters:
        name - The resource name of the backup. Needs to be unique per location. This parameter is required.
        Returns:
        this
      • vaultName

        @Stability(Stable)
        public NetappBackup.Builder vaultName​(String vaultName)
        Name of the backup vault to store the backup in.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/netapp_backup#vault_name NetappBackup#vault_name}

        Parameters:
        vaultName - Name of the backup vault to store the backup in. This parameter is required.
        Returns:
        this
      • description

        @Stability(Stable)
        public NetappBackup.Builder description​(String description)
        A description of the backup 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/netapp_backup#description NetappBackup#description}

        Parameters:
        description - A description of the backup with 2048 characters or less. Requests with longer descriptions will be rejected. This parameter is required.
        Returns:
        this
      • id

        @Stability(Stable)
        public NetappBackup.Builder id​(String id)
        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/netapp_backup#id NetappBackup#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/netapp_backup#id NetappBackup#id}. This parameter is required.
        Returns:
        this
      • labels

        @Stability(Stable)
        public NetappBackup.Builder labels​(Map<String,​String> 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_backup#labels NetappBackup#labels}

        Parameters:
        labels - Labels as key value pairs. Example: '{ "owner": "Bob", "department": "finance", "purpose": "testing" }'. This parameter is required.
        Returns:
        this
      • project

        @Stability(Stable)
        public NetappBackup.Builder project​(String project)
        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/netapp_backup#project NetappBackup#project}.

        Parameters:
        project - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/netapp_backup#project NetappBackup#project}. This parameter is required.
        Returns:
        this
      • sourceSnapshot

        @Stability(Stable)
        public NetappBackup.Builder sourceSnapshot​(String sourceSnapshot)
        If specified, backup will be created from the given snapshot.

        If not specified, there will be a new snapshot taken to initiate the backup creation. Format: 'projects/{{projectId}}/locations/{{location}}/volumes/{{volumename}}/snapshots/{{snapshotname}}'' Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/netapp_backup#source_snapshot NetappBackup#source_snapshot}

        Parameters:
        sourceSnapshot - If specified, backup will be created from the given snapshot. This parameter is required.
        Returns:
        this
      • sourceVolume

        @Stability(Stable)
        public NetappBackup.Builder sourceVolume​(String sourceVolume)
        ID of volumes this backup belongs to. Format: 'projects/{{projects_id}}/locations/{{location}}/volumes/{{name}}''.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/netapp_backup#source_volume NetappBackup#source_volume}

        Parameters:
        sourceVolume - ID of volumes this backup belongs to. Format: 'projects/{{projects_id}}/locations/{{location}}/volumes/{{name}}''. This parameter is required.
        Returns:
        this
      • timeouts

        @Stability(Stable)
        public NetappBackup.Builder timeouts​(NetappBackupTimeouts timeouts)
        timeouts block.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/netapp_backup#timeouts NetappBackup#timeouts}

        Parameters:
        timeouts - timeouts block. This parameter is required.
        Returns:
        this
      • build

        @Stability(Stable)
        public NetappBackup build()
        Specified by:
        build in interface software.amazon.jsii.Builder<NetappBackup>
        Returns:
        a newly built instance of NetappBackup.