public final class ForwardingRule
extends com.google.api.client.json.GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.Flags| Constructor and Description |
|---|
ForwardingRule() |
| Modifier and Type | Method and Description |
|---|---|
ForwardingRule |
clone() |
java.lang.String |
getCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
|
java.lang.String |
getDescription()
An optional description of this resource.
|
java.math.BigInteger |
getId()
[Output Only] The unique identifier for the resource.
|
java.lang.String |
getIPAddress()
Value of the reserved IP address that this forwarding rule is serving on behalf of.
|
java.lang.String |
getIPProtocol()
The IP protocol to which this rule applies.
|
java.lang.String |
getKind()
[Output Only] Type of the resource.
|
java.lang.String |
getName()
Name of the resource; provided by the client when the resource is created.
|
java.lang.String |
getPortRange()
Applicable only when IPProtocol is TCP, UDP, or SCTP, only packets addressed to ports in the
specified range will be forwarded to target.
|
java.lang.String |
getRegion()
[Output Only] URL of the region where the regional forwarding rule resides.
|
java.lang.String |
getSelfLink()
[Output Only] Server-defined URL for the resource.
|
java.lang.String |
getTarget()
The URL of the target resource to receive the matched traffic.
|
ForwardingRule |
set(java.lang.String fieldName,
java.lang.Object value) |
ForwardingRule |
setCreationTimestamp(java.lang.String creationTimestamp)
[Output Only] Creation timestamp in RFC3339 text format.
|
ForwardingRule |
setDescription(java.lang.String description)
An optional description of this resource.
|
ForwardingRule |
setId(java.math.BigInteger id)
[Output Only] The unique identifier for the resource.
|
ForwardingRule |
setIPAddress(java.lang.String iPAddress)
Value of the reserved IP address that this forwarding rule is serving on behalf of.
|
ForwardingRule |
setIPProtocol(java.lang.String iPProtocol)
The IP protocol to which this rule applies.
|
ForwardingRule |
setKind(java.lang.String kind)
[Output Only] Type of the resource.
|
ForwardingRule |
setName(java.lang.String name)
Name of the resource; provided by the client when the resource is created.
|
ForwardingRule |
setPortRange(java.lang.String portRange)
Applicable only when IPProtocol is TCP, UDP, or SCTP, only packets addressed to ports in the
specified range will be forwarded to target.
|
ForwardingRule |
setRegion(java.lang.String region)
[Output Only] URL of the region where the regional forwarding rule resides.
|
ForwardingRule |
setSelfLink(java.lang.String selfLink)
[Output Only] Server-defined URL for the resource.
|
ForwardingRule |
setTarget(java.lang.String target)
The URL of the target resource to receive the matched traffic.
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeyspublic java.lang.String getIPAddress()
null for nonepublic ForwardingRule setIPAddress(java.lang.String iPAddress)
iPAddress - iPAddress or null for nonepublic java.lang.String getIPProtocol()
null for nonepublic ForwardingRule setIPProtocol(java.lang.String iPProtocol)
iPProtocol - iPProtocol or null for nonepublic java.lang.String getCreationTimestamp()
null for nonepublic ForwardingRule setCreationTimestamp(java.lang.String creationTimestamp)
creationTimestamp - creationTimestamp or null for nonepublic java.lang.String getDescription()
null for nonepublic ForwardingRule setDescription(java.lang.String description)
description - description or null for nonepublic java.math.BigInteger getId()
null for nonepublic ForwardingRule setId(java.math.BigInteger id)
id - id or null for nonepublic java.lang.String getKind()
null for nonepublic ForwardingRule setKind(java.lang.String kind)
kind - kind or null for nonepublic java.lang.String getName()
null for nonepublic ForwardingRule setName(java.lang.String name)
name - name or null for nonepublic java.lang.String getPortRange()
null for nonepublic ForwardingRule setPortRange(java.lang.String portRange)
portRange - portRange or null for nonepublic java.lang.String getRegion()
null for nonepublic ForwardingRule setRegion(java.lang.String region)
region - region or null for nonepublic java.lang.String getSelfLink()
null for nonepublic ForwardingRule setSelfLink(java.lang.String selfLink)
selfLink - selfLink or null for nonepublic java.lang.String getTarget()
null for nonepublic ForwardingRule setTarget(java.lang.String target)
target - target or null for nonepublic ForwardingRule set(java.lang.String fieldName, java.lang.Object value)
set in class com.google.api.client.json.GenericJsonpublic ForwardingRule clone()
clone in class com.google.api.client.json.GenericJson