Class ComputeNetworkAttachmentConfig.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • connectionPreference

        @Stability(Stable)
        public ComputeNetworkAttachmentConfig.Builder connectionPreference​(String connectionPreference)
        Parameters:
        connectionPreference - The connection preference of service attachment. This parameter is required. 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}
        Returns:
        this
      • name

        @Stability(Stable)
        public ComputeNetworkAttachmentConfig.Builder name​(String name)
        Parameters:
        name - Name of the resource. This parameter is required. 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}
        Returns:
        this
      • subnetworks

        @Stability(Stable)
        public ComputeNetworkAttachmentConfig.Builder subnetworks​(List<String> 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. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_network_attachment#subnetworks ComputeNetworkAttachment#subnetworks}
        Returns:
        this
      • description

        @Stability(Stable)
        public ComputeNetworkAttachmentConfig.Builder description​(String description)
        Parameters:
        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}
        Returns:
        this
      • producerAcceptLists

        @Stability(Stable)
        public ComputeNetworkAttachmentConfig.Builder producerAcceptLists​(List<String> producerAcceptLists)
        Parameters:
        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}
        Returns:
        this
      • producerRejectLists

        @Stability(Stable)
        public ComputeNetworkAttachmentConfig.Builder producerRejectLists​(List<String> producerRejectLists)
        Parameters:
        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}
        Returns:
        this
      • region

        @Stability(Stable)
        public ComputeNetworkAttachmentConfig.Builder region​(String region)
        Parameters:
        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}
        Returns:
        this
      • connection

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