public final class BackendService
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 |
|---|
BackendService() |
| Modifier and Type | Method and Description |
|---|---|
BackendService |
clone() |
byte[] |
decodeFingerprint()
Fingerprint of this resource.
|
BackendService |
encodeFingerprint(byte[] fingerprint)
Fingerprint of this resource.
|
java.lang.Integer |
getAffinityCookieTtlSec()
If set to 0, the cookie is non-persistent and lasts only until the end of the browser session
(or equivalent).
|
java.util.List<Backend> |
getBackends()
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.
|
java.lang.String |
getCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
|
java.util.List<java.lang.String> |
getCustomRequestHeaders()
Headers that the HTTP/S load balancer should add to proxied requests.
|
java.lang.String |
getDescription()
An optional description of this resource.
|
java.lang.Boolean |
getEnableCDN()
If true, enables Cloud CDN for the backend service.
|
java.lang.String |
getFingerprint()
Fingerprint of this resource.
|
java.util.List<java.lang.String> |
getHealthChecks()
The list of URLs to the HttpHealthCheck or HttpsHealthCheck resource for health checking this
BackendService.
|
BackendServiceIAP |
getIap() |
java.math.BigInteger |
getId()
[Output Only] The unique identifier for the resource.
|
java.lang.String |
getKind()
[Output Only] Type of resource.
|
java.lang.String |
getLoadBalancingScheme()
Specifies the load balancer type.
|
java.lang.String |
getLocalityLbPolicy()
The load balancing algorithm used within the scope of the locality.
|
BackendServiceLogConfig |
getLogConfig()
This field denotes the logging options for the load balancer traffic served by this backend
service.
|
java.lang.String |
getName()
Name of the resource.
|
java.lang.String |
getNetwork()
The URL of the network to which this backend service belongs.
|
OutlierDetection |
getOutlierDetection()
Settings controlling the eviction of unhealthy hosts from the load balancing pool for the
backend service.
|
java.lang.Integer |
getPort()
Deprecated in favor of portName.
|
java.lang.String |
getPortName()
A named port on a backend instance group representing the port for communication to the backend
VMs in that group.
|
java.lang.String |
getProtocol()
The protocol this BackendService uses to communicate with backends.
|
java.lang.String |
getRegion()
[Output Only] URL of the region where the regional backend service resides.
|
java.lang.String |
getSecurityPolicy()
[Output Only] The resource URL for the security policy associated with this backend service.
|
java.lang.String |
getSelfLink()
[Output Only] Server-defined URL for the resource.
|
java.lang.String |
getSessionAffinity()
Type of session affinity to use.
|
java.lang.Integer |
getTimeoutSec()
The backend service timeout has a different meaning depending on the type of load balancer.
|
BackendService |
set(java.lang.String fieldName,
java.lang.Object value) |
BackendService |
setAffinityCookieTtlSec(java.lang.Integer affinityCookieTtlSec)
If set to 0, the cookie is non-persistent and lasts only until the end of the browser session
(or equivalent).
|
BackendService |
setBackends(java.util.List<Backend> backends)
The list of backends that serve this BackendService.
|
BackendService |
setCdnPolicy(BackendServiceCdnPolicy cdnPolicy)
Cloud CDN configuration for this BackendService.
|
BackendService |
setCircuitBreakers(CircuitBreakers circuitBreakers)
Settings controlling the volume of connections to a backend service.
|
BackendService |
setConnectionDraining(ConnectionDraining connectionDraining) |
BackendService |
setConsistentHash(ConsistentHashLoadBalancerSettings consistentHash)
Consistent Hash-based load balancing can be used to provide soft session affinity based on HTTP
headers, cookies or other properties.
|
BackendService |
setCreationTimestamp(java.lang.String creationTimestamp)
[Output Only] Creation timestamp in RFC3339 text format.
|
BackendService |
setCustomRequestHeaders(java.util.List<java.lang.String> customRequestHeaders)
Headers that the HTTP/S load balancer should add to proxied requests.
|
BackendService |
setDescription(java.lang.String description)
An optional description of this resource.
|
BackendService |
setEnableCDN(java.lang.Boolean enableCDN)
If true, enables Cloud CDN for the backend service.
|
BackendService |
setFingerprint(java.lang.String fingerprint)
Fingerprint of this resource.
|
BackendService |
setHealthChecks(java.util.List<java.lang.String> healthChecks)
The list of URLs to the HttpHealthCheck or HttpsHealthCheck resource for health checking this
BackendService.
|
BackendService |
setIap(BackendServiceIAP iap) |
BackendService |
setId(java.math.BigInteger id)
[Output Only] The unique identifier for the resource.
|
BackendService |
setKind(java.lang.String kind)
[Output Only] Type of resource.
|
BackendService |
setLoadBalancingScheme(java.lang.String loadBalancingScheme)
Specifies the load balancer type.
|
BackendService |
setLocalityLbPolicy(java.lang.String localityLbPolicy)
The load balancing algorithm used within the scope of the locality.
|
BackendService |
setLogConfig(BackendServiceLogConfig logConfig)
This field denotes the logging options for the load balancer traffic served by this backend
service.
|
BackendService |
setName(java.lang.String name)
Name of the resource.
|
BackendService |
setNetwork(java.lang.String network)
The URL of the network to which this backend service belongs.
|
BackendService |
setOutlierDetection(OutlierDetection outlierDetection)
Settings controlling the eviction of unhealthy hosts from the load balancing pool for the
backend service.
|
BackendService |
setPort(java.lang.Integer port)
Deprecated in favor of portName.
|
BackendService |
setPortName(java.lang.String portName)
A named port on a backend instance group representing the port for communication to the backend
VMs in that group.
|
BackendService |
setProtocol(java.lang.String protocol)
The protocol this BackendService uses to communicate with backends.
|
BackendService |
setRegion(java.lang.String region)
[Output Only] URL of the region where the regional backend service resides.
|
BackendService |
setSecurityPolicy(java.lang.String securityPolicy)
[Output Only] The resource URL for the security policy associated with this backend service.
|
BackendService |
setSelfLink(java.lang.String selfLink)
[Output Only] Server-defined URL for the resource.
|
BackendService |
setSessionAffinity(java.lang.String sessionAffinity)
Type of session affinity to use.
|
BackendService |
setTimeoutSec(java.lang.Integer timeoutSec)
The backend service timeout has a different meaning depending on the type of load balancer.
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, valuespublic java.lang.Integer getAffinityCookieTtlSec()
null for nonepublic BackendService setAffinityCookieTtlSec(java.lang.Integer affinityCookieTtlSec)
affinityCookieTtlSec - affinityCookieTtlSec or null for nonepublic java.util.List<Backend> getBackends()
null for nonepublic BackendService setBackends(java.util.List<Backend> backends)
backends - backends or null for nonepublic BackendServiceCdnPolicy getCdnPolicy()
null for nonepublic BackendService setCdnPolicy(BackendServiceCdnPolicy cdnPolicy)
cdnPolicy - cdnPolicy or null for nonepublic CircuitBreakers getCircuitBreakers()
null for nonepublic BackendService setCircuitBreakers(CircuitBreakers circuitBreakers)
circuitBreakers - circuitBreakers or null for nonepublic ConnectionDraining getConnectionDraining()
null for nonepublic BackendService setConnectionDraining(ConnectionDraining connectionDraining)
connectionDraining - connectionDraining or null for nonepublic ConsistentHashLoadBalancerSettings getConsistentHash()
null for nonepublic BackendService setConsistentHash(ConsistentHashLoadBalancerSettings consistentHash)
consistentHash - consistentHash or null for nonepublic java.lang.String getCreationTimestamp()
null for nonepublic BackendService setCreationTimestamp(java.lang.String creationTimestamp)
creationTimestamp - creationTimestamp or null for nonepublic java.util.List<java.lang.String> getCustomRequestHeaders()
null for nonepublic BackendService setCustomRequestHeaders(java.util.List<java.lang.String> customRequestHeaders)
customRequestHeaders - customRequestHeaders or null for nonepublic java.lang.String getDescription()
null for nonepublic BackendService setDescription(java.lang.String description)
description - description or null for nonepublic java.lang.Boolean getEnableCDN()
null for nonepublic BackendService setEnableCDN(java.lang.Boolean enableCDN)
enableCDN - enableCDN or null for nonepublic java.lang.String getFingerprint()
null for nonedecodeFingerprint()public byte[] decodeFingerprint()
null for nonegetFingerprint()public BackendService setFingerprint(java.lang.String fingerprint)
fingerprint - fingerprint or null for none#encodeFingerprint()public BackendService encodeFingerprint(byte[] fingerprint)
The value is encoded Base64 or {@code null} for none.
public java.util.List<java.lang.String> getHealthChecks()
null for nonepublic BackendService setHealthChecks(java.util.List<java.lang.String> healthChecks)
healthChecks - healthChecks or null for nonepublic BackendServiceIAP getIap()
null for nonepublic BackendService setIap(BackendServiceIAP iap)
iap - iap or null for nonepublic java.math.BigInteger getId()
null for nonepublic BackendService setId(java.math.BigInteger id)
id - id or null for nonepublic java.lang.String getKind()
null for nonepublic BackendService setKind(java.lang.String kind)
kind - kind or null for nonepublic java.lang.String getLoadBalancingScheme()
null for nonepublic BackendService setLoadBalancingScheme(java.lang.String loadBalancingScheme)
loadBalancingScheme - loadBalancingScheme or null for nonepublic java.lang.String getLocalityLbPolicy()
null for nonepublic BackendService setLocalityLbPolicy(java.lang.String localityLbPolicy)
localityLbPolicy - localityLbPolicy or null for nonepublic BackendServiceLogConfig getLogConfig()
null for nonepublic BackendService setLogConfig(BackendServiceLogConfig logConfig)
logConfig - logConfig or null for nonepublic java.lang.String getName()
null for nonepublic BackendService setName(java.lang.String name)
name - name or null for nonepublic java.lang.String getNetwork()
null for nonepublic BackendService setNetwork(java.lang.String network)
network - network or null for nonepublic OutlierDetection getOutlierDetection()
null for nonepublic BackendService setOutlierDetection(OutlierDetection outlierDetection)
outlierDetection - outlierDetection or null for nonepublic java.lang.Integer getPort()
null for nonepublic BackendService setPort(java.lang.Integer port)
port - port or null for nonepublic java.lang.String getPortName()
null for nonepublic BackendService setPortName(java.lang.String portName)
portName - portName or null for nonepublic java.lang.String getProtocol()
null for nonepublic BackendService setProtocol(java.lang.String protocol)
protocol - protocol or null for nonepublic java.lang.String getRegion()
null for nonepublic BackendService setRegion(java.lang.String region)
region - region or null for nonepublic java.lang.String getSecurityPolicy()
null for nonepublic BackendService setSecurityPolicy(java.lang.String securityPolicy)
securityPolicy - securityPolicy or null for nonepublic java.lang.String getSelfLink()
null for nonepublic BackendService setSelfLink(java.lang.String selfLink)
selfLink - selfLink or null for nonepublic java.lang.String getSessionAffinity()
null for nonepublic BackendService setSessionAffinity(java.lang.String sessionAffinity)
sessionAffinity - sessionAffinity or null for nonepublic java.lang.Integer getTimeoutSec()
null for nonepublic BackendService setTimeoutSec(java.lang.Integer timeoutSec)
timeoutSec - timeoutSec or null for nonepublic BackendService set(java.lang.String fieldName, java.lang.Object value)
set in class com.google.api.client.json.GenericJsonpublic BackendService clone()
clone in class com.google.api.client.json.GenericJson