Class ComputeRouteConfig.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • destRange

        @Stability(Stable)
        public ComputeRouteConfig.Builder destRange​(String destRange)
        Parameters:
        destRange - The destination range of outgoing packets that this route applies to. Only IPv4 is supported. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_route#dest_range ComputeRoute#dest_range}
        Returns:
        this
      • name

        @Stability(Stable)
        public ComputeRouteConfig.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_route#name ComputeRoute#name}
        Returns:
        this
      • network

        @Stability(Stable)
        public ComputeRouteConfig.Builder network​(String network)
        Parameters:
        network - The network that this route applies to. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_route#network ComputeRoute#network}
        Returns:
        this
      • description

        @Stability(Stable)
        public ComputeRouteConfig.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_route#description ComputeRoute#description}
        Returns:
        this
      • id

        @Stability(Stable)
        public ComputeRouteConfig.Builder id​(String id)
        Sets the value of ComputeRouteConfig.getId()
        Parameters:
        id - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_route#id ComputeRoute#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
      • nextHopGateway

        @Stability(Stable)
        public ComputeRouteConfig.Builder nextHopGateway​(String nextHopGateway)
        Parameters:
        nextHopGateway - URL to a gateway that should handle matching packets. Currently, you can only specify the internet gateway, using a full or partial valid URL: * 'https://www.googleapis.com/compute/v1/projects/project/global/gateways/default-internet-gateway' * 'projects/project/global/gateways/default-internet-gateway' * 'global/gateways/default-internet-gateway' * The string 'default-internet-gateway'. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_route#next_hop_gateway ComputeRoute#next_hop_gateway}
        Returns:
        this
      • nextHopIlb

        @Stability(Stable)
        public ComputeRouteConfig.Builder nextHopIlb​(String nextHopIlb)
        Parameters:
        nextHopIlb - The IP address or URL to a forwarding rule of type loadBalancingScheme=INTERNAL that should handle matching packets. With the GA provider you can only specify the forwarding rule as a partial or full URL. For example, the following are all valid values: * 10.128.0.56 * https://www.googleapis.com/compute/v1/projects/project/regions/region/forwardingRules/forwardingRule * regions/region/forwardingRules/forwardingRule When the beta provider, you can also specify the IP address of a forwarding rule from the same VPC or any peered VPC. Note that this can only be used when the destinationRange is a public (non-RFC 1918) IP CIDR range. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_route#next_hop_ilb ComputeRoute#next_hop_ilb}
        Returns:
        this
      • nextHopInstance

        @Stability(Stable)
        public ComputeRouteConfig.Builder nextHopInstance​(String nextHopInstance)
        Parameters:
        nextHopInstance - URL to an instance that should handle matching packets. You can specify this as a full or partial URL. For example: * 'https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/instance' * 'projects/project/zones/zone/instances/instance' * 'zones/zone/instances/instance' * Just the instance name, with the zone in 'next_hop_instance_zone'. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_route#next_hop_instance ComputeRoute#next_hop_instance}
        Returns:
        this
      • nextHopInstanceZone

        @Stability(Stable)
        public ComputeRouteConfig.Builder nextHopInstanceZone​(String nextHopInstanceZone)
        Parameters:
        nextHopInstanceZone - The zone of the instance specified in next_hop_instance. Omit if next_hop_instance is specified as a URL. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_route#next_hop_instance_zone ComputeRoute#next_hop_instance_zone}
        Returns:
        this
      • nextHopIp

        @Stability(Stable)
        public ComputeRouteConfig.Builder nextHopIp​(String nextHopIp)
        Parameters:
        nextHopIp - Network IP address of an instance that should handle matching packets. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_route#next_hop_ip ComputeRoute#next_hop_ip}
        Returns:
        this
      • nextHopVpnTunnel

        @Stability(Stable)
        public ComputeRouteConfig.Builder nextHopVpnTunnel​(String nextHopVpnTunnel)
        Parameters:
        nextHopVpnTunnel - URL to a VpnTunnel that should handle matching packets. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_route#next_hop_vpn_tunnel ComputeRoute#next_hop_vpn_tunnel}
        Returns:
        this
      • priority

        @Stability(Stable)
        public ComputeRouteConfig.Builder priority​(Number priority)
        Parameters:
        priority - The priority of this route. Priority is used to break ties in cases where there is more than one matching route of equal prefix length. In the case of two routes with equal prefix length, the one with the lowest-numbered priority value wins. Default value is 1000. Valid range is 0 through 65535. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_route#priority ComputeRoute#priority}
        Returns:
        this
      • project

        @Stability(Stable)
        public ComputeRouteConfig.Builder project​(String project)
        Parameters:
        project - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_route#project ComputeRoute#project}.
        Returns:
        this
      • tags

        @Stability(Stable)
        public ComputeRouteConfig.Builder tags​(List<String> tags)
        Parameters:
        tags - A list of instance tags to which this route applies. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_route#tags ComputeRoute#tags}
        Returns:
        this
      • connection

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

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