Class ServiceNetworkingConnectionConfig.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • network

        @Stability(Stable)
        public ServiceNetworkingConnectionConfig.Builder network​(String network)
        Parameters:
        network - Name of VPC network connected with service producers using VPC peering. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/service_networking_connection#network ServiceNetworkingConnection#network}
        Returns:
        this
      • reservedPeeringRanges

        @Stability(Stable)
        public ServiceNetworkingConnectionConfig.Builder reservedPeeringRanges​(List<String> reservedPeeringRanges)
        Parameters:
        reservedPeeringRanges - Named IP address range(s) of PEERING type reserved for this service provider. This parameter is required. Note that invoking this method with a different range when connection is already established will not reallocate already provisioned service producer subnetworks. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/service_networking_connection#reserved_peering_ranges ServiceNetworkingConnection#reserved_peering_ranges}
        Returns:
        this
      • service

        @Stability(Stable)
        public ServiceNetworkingConnectionConfig.Builder service​(String service)
        Parameters:
        service - Provider peering service that is managing peering connectivity for a service provider organization. This parameter is required. For Google services that support this functionality it is 'servicenetworking.googleapis.com'. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/service_networking_connection#service ServiceNetworkingConnection#service}
        Returns:
        this
      • deletionPolicy

        @Stability(Stable)
        public ServiceNetworkingConnectionConfig.Builder deletionPolicy​(String deletionPolicy)
        Parameters:
        deletionPolicy - When set to ABANDON, terraform will abandon management of the resource instead of deleting it. Prevents terraform apply failures with CloudSQL. Note: The resource will still exist. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/service_networking_connection#deletion_policy ServiceNetworkingConnection#deletion_policy}
        Returns:
        this
      • id

        @Stability(Stable)
        public ServiceNetworkingConnectionConfig.Builder id​(String id)
        Parameters:
        id - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/service_networking_connection#id ServiceNetworkingConnection#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
      • updateOnCreationFail

        @Stability(Stable)
        public ServiceNetworkingConnectionConfig.Builder updateOnCreationFail​(Boolean updateOnCreationFail)
        Parameters:
        updateOnCreationFail - When set to true, enforce an update of the reserved peering ranges on the existing service networking connection in case of a new connection creation failure. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/service_networking_connection#update_on_creation_fail ServiceNetworkingConnection#update_on_creation_fail}
        Returns:
        this
      • updateOnCreationFail

        @Stability(Stable)
        public ServiceNetworkingConnectionConfig.Builder updateOnCreationFail​(com.hashicorp.cdktf.IResolvable updateOnCreationFail)
        Parameters:
        updateOnCreationFail - When set to true, enforce an update of the reserved peering ranges on the existing service networking connection in case of a new connection creation failure. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/service_networking_connection#update_on_creation_fail ServiceNetworkingConnection#update_on_creation_fail}
        Returns:
        this
      • connection

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