Class ComputeNetworkAttachment.Builder

    • Method Detail

      • connection

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

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

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

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

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

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

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

        @Stability(Stable)
        public ComputeNetworkAttachment.Builder connectionPreference​(String connectionPreference)
        The connection preference of service attachment.

        The value can be set to ACCEPT_AUTOMATIC. An ACCEPT_AUTOMATIC service attachment is one that always accepts the connection from consumer forwarding rules. Possible values: ["ACCEPT_AUTOMATIC", "ACCEPT_MANUAL", "INVALID"] Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_network_attachment#connection_preference ComputeNetworkAttachment#connection_preference}

        Parameters:
        connectionPreference - The connection preference of service attachment. This parameter is required.
        Returns:
        this
      • name

        @Stability(Stable)
        public ComputeNetworkAttachment.Builder name​(String name)
        Name of the resource.

        Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z](%5B-a-z0-9%5D*%5Ba-z0-9%5D)? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_network_attachment#name ComputeNetworkAttachment#name}

        Parameters:
        name - Name of the resource. This parameter is required.
        Returns:
        this
      • subnetworks

        @Stability(Stable)
        public ComputeNetworkAttachment.Builder subnetworks​(List<String> subnetworks)
        An array of URLs where each entry is the URL of a subnet provided by the service consumer to use for endpoints in the producers that connect to this network attachment.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_network_attachment#subnetworks ComputeNetworkAttachment#subnetworks}

        Parameters:
        subnetworks - An array of URLs where each entry is the URL of a subnet provided by the service consumer to use for endpoints in the producers that connect to this network attachment. This parameter is required.
        Returns:
        this
      • description

        @Stability(Stable)
        public ComputeNetworkAttachment.Builder description​(String description)
        An optional description of this resource. Provide this property when you create the resource.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_network_attachment#description ComputeNetworkAttachment#description}

        Parameters:
        description - An optional description of this resource. Provide this property when you create the resource. This parameter is required.
        Returns:
        this
      • producerAcceptLists

        @Stability(Stable)
        public ComputeNetworkAttachment.Builder producerAcceptLists​(List<String> producerAcceptLists)
        Projects that are allowed to connect to this network attachment.

        The project can be specified using its id or number. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_network_attachment#producer_accept_lists ComputeNetworkAttachment#producer_accept_lists}

        Parameters:
        producerAcceptLists - Projects that are allowed to connect to this network attachment. This parameter is required.
        Returns:
        this
      • producerRejectLists

        @Stability(Stable)
        public ComputeNetworkAttachment.Builder producerRejectLists​(List<String> producerRejectLists)
        Projects that are not allowed to connect to this network attachment.

        The project can be specified using its id or number. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_network_attachment#producer_reject_lists ComputeNetworkAttachment#producer_reject_lists}

        Parameters:
        producerRejectLists - Projects that are not allowed to connect to this network attachment. This parameter is required.
        Returns:
        this
      • project

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

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

        @Stability(Stable)
        public ComputeNetworkAttachment.Builder region​(String region)
        URL of the region where the network attachment resides.

        This field applies only to the region resource. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_network_attachment#region ComputeNetworkAttachment#region}

        Parameters:
        region - URL of the region where the network attachment resides. This parameter is required.
        Returns:
        this
      • timeouts

        @Stability(Stable)
        public ComputeNetworkAttachment.Builder timeouts​(ComputeNetworkAttachmentTimeouts timeouts)
        timeouts block.

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

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