Package com.pulumi.gcp.compute.inputs
Class RouteState.Builder
- java.lang.Object
-
- com.pulumi.gcp.compute.inputs.RouteState.Builder
-
- Enclosing class:
- RouteState
public static final class RouteState.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
Builder(RouteState defaults)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RouteState
build()
RouteState.Builder
description(com.pulumi.core.Output<java.lang.String> description)
RouteState.Builder
description(java.lang.String description)
RouteState.Builder
destRange(com.pulumi.core.Output<java.lang.String> destRange)
RouteState.Builder
destRange(java.lang.String destRange)
RouteState.Builder
name(com.pulumi.core.Output<java.lang.String> name)
RouteState.Builder
name(java.lang.String name)
RouteState.Builder
network(com.pulumi.core.Output<java.lang.String> network)
RouteState.Builder
network(java.lang.String network)
RouteState.Builder
nextHopGateway(com.pulumi.core.Output<java.lang.String> nextHopGateway)
RouteState.Builder
nextHopGateway(java.lang.String nextHopGateway)
RouteState.Builder
nextHopIlb(com.pulumi.core.Output<java.lang.String> nextHopIlb)
RouteState.Builder
nextHopIlb(java.lang.String nextHopIlb)
RouteState.Builder
nextHopInstance(com.pulumi.core.Output<java.lang.String> nextHopInstance)
RouteState.Builder
nextHopInstance(java.lang.String nextHopInstance)
RouteState.Builder
nextHopInstanceZone(com.pulumi.core.Output<java.lang.String> nextHopInstanceZone)
RouteState.Builder
nextHopInstanceZone(java.lang.String nextHopInstanceZone)
RouteState.Builder
nextHopIp(com.pulumi.core.Output<java.lang.String> nextHopIp)
RouteState.Builder
nextHopIp(java.lang.String nextHopIp)
RouteState.Builder
nextHopNetwork(com.pulumi.core.Output<java.lang.String> nextHopNetwork)
RouteState.Builder
nextHopNetwork(java.lang.String nextHopNetwork)
RouteState.Builder
nextHopVpnTunnel(com.pulumi.core.Output<java.lang.String> nextHopVpnTunnel)
RouteState.Builder
nextHopVpnTunnel(java.lang.String nextHopVpnTunnel)
RouteState.Builder
priority(com.pulumi.core.Output<java.lang.Integer> priority)
RouteState.Builder
priority(java.lang.Integer priority)
RouteState.Builder
project(com.pulumi.core.Output<java.lang.String> project)
RouteState.Builder
project(java.lang.String project)
RouteState.Builder
selfLink(com.pulumi.core.Output<java.lang.String> selfLink)
RouteState.Builder
selfLink(java.lang.String selfLink)
RouteState.Builder
tags(com.pulumi.core.Output<java.util.List<java.lang.String>> tags)
RouteState.Builder
tags(java.lang.String... tags)
RouteState.Builder
tags(java.util.List<java.lang.String> tags)
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(RouteState defaults)
-
-
Method Detail
-
description
public RouteState.Builder description(@Nullable com.pulumi.core.Output<java.lang.String> description)
- Parameters:
description
- An optional description of this resource. Provide this property when you create the resource.- Returns:
- builder
-
description
public RouteState.Builder description(java.lang.String description)
- Parameters:
description
- An optional description of this resource. Provide this property when you create the resource.- Returns:
- builder
-
destRange
public RouteState.Builder destRange(@Nullable com.pulumi.core.Output<java.lang.String> destRange)
- Parameters:
destRange
- The destination range of outgoing packets that this route applies to. Only IPv4 is supported.- Returns:
- builder
-
destRange
public RouteState.Builder destRange(java.lang.String destRange)
- Parameters:
destRange
- The destination range of outgoing packets that this route applies to. Only IPv4 is supported.- Returns:
- builder
-
name
public RouteState.Builder name(@Nullable com.pulumi.core.Output<java.lang.String> name)
- Parameters:
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?` 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.- Returns:
- builder
-
name
public RouteState.Builder name(java.lang.String name)
- Parameters:
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?` 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.- Returns:
- builder
-
network
public RouteState.Builder network(@Nullable com.pulumi.core.Output<java.lang.String> network)
- Parameters:
network
- The network that this route applies to. ***- Returns:
- builder
-
network
public RouteState.Builder network(java.lang.String network)
- Parameters:
network
- The network that this route applies to. ***- Returns:
- builder
-
nextHopGateway
public RouteState.Builder nextHopGateway(@Nullable com.pulumi.core.Output<java.lang.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`.- Returns:
- builder
-
nextHopGateway
public RouteState.Builder nextHopGateway(java.lang.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`.- Returns:
- builder
-
nextHopIlb
public RouteState.Builder nextHopIlb(@Nullable com.pulumi.core.Output<java.lang.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.- Returns:
- builder
-
nextHopIlb
public RouteState.Builder nextHopIlb(java.lang.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.- Returns:
- builder
-
nextHopInstance
public RouteState.Builder nextHopInstance(@Nullable com.pulumi.core.Output<java.lang.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`.- Returns:
- builder
-
nextHopInstance
public RouteState.Builder nextHopInstance(java.lang.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`.- Returns:
- builder
-
nextHopInstanceZone
public RouteState.Builder nextHopInstanceZone(@Nullable com.pulumi.core.Output<java.lang.String> nextHopInstanceZone)
- Parameters:
nextHopInstanceZone
- (Optional when `next_hop_instance` is specified) The zone of the instance specified in `next_hop_instance`. Omit if `next_hop_instance` is specified as a URL.- Returns:
- builder
-
nextHopInstanceZone
public RouteState.Builder nextHopInstanceZone(java.lang.String nextHopInstanceZone)
- Parameters:
nextHopInstanceZone
- (Optional when `next_hop_instance` is specified) The zone of the instance specified in `next_hop_instance`. Omit if `next_hop_instance` is specified as a URL.- Returns:
- builder
-
nextHopIp
public RouteState.Builder nextHopIp(@Nullable com.pulumi.core.Output<java.lang.String> nextHopIp)
- Parameters:
nextHopIp
- Network IP address of an instance that should handle matching packets.- Returns:
- builder
-
nextHopIp
public RouteState.Builder nextHopIp(java.lang.String nextHopIp)
- Parameters:
nextHopIp
- Network IP address of an instance that should handle matching packets.- Returns:
- builder
-
nextHopNetwork
public RouteState.Builder nextHopNetwork(@Nullable com.pulumi.core.Output<java.lang.String> nextHopNetwork)
- Parameters:
nextHopNetwork
- URL to a Network that should handle matching packets.- Returns:
- builder
-
nextHopNetwork
public RouteState.Builder nextHopNetwork(java.lang.String nextHopNetwork)
- Parameters:
nextHopNetwork
- URL to a Network that should handle matching packets.- Returns:
- builder
-
nextHopVpnTunnel
public RouteState.Builder nextHopVpnTunnel(@Nullable com.pulumi.core.Output<java.lang.String> nextHopVpnTunnel)
- Parameters:
nextHopVpnTunnel
- URL to a VpnTunnel that should handle matching packets.- Returns:
- builder
-
nextHopVpnTunnel
public RouteState.Builder nextHopVpnTunnel(java.lang.String nextHopVpnTunnel)
- Parameters:
nextHopVpnTunnel
- URL to a VpnTunnel that should handle matching packets.- Returns:
- builder
-
priority
public RouteState.Builder priority(@Nullable com.pulumi.core.Output<java.lang.Integer> 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.- Returns:
- builder
-
priority
public RouteState.Builder priority(java.lang.Integer 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.- Returns:
- builder
-
project
public RouteState.Builder project(@Nullable com.pulumi.core.Output<java.lang.String> project)
- Parameters:
project
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.- Returns:
- builder
-
project
public RouteState.Builder project(java.lang.String project)
- Parameters:
project
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.- Returns:
- builder
-
selfLink
public RouteState.Builder selfLink(@Nullable com.pulumi.core.Output<java.lang.String> selfLink)
- Parameters:
selfLink
- The URI of the created resource.- Returns:
- builder
-
selfLink
public RouteState.Builder selfLink(java.lang.String selfLink)
- Parameters:
selfLink
- The URI of the created resource.- Returns:
- builder
-
tags
public RouteState.Builder tags(@Nullable com.pulumi.core.Output<java.util.List<java.lang.String>> tags)
- Parameters:
tags
- A list of instance tags to which this route applies.- Returns:
- builder
-
tags
public RouteState.Builder tags(java.util.List<java.lang.String> tags)
- Parameters:
tags
- A list of instance tags to which this route applies.- Returns:
- builder
-
tags
public RouteState.Builder tags(java.lang.String... tags)
- Parameters:
tags
- A list of instance tags to which this route applies.- Returns:
- builder
-
build
public RouteState build()
-
-