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
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
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.
|
Integer |
getAffinityCookieTtlSec()
Lifetime of cookies in seconds if session_affinity is GENERATED_COOKIE.
|
List<Backend> |
getBackends()
The list of backends that serve this BackendService.
|
BackendServiceCdnPolicy |
getCdnPolicy()
Cloud CDN configuration for this BackendService.
|
ConnectionDraining |
getConnectionDraining() |
String |
getCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
|
String |
getDescription()
An optional description of this resource.
|
Boolean |
getEnableCDN()
If true, enable Cloud CDN for this BackendService.
|
String |
getFingerprint()
Fingerprint of this resource.
|
List<String> |
getHealthChecks()
The list of URLs to the HttpHealthCheck or HttpsHealthCheck resource for health checking this
BackendService.
|
BackendServiceIAP |
getIap() |
BigInteger |
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 |
getName()
Name of the resource.
|
Integer |
getPort()
Deprecated in favor of portName.
|
String |
getPortName()
Name of backend port.
|
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()
How many seconds to wait for the backend before considering it a failed request.
|
BackendService |
set(String fieldName,
Object value) |
BackendService |
setAffinityCookieTtlSec(Integer affinityCookieTtlSec)
Lifetime of cookies in seconds if session_affinity is GENERATED_COOKIE.
|
BackendService |
setBackends(List<Backend> backends)
The list of backends that serve this BackendService.
|
BackendService |
setCdnPolicy(BackendServiceCdnPolicy cdnPolicy)
Cloud CDN configuration for this BackendService.
|
BackendService |
setConnectionDraining(ConnectionDraining connectionDraining) |
BackendService |
setCreationTimestamp(String creationTimestamp)
[Output Only] Creation timestamp in RFC3339 text format.
|
BackendService |
setDescription(String description)
An optional description of this resource.
|
BackendService |
setEnableCDN(Boolean enableCDN)
If true, enable Cloud CDN for this BackendService.
|
BackendService |
setFingerprint(String fingerprint)
Fingerprint of this resource.
|
BackendService |
setHealthChecks(List<String> healthChecks)
The list of URLs to the HttpHealthCheck or HttpsHealthCheck resource for health checking this
BackendService.
|
BackendService |
setIap(BackendServiceIAP iap) |
BackendService |
setId(BigInteger id)
[Output Only] The unique identifier for the resource.
|
BackendService |
setKind(String kind)
[Output Only] Type of resource.
|
BackendService |
setLoadBalancingScheme(String loadBalancingScheme)
Indicates whether the backend service will be used with internal or external load balancing.
|
BackendService |
setName(String name)
Name of the resource.
|
BackendService |
setPort(Integer port)
Deprecated in favor of portName.
|
BackendService |
setPortName(String portName)
Name of backend port.
|
BackendService |
setProtocol(String protocol)
The protocol this BackendService uses to communicate with backends.
|
BackendService |
setRegion(String region)
[Output Only] URL of the region where the regional backend service resides.
|
BackendService |
setSecurityPolicy(String securityPolicy)
[Output Only] The resource URL for the security policy associated with this backend service.
|
BackendService |
setSelfLink(String selfLink)
[Output Only] Server-defined URL for the resource.
|
BackendService |
setSessionAffinity(String sessionAffinity)
Type of session affinity to use.
|
BackendService |
setTimeoutSec(Integer timeoutSec)
How many seconds to wait for the backend before considering it a failed request.
|
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 Integer getAffinityCookieTtlSec()
null
for nonepublic BackendService setAffinityCookieTtlSec(Integer affinityCookieTtlSec)
affinityCookieTtlSec
- affinityCookieTtlSec or null
for nonepublic List<Backend> getBackends()
null
for nonepublic BackendService setBackends(List<Backend> backends)
backends
- backends or null
for nonepublic BackendServiceCdnPolicy getCdnPolicy()
null
for nonepublic BackendService setCdnPolicy(BackendServiceCdnPolicy cdnPolicy)
cdnPolicy
- cdnPolicy or null
for nonepublic ConnectionDraining getConnectionDraining()
null
for nonepublic BackendService setConnectionDraining(ConnectionDraining connectionDraining)
connectionDraining
- connectionDraining or null
for nonepublic String getCreationTimestamp()
null
for nonepublic BackendService setCreationTimestamp(String creationTimestamp)
creationTimestamp
- creationTimestamp or null
for nonepublic String getDescription()
null
for nonepublic BackendService setDescription(String description)
description
- description or null
for nonepublic Boolean getEnableCDN()
null
for nonepublic BackendService setEnableCDN(Boolean enableCDN)
enableCDN
- enableCDN or null
for nonepublic String getFingerprint()
null
for nonedecodeFingerprint()
public byte[] decodeFingerprint()
null
for nonegetFingerprint()
public BackendService setFingerprint(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 List<String> getHealthChecks()
null
for nonepublic BackendService setHealthChecks(List<String> healthChecks)
healthChecks
- healthChecks or null
for nonepublic BackendServiceIAP getIap()
null
for nonepublic BackendService setIap(BackendServiceIAP iap)
iap
- iap or null
for nonepublic BigInteger getId()
null
for nonepublic BackendService setId(BigInteger id)
id
- id or null
for nonepublic String getKind()
null
for nonepublic BackendService setKind(String kind)
kind
- kind or null
for nonepublic String getLoadBalancingScheme()
null
for nonepublic BackendService setLoadBalancingScheme(String loadBalancingScheme)
loadBalancingScheme
- loadBalancingScheme or null
for nonepublic String getName()
null
for nonepublic BackendService setName(String name)
name
- name or null
for nonepublic Integer getPort()
null
for nonepublic BackendService setPort(Integer port)
port
- port or null
for nonepublic String getPortName()
null
for nonepublic BackendService setPortName(String portName)
portName
- portName or null
for nonepublic String getProtocol()
null
for nonepublic BackendService setProtocol(String protocol)
protocol
- protocol or null
for nonepublic String getRegion()
null
for nonepublic BackendService setRegion(String region)
region
- region or null
for nonepublic String getSecurityPolicy()
null
for nonepublic BackendService setSecurityPolicy(String securityPolicy)
securityPolicy
- securityPolicy or null
for nonepublic String getSelfLink()
null
for nonepublic BackendService setSelfLink(String selfLink)
selfLink
- selfLink or null
for nonepublic String getSessionAffinity()
null
for nonepublic BackendService setSessionAffinity(String sessionAffinity)
sessionAffinity
- sessionAffinity or null
for nonepublic Integer getTimeoutSec()
null
for nonepublic BackendService setTimeoutSec(Integer timeoutSec)
timeoutSec
- timeoutSec or null
for nonepublic BackendService set(String fieldName, Object value)
set
in class com.google.api.client.json.GenericJson
public BackendService clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2019 Google. All rights reserved.