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.Flags
AbstractMap.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, toString
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public 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.GenericJson
public BackendServiceLogConfig clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2025 Google. All rights reserved.