public final class ForwardingRule extends 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
GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
ForwardingRule() |
Modifier and Type | Method and Description |
---|---|
ForwardingRule |
clone() |
Boolean |
getAllPorts()
This field is used along with the backend_service field for internal load balancing or with the
target field for internal TargetInstance.
|
String |
getBackendService()
This field is only used for INTERNAL load balancing.
|
String |
getCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
|
String |
getDescription()
An optional description of this resource.
|
BigInteger |
getId()
[Output Only] The unique identifier for the resource.
|
String |
getIPAddress()
IP address that this forwarding rule serves.
|
String |
getIPProtocol()
The IP protocol to which this rule applies.
|
String |
getIpVersion()
The IP Version that will be used by this forwarding rule.
|
String |
getKind()
[Output Only] Type of the resource.
|
String |
getLoadBalancingScheme()
This signifies what the ForwardingRule will be used for and can only take the following values:
INTERNAL, INTERNAL_SELF_MANAGED, EXTERNAL.
|
String |
getName()
Name of the resource; provided by the client when the resource is created.
|
String |
getNetwork()
This field is not used for external load balancing.
|
String |
getNetworkTier()
This signifies the networking tier used for configuring this load balancer and can only take
the following values: PREMIUM , STANDARD.
|
String |
getPortRange()
This field is deprecated.
|
List<String> |
getPorts()
List of comma-separated ports.
|
String |
getRegion()
[Output Only] URL of the region where the regional forwarding rule resides.
|
String |
getSelfLink()
[Output Only] Server-defined URL for the resource.
|
String |
getServiceLabel()
An optional prefix to the service name for this Forwarding Rule.
|
String |
getServiceName()
[Output Only] The internal fully qualified service name for this Forwarding Rule.
|
String |
getSubnetwork()
This field is only used for INTERNAL load balancing.
|
String |
getTarget()
The URL of the target resource to receive the matched traffic.
|
ForwardingRule |
set(String fieldName,
Object value) |
ForwardingRule |
setAllPorts(Boolean allPorts)
This field is used along with the backend_service field for internal load balancing or with the
target field for internal TargetInstance.
|
ForwardingRule |
setBackendService(String backendService)
This field is only used for INTERNAL load balancing.
|
ForwardingRule |
setCreationTimestamp(String creationTimestamp)
[Output Only] Creation timestamp in RFC3339 text format.
|
ForwardingRule |
setDescription(String description)
An optional description of this resource.
|
ForwardingRule |
setId(BigInteger id)
[Output Only] The unique identifier for the resource.
|
ForwardingRule |
setIPAddress(String iPAddress)
IP address that this forwarding rule serves.
|
ForwardingRule |
setIPProtocol(String iPProtocol)
The IP protocol to which this rule applies.
|
ForwardingRule |
setIpVersion(String ipVersion)
The IP Version that will be used by this forwarding rule.
|
ForwardingRule |
setKind(String kind)
[Output Only] Type of the resource.
|
ForwardingRule |
setLoadBalancingScheme(String loadBalancingScheme)
This signifies what the ForwardingRule will be used for and can only take the following values:
INTERNAL, INTERNAL_SELF_MANAGED, EXTERNAL.
|
ForwardingRule |
setName(String name)
Name of the resource; provided by the client when the resource is created.
|
ForwardingRule |
setNetwork(String network)
This field is not used for external load balancing.
|
ForwardingRule |
setNetworkTier(String networkTier)
This signifies the networking tier used for configuring this load balancer and can only take
the following values: PREMIUM , STANDARD.
|
ForwardingRule |
setPortRange(String portRange)
This field is deprecated.
|
ForwardingRule |
setPorts(List<String> ports)
List of comma-separated ports.
|
ForwardingRule |
setRegion(String region)
[Output Only] URL of the region where the regional forwarding rule resides.
|
ForwardingRule |
setSelfLink(String selfLink)
[Output Only] Server-defined URL for the resource.
|
ForwardingRule |
setServiceLabel(String serviceLabel)
An optional prefix to the service name for this Forwarding Rule.
|
ForwardingRule |
setServiceName(String serviceName)
[Output Only] The internal fully qualified service name for this Forwarding Rule.
|
ForwardingRule |
setSubnetwork(String subnetwork)
This field is only used for INTERNAL load balancing.
|
ForwardingRule |
setTarget(String target)
The URL of the target resource to receive the matched traffic.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public String getIPAddress()
null
for nonepublic ForwardingRule setIPAddress(String iPAddress)
iPAddress
- iPAddress or null
for nonepublic String getIPProtocol()
null
for nonepublic ForwardingRule setIPProtocol(String iPProtocol)
iPProtocol
- iPProtocol or null
for nonepublic Boolean getAllPorts()
null
for nonepublic ForwardingRule setAllPorts(Boolean allPorts)
allPorts
- allPorts or null
for nonepublic String getBackendService()
null
for nonepublic ForwardingRule setBackendService(String backendService)
backendService
- backendService or null
for nonepublic String getCreationTimestamp()
null
for nonepublic ForwardingRule setCreationTimestamp(String creationTimestamp)
creationTimestamp
- creationTimestamp or null
for nonepublic String getDescription()
null
for nonepublic ForwardingRule setDescription(String description)
description
- description or null
for nonepublic BigInteger getId()
null
for nonepublic ForwardingRule setId(BigInteger id)
id
- id or null
for nonepublic String getIpVersion()
null
for nonepublic ForwardingRule setIpVersion(String ipVersion)
ipVersion
- ipVersion or null
for nonepublic String getKind()
null
for nonepublic ForwardingRule setKind(String kind)
kind
- kind or null
for nonepublic String getLoadBalancingScheme()
null
for nonepublic ForwardingRule setLoadBalancingScheme(String loadBalancingScheme)
loadBalancingScheme
- loadBalancingScheme or null
for nonepublic String getName()
null
for nonepublic ForwardingRule setName(String name)
name
- name or null
for nonepublic String getNetwork()
null
for nonepublic ForwardingRule setNetwork(String network)
network
- network or null
for nonepublic String getNetworkTier()
null
for nonepublic ForwardingRule setNetworkTier(String networkTier)
networkTier
- networkTier or null
for nonepublic String getPortRange()
null
for nonepublic ForwardingRule setPortRange(String portRange)
portRange
- portRange or null
for nonepublic List<String> getPorts()
null
for nonepublic ForwardingRule setPorts(List<String> ports)
ports
- ports or null
for nonepublic String getRegion()
null
for nonepublic ForwardingRule setRegion(String region)
region
- region or null
for nonepublic String getSelfLink()
null
for nonepublic ForwardingRule setSelfLink(String selfLink)
selfLink
- selfLink or null
for nonepublic String getServiceLabel()
null
for nonepublic ForwardingRule setServiceLabel(String serviceLabel)
serviceLabel
- serviceLabel or null
for nonepublic String getServiceName()
null
for nonepublic ForwardingRule setServiceName(String serviceName)
serviceName
- serviceName or null
for nonepublic String getSubnetwork()
null
for nonepublic ForwardingRule setSubnetwork(String subnetwork)
subnetwork
- subnetwork or null
for nonepublic String getTarget()
null
for nonepublic ForwardingRule setTarget(String target)
target
- target or null
for nonepublic ForwardingRule set(String fieldName, Object value)
set
in class GenericJson
public ForwardingRule clone()
clone
in class GenericJson
Copyright © 2011–2019 Google. All rights reserved.