public final class BackendServiceLogConfig
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.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
BackendServiceLogConfig() |
| Modifier and Type | Method and Description |
|---|---|
BackendServiceLogConfig |
clone() |
Boolean |
getEnable()
Denotes whether to enable logging for the load balancer traffic served by this backend service.
|
List<String> |
getOptionalFields()
This field can only be specified if logging is enabled for this backend service and
"logConfig.optionalMode" was set to CUSTOM.
|
String |
getOptionalMode()
This field can only be specified if logging is enabled for this backend service.
|
Float |
getSampleRate()
This field can only be specified if logging is enabled for this backend service.
|
BackendServiceLogConfig |
set(String fieldName,
Object value) |
BackendServiceLogConfig |
setEnable(Boolean enable)
Denotes whether to enable logging for the load balancer traffic served by this backend service.
|
BackendServiceLogConfig |
setOptionalFields(List<String> optionalFields)
This field can only be specified if logging is enabled for this backend service and
"logConfig.optionalMode" was set to CUSTOM.
|
BackendServiceLogConfig |
setOptionalMode(String optionalMode)
This field can only be specified if logging is enabled for this backend service.
|
BackendServiceLogConfig |
setSampleRate(Float sampleRate)
This field can only be specified if logging is enabled for this backend service.
|
getFactory, setFactory, toPrettyString, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic Boolean getEnable()
null for nonepublic BackendServiceLogConfig setEnable(Boolean enable)
enable - enable or null for nonepublic List<String> getOptionalFields()
null for nonepublic BackendServiceLogConfig setOptionalFields(List<String> optionalFields)
optionalFields - optionalFields or null for nonepublic String getOptionalMode()
null for nonepublic BackendServiceLogConfig setOptionalMode(String optionalMode)
optionalMode - optionalMode or null for nonepublic Float getSampleRate()
null for nonepublic BackendServiceLogConfig setSampleRate(Float sampleRate)
sampleRate - sampleRate or null for nonepublic BackendServiceLogConfig set(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic BackendServiceLogConfig clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2023 Google. All rights reserved.