@Generated(value="by GAPIC") @BetaApi public final class BackendService extends Object implements com.google.api.gax.httpjson.ApiMessage
Modifier and Type | Class and Description |
---|---|
static class |
BackendService.Builder |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
Integer |
getAffinityCookieTtlSec()
If set to 0, the cookie is non-persistent and lasts only until the end of the browser session
(or equivalent).
|
com.google.api.gax.httpjson.ApiMessage |
getApiMessageRequestBody() |
List<Backend> |
getBackendsList()
The list of backends that serve this BackendService.
|
BackendServiceCdnPolicy |
getCdnPolicy()
Cloud CDN configuration for this BackendService.
|
CircuitBreakers |
getCircuitBreakers()
Settings controlling the volume of connections to a backend service.
|
ConnectionDraining |
getConnectionDraining() |
ConsistentHashLoadBalancerSettings |
getConsistentHash()
Consistent Hash-based load balancing can be used to provide soft session affinity based on HTTP
headers, cookies or other properties.
|
String |
getCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
|
List<String> |
getCustomRequestHeadersList()
Headers that the HTTP/S load balancer should add to proxied requests.
|
static BackendService |
getDefaultInstance() |
String |
getDescription()
An optional description of this resource.
|
Boolean |
getEnableCDN()
If true, enables Cloud CDN for the backend service.
|
List<String> |
getFieldMask() |
Object |
getFieldValue(String fieldName) |
String |
getFingerprint()
Fingerprint of this resource.
|
List<String> |
getHealthChecksList()
The list of URLs to the HttpHealthCheck or HttpsHealthCheck resource for health checking this
BackendService.
|
BackendServiceIAP |
getIap() |
String |
getId()
[Output Only] The unique identifier for the resource.
|
String |
getKind()
[Output Only] Type of resource.
|
String |
getLoadBalancingScheme()
Indicates whether the backend service will be used with internal or external load balancing.
|
String |
getLocalityLbPolicy()
The load balancing algorithm used within the scope of the locality.
|
String |
getName()
Name of the resource.
|
OutlierDetection |
getOutlierDetection()
Settings controlling eviction of unhealthy hosts from the load balancing pool.
|
Integer |
getPort()
Deprecated in favor of portName.
|
String |
getPortName()
A named port on a backend instance group representing the port for communication to the backend
VMs in that group.
|
String |
getProtocol()
The protocol this BackendService uses to communicate with backends.
|
String |
getRegion()
[Output Only] URL of the region where the regional backend service resides.
|
String |
getSecurityPolicy()
[Output Only] The resource URL for the security policy associated with this backend service.
|
String |
getSelfLink()
[Output Only] Server-defined URL for the resource.
|
String |
getSessionAffinity()
Type of session affinity to use.
|
Integer |
getTimeoutSec()
The backend service timeout has a different meaning depending on the type of load balancer.
|
int |
hashCode() |
static BackendService.Builder |
newBuilder() |
static BackendService.Builder |
newBuilder(BackendService prototype) |
BackendService.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 Integer getAffinityCookieTtlSec()
public List<Backend> getBackendsList()
public BackendServiceCdnPolicy getCdnPolicy()
public CircuitBreakers getCircuitBreakers()
This field is applicable to either: - A regional backend service with the service_protocol set to HTTP, HTTPS, or HTTP2, and load_balancing_scheme set to INTERNAL_MANAGED. - A global backend service with the load_balancing_scheme set to INTERNAL_SELF_MANAGED.
public ConnectionDraining getConnectionDraining()
public ConsistentHashLoadBalancerSettings getConsistentHash()
This field is applicable to either: - A regional backend service with the service_protocol set to HTTP, HTTPS, or HTTP2, and load_balancing_scheme set to INTERNAL_MANAGED. - A global backend service with the load_balancing_scheme set to INTERNAL_SELF_MANAGED.
public String getCreationTimestamp()
public List<String> getCustomRequestHeadersList()
public String getDescription()
public Boolean getEnableCDN()
public String getFingerprint()
To see the latest fingerprint, make a get() request to retrieve a BackendService.
public List<String> getHealthChecksList()
For internal load balancing, a URL to a HealthCheck resource must be specified instead.
public BackendServiceIAP getIap()
public String getId()
public String getKind()
public String getLoadBalancingScheme()
public String getLocalityLbPolicy()
This field is applicable to either: - A regional backend service with the service_protocol set to HTTP, HTTPS, or HTTP2, and load_balancing_scheme set to INTERNAL_MANAGED. - A global backend service with the load_balancing_scheme set to INTERNAL_SELF_MANAGED.
public String getName()
public OutlierDetection getOutlierDetection()
public Integer getPort()
This cannot be used if the loadBalancingScheme is INTERNAL (Internal TCP/UDP Load Balancing).
public String getPortName()
Must be omitted when the loadBalancingScheme is INTERNAL (Internal TCP/UDP Load Blaancing).
public String getProtocol()
Possible values are HTTP, HTTPS, TCP, SSL, or UDP, depending on the chosen load balancer or Traffic Director configuration. Refer to the documentation for the load balancer or for Traffic director for more information.
public String getRegion()
public String getSecurityPolicy()
public String getSelfLink()
public String getSessionAffinity()
When the loadBalancingScheme is EXTERNAL, possible values are NONE, CLIENT_IP, or GENERATED_COOKIE. You can use GENERATED_COOKIE if the protocol is HTTP or HTTPS.
When the loadBalancingScheme is INTERNAL, possible values are NONE, CLIENT_IP, CLIENT_IP_PROTO, or CLIENT_IP_PORT_PROTO.
When the loadBalancingScheme is INTERNAL_SELF_MANAGED, possible values are NONE, CLIENT_IP, GENERATED_COOKIE, HEADER_FIELD, or HTTP_COOKIE.
public Integer getTimeoutSec()
public static BackendService.Builder newBuilder()
public static BackendService.Builder newBuilder(BackendService prototype)
public BackendService.Builder toBuilder()
public static BackendService getDefaultInstance()
Copyright © 2019 Google LLC. All rights reserved.