Class ComputeDiskResourcePolicyAttachment.Builder

    • Method Detail

      • connection

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

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

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

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

        @Stability(Stable)
        public ComputeDiskResourcePolicyAttachment.Builder disk​(String disk)
        The name of the disk in which the resource policies are attached to.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_disk_resource_policy_attachment#disk ComputeDiskResourcePolicyAttachment#disk}

        Parameters:
        disk - The name of the disk in which the resource policies are attached to. This parameter is required.
        Returns:
        this
      • name

        @Stability(Stable)
        public ComputeDiskResourcePolicyAttachment.Builder name​(String name)
        The resource policy to be attached to the disk for scheduling snapshot creation. Do not specify the self link.

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

        Parameters:
        name - The resource policy to be attached to the disk for scheduling snapshot creation. Do not specify the self link. This parameter is required.
        Returns:
        this
      • id

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

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

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

        @Stability(Stable)
        public ComputeDiskResourcePolicyAttachment.Builder timeouts​(ComputeDiskResourcePolicyAttachmentTimeouts timeouts)
        timeouts block.

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

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

        @Stability(Stable)
        public ComputeDiskResourcePolicyAttachment.Builder zone​(String zone)
        A reference to the zone where the disk resides.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_disk_resource_policy_attachment#zone ComputeDiskResourcePolicyAttachment#zone}

        Parameters:
        zone - A reference to the zone where the disk resides. This parameter is required.
        Returns:
        this