Class ForwardingRuleCreationOptions.Builder
- java.lang.Object
-
- org.jclouds.googlecomputeengine.options.ForwardingRuleCreationOptions.Builder
-
- Enclosing class:
- ForwardingRuleCreationOptions
public static class ForwardingRuleCreationOptions.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ForwardingRuleCreationOptions
build()
ForwardingRuleCreationOptions.Builder
description(String description)
An optional textual description of the TargetPool.ForwardingRuleCreationOptions.Builder
ipAddress(String ipAddress)
The external IP address that this forwarding rule is serving on behalf ofForwardingRuleCreationOptions.Builder
ipProtocol(ForwardingRule.IPProtocol ipProtocol)
The IP protocol to which this rule appliesForwardingRuleCreationOptions.Builder
portRange(String portRange)
If IPProtocol is TCP or UDP, packets addressed to ports in the specified range will be forwarded to backend.ForwardingRuleCreationOptions.Builder
target(URI target)
The URL of the target resource to receive the matched traffic.
-
-
-
Method Detail
-
description
public ForwardingRuleCreationOptions.Builder description(String description)
An optional textual description of the TargetPool.- Returns:
- description, provided by the client.
-
ipAddress
public ForwardingRuleCreationOptions.Builder ipAddress(String ipAddress)
The external IP address that this forwarding rule is serving on behalf of- Returns:
- ipAddress
-
ipProtocol
public ForwardingRuleCreationOptions.Builder ipProtocol(ForwardingRule.IPProtocol ipProtocol)
The IP protocol to which this rule applies- Returns:
- ipProtocol
-
portRange
public ForwardingRuleCreationOptions.Builder portRange(String portRange)
If IPProtocol is TCP or UDP, packets addressed to ports in the specified range will be forwarded to backend. By default, this is empty and all ports are allowed.- Returns:
- portRange
-
target
public ForwardingRuleCreationOptions.Builder target(URI target)
The URL of the target resource to receive the matched traffic. The target resource must live in the same region as this forwarding rule.- Returns:
- target
-
build
public ForwardingRuleCreationOptions build()
-
-