public final class BackendServiceLogConfig extends 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
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.
|
String |
getOptional()
This field can only be specified if logging is enabled for this backend service.
|
List<String> |
getOptionalFields()
This field can only be specified if logging is enabled for this backend service and
"logConfig.optional" was set to CUSTOM.
|
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 |
setOptional(String optional)
This field can only be specified if logging is enabled for this backend service.
|
BackendServiceLogConfig |
setOptionalFields(List<String> optionalFields)
This field can only be specified if logging is enabled for this backend service and
"logConfig.optional" was set to CUSTOM.
|
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 String getOptional()
null
for nonepublic BackendServiceLogConfig setOptional(String optional)
optional
- optional or null
for nonepublic List<String> getOptionalFields()
null
for nonepublic BackendServiceLogConfig setOptionalFields(List<String> optionalFields)
optionalFields
- optionalFields 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 GenericJson
public BackendServiceLogConfig clone()
clone
in class GenericJson
Copyright © 2011–2022 Google. All rights reserved.