public final class TargetPool 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.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
TargetPool() |
| Modifier and Type | Method and Description |
|---|---|
TargetPool |
clone() |
String |
getBackupPool()
This field is applicable only when the containing target pool is serving a forwarding rule as
the primary pool, and its failoverRatio field is properly set to a value between [0, 1].
|
String |
getCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
|
String |
getDescription()
An optional description of this resource.
|
Float |
getFailoverRatio()
This field is applicable only when the containing target pool is serving a forwarding rule as
the primary pool (i.e., not as a backup pool to some other target pool).
|
List<String> |
getHealthChecks()
The URL of the HttpHealthCheck resource.
|
BigInteger |
getId()
[Output Only] The unique identifier for the resource.
|
List<String> |
getInstances()
A list of resource URLs to the virtual machine instances serving this pool.
|
String |
getKind()
[Output Only] Type of the resource.
|
String |
getName()
Name of the resource.
|
String |
getRegion()
[Output Only] URL of the region where the target pool resides.
|
String |
getSelfLink()
[Output Only] Server-defined URL for the resource.
|
String |
getSessionAffinity()
Session affinity option, must be one of the following values: NONE: Connections from the same
client IP may go to any instance in the pool.
|
TargetPool |
set(String fieldName,
Object value) |
TargetPool |
setBackupPool(String backupPool)
This field is applicable only when the containing target pool is serving a forwarding rule as
the primary pool, and its failoverRatio field is properly set to a value between [0, 1].
|
TargetPool |
setCreationTimestamp(String creationTimestamp)
[Output Only] Creation timestamp in RFC3339 text format.
|
TargetPool |
setDescription(String description)
An optional description of this resource.
|
TargetPool |
setFailoverRatio(Float failoverRatio)
This field is applicable only when the containing target pool is serving a forwarding rule as
the primary pool (i.e., not as a backup pool to some other target pool).
|
TargetPool |
setHealthChecks(List<String> healthChecks)
The URL of the HttpHealthCheck resource.
|
TargetPool |
setId(BigInteger id)
[Output Only] The unique identifier for the resource.
|
TargetPool |
setInstances(List<String> instances)
A list of resource URLs to the virtual machine instances serving this pool.
|
TargetPool |
setKind(String kind)
[Output Only] Type of the resource.
|
TargetPool |
setName(String name)
Name of the resource.
|
TargetPool |
setRegion(String region)
[Output Only] URL of the region where the target pool resides.
|
TargetPool |
setSelfLink(String selfLink)
[Output Only] Server-defined URL for the resource.
|
TargetPool |
setSessionAffinity(String sessionAffinity)
Session affinity option, must be one of the following values: NONE: Connections from the same
client IP may go to any instance in the pool.
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic String getBackupPool()
null for nonepublic TargetPool setBackupPool(String backupPool)
backupPool - backupPool or null for nonepublic String getCreationTimestamp()
null for nonepublic TargetPool setCreationTimestamp(String creationTimestamp)
creationTimestamp - creationTimestamp or null for nonepublic String getDescription()
null for nonepublic TargetPool setDescription(String description)
description - description or null for nonepublic Float getFailoverRatio()
null for nonepublic TargetPool setFailoverRatio(Float failoverRatio)
failoverRatio - failoverRatio or null for nonepublic List<String> getHealthChecks()
null for nonepublic TargetPool setHealthChecks(List<String> healthChecks)
healthChecks - healthChecks or null for nonepublic BigInteger getId()
null for nonepublic TargetPool setId(BigInteger id)
id - id or null for nonepublic List<String> getInstances()
null for nonepublic TargetPool setInstances(List<String> instances)
instances - instances or null for nonepublic String getKind()
null for nonepublic TargetPool setKind(String kind)
kind - kind or null for nonepublic String getName()
null for nonepublic TargetPool setName(String name)
name - name or null for nonepublic String getRegion()
null for nonepublic TargetPool setRegion(String region)
region - region or null for nonepublic String getSelfLink()
null for nonepublic TargetPool setSelfLink(String selfLink)
selfLink - selfLink or null for nonepublic String getSessionAffinity()
null for nonepublic TargetPool setSessionAffinity(String sessionAffinity)
sessionAffinity - sessionAffinity or null for nonepublic TargetPool set(String fieldName, Object value)
set in class GenericJsonpublic TargetPool clone()
clone in class GenericJsonCopyright © 2011–2019 Google. All rights reserved.