@Generated(value="by GAPIC") @BetaApi public final class TargetPool extends Object implements com.google.api.gax.httpjson.ApiMessage
Modifier and Type | Class and Description |
---|---|
static class |
TargetPool.Builder |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
com.google.api.gax.httpjson.ApiMessage |
getApiMessageRequestBody() |
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.
|
static TargetPool |
getDefaultInstance() |
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> |
getFieldMask() |
Object |
getFieldValue(String fieldName) |
List<String> |
getHealthChecksList()
The URL of the HttpHealthCheck resource.
|
String |
getId()
[Output Only] The unique identifier for the resource.
|
List<String> |
getInstancesList()
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.
|
int |
hashCode() |
static TargetPool.Builder |
newBuilder() |
static TargetPool.Builder |
newBuilder(TargetPool prototype) |
TargetPool.Builder |
toBuilder() |
String |
toString() |
public Object getFieldValue(String fieldName)
getFieldValue
in interface com.google.api.gax.httpjson.ApiMessage
@Nullable public com.google.api.gax.httpjson.ApiMessage getApiMessageRequestBody()
getApiMessageRequestBody
in interface com.google.api.gax.httpjson.ApiMessage
@Nullable public List<String> getFieldMask()
getFieldMask
in interface com.google.api.gax.httpjson.ApiMessage
public String getBackupPool()
backupPool and failoverRatio together define the fallback behavior of the primary target pool: if the ratio of the healthy instances in the primary pool is at or below failoverRatio, traffic arriving at the load-balanced IP will be directed to the backup pool.
In case where failoverRatio and backupPool are not set, or all the instances in the backup pool are unhealthy, the traffic will be directed back to the primary pool in the "force" mode, where traffic will be spread to the healthy instances with the best effort, or to all instances when no instance is healthy.
public String getCreationTimestamp()
public String getDescription()
public Float getFailoverRatio()
If set, backupPool must also be set. They together define the fallback behavior of the primary target pool: if the ratio of the healthy instances in the primary pool is at or below this number, traffic arriving at the load-balanced IP will be directed to the backup pool.
In case where failoverRatio is not set or all the instances in the backup pool are unhealthy, the traffic will be directed back to the primary pool in the "force" mode, where traffic will be spread to the healthy instances with the best effort, or to all instances when no instance is healthy.
public List<String> getHealthChecksList()
public String getId()
public List<String> getInstancesList()
public String getKind()
public String getName()
public String getRegion()
public String getSelfLink()
public String getSessionAffinity()
public static TargetPool.Builder newBuilder()
public static TargetPool.Builder newBuilder(TargetPool prototype)
public TargetPool.Builder toBuilder()
public static TargetPool getDefaultInstance()
Copyright © 2019 Google LLC. All rights reserved.