Class ComputeNetworkPeeringConfig.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • name

        @Stability(Stable)
        public ComputeNetworkPeeringConfig.Builder name​(String name)
        Parameters:
        name - Name of the peering. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_network_peering#name ComputeNetworkPeering#name}
        Returns:
        this
      • network

        @Stability(Stable)
        public ComputeNetworkPeeringConfig.Builder network​(String network)
        Parameters:
        network - The primary network of the peering. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_network_peering#network ComputeNetworkPeering#network}
        Returns:
        this
      • peerNetwork

        @Stability(Stable)
        public ComputeNetworkPeeringConfig.Builder peerNetwork​(String peerNetwork)
        Parameters:
        peerNetwork - The peer network in the peering. The peer network may belong to a different project. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_network_peering#peer_network ComputeNetworkPeering#peer_network}
        Returns:
        this
      • exportCustomRoutes

        @Stability(Stable)
        public ComputeNetworkPeeringConfig.Builder exportCustomRoutes​(Boolean exportCustomRoutes)
        Parameters:
        exportCustomRoutes - Whether to export the custom routes to the peer network. Defaults to false. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_network_peering#export_custom_routes ComputeNetworkPeering#export_custom_routes}
        Returns:
        this
      • exportCustomRoutes

        @Stability(Stable)
        public ComputeNetworkPeeringConfig.Builder exportCustomRoutes​(com.hashicorp.cdktf.IResolvable exportCustomRoutes)
        Parameters:
        exportCustomRoutes - Whether to export the custom routes to the peer network. Defaults to false. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_network_peering#export_custom_routes ComputeNetworkPeering#export_custom_routes}
        Returns:
        this
      • exportSubnetRoutesWithPublicIp

        @Stability(Stable)
        public ComputeNetworkPeeringConfig.Builder exportSubnetRoutesWithPublicIp​(Boolean exportSubnetRoutesWithPublicIp)
        Parameters:
        exportSubnetRoutesWithPublicIp - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_network_peering#export_subnet_routes_with_public_ip ComputeNetworkPeering#export_subnet_routes_with_public_ip}.
        Returns:
        this
      • exportSubnetRoutesWithPublicIp

        @Stability(Stable)
        public ComputeNetworkPeeringConfig.Builder exportSubnetRoutesWithPublicIp​(com.hashicorp.cdktf.IResolvable exportSubnetRoutesWithPublicIp)
        Parameters:
        exportSubnetRoutesWithPublicIp - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_network_peering#export_subnet_routes_with_public_ip ComputeNetworkPeering#export_subnet_routes_with_public_ip}.
        Returns:
        this
      • id

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

        @Stability(Stable)
        public ComputeNetworkPeeringConfig.Builder importCustomRoutes​(Boolean importCustomRoutes)
        Parameters:
        importCustomRoutes - Whether to export the custom routes from the peer network. Defaults to false. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_network_peering#import_custom_routes ComputeNetworkPeering#import_custom_routes}
        Returns:
        this
      • importCustomRoutes

        @Stability(Stable)
        public ComputeNetworkPeeringConfig.Builder importCustomRoutes​(com.hashicorp.cdktf.IResolvable importCustomRoutes)
        Parameters:
        importCustomRoutes - Whether to export the custom routes from the peer network. Defaults to false. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_network_peering#import_custom_routes ComputeNetworkPeering#import_custom_routes}
        Returns:
        this
      • importSubnetRoutesWithPublicIp

        @Stability(Stable)
        public ComputeNetworkPeeringConfig.Builder importSubnetRoutesWithPublicIp​(Boolean importSubnetRoutesWithPublicIp)
        Parameters:
        importSubnetRoutesWithPublicIp - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_network_peering#import_subnet_routes_with_public_ip ComputeNetworkPeering#import_subnet_routes_with_public_ip}.
        Returns:
        this
      • importSubnetRoutesWithPublicIp

        @Stability(Stable)
        public ComputeNetworkPeeringConfig.Builder importSubnetRoutesWithPublicIp​(com.hashicorp.cdktf.IResolvable importSubnetRoutesWithPublicIp)
        Parameters:
        importSubnetRoutesWithPublicIp - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_network_peering#import_subnet_routes_with_public_ip ComputeNetworkPeering#import_subnet_routes_with_public_ip}.
        Returns:
        this
      • stackType

        @Stability(Stable)
        public ComputeNetworkPeeringConfig.Builder stackType​(String stackType)
        Parameters:
        stackType - Which IP version(s) of traffic and routes are allowed to be imported or exported between peer networks. The default value is IPV4_ONLY. Possible values: ["IPV4_ONLY", "IPV4_IPV6"] Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_network_peering#stack_type ComputeNetworkPeering#stack_type}
        Returns:
        this
      • connection

        @Stability(Experimental)
        public ComputeNetworkPeeringConfig.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 ComputeNetworkPeeringConfig.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 ComputeNetworkPeeringConfig.Builder count​(Number count)
        Sets the value of TerraformMetaArguments.getCount()
        Parameters:
        count - the value to be set.
        Returns:
        this
      • count

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