![JAR search and dependency download from the Maven repository](/logo.png)
target.apidocs.com.google.api.services.compute.model.BackendServiceLogConfig.html Maven / Gradle / Ivy
BackendServiceLogConfig (Compute Engine API beta-rev20220726-2.0.0)
com.google.api.services.compute.model
Class BackendServiceLogConfig
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.compute.model.BackendServiceLogConfig
-
public final class BackendServiceLogConfig
extends GenericJson
The available logging options for the load balancer traffic served by this backend service.
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
- Author:
- Google, Inc.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
GenericData.Flags
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
-
Constructor Summary
Constructors
Constructor and Description
BackendServiceLogConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
BackendServiceLogConfig
clone()
Boolean
getEnable()
This field denotes whether to enable logging for the load balancer traffic served by 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)
This field denotes whether to enable logging for the load balancer traffic served by this
backend service.
BackendServiceLogConfig
setSampleRate(Float sampleRate)
This field can only be specified if logging is enabled for this backend service.
-
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
-
Methods inherited from class com.google.api.client.util.GenericData
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, isEmpty, keySet, size, values
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
Method Detail
-
getEnable
public Boolean getEnable()
This field denotes whether to enable logging for the load balancer traffic served by this
backend service.
- Returns:
- value or
null
for none
-
setEnable
public BackendServiceLogConfig setEnable(Boolean enable)
This field denotes whether to enable logging for the load balancer traffic served by this
backend service.
- Parameters:
enable
- enable or null
for none
-
getSampleRate
public Float getSampleRate()
This field can only be specified if logging is enabled for this backend service. The value of
the field must be in [0, 1]. This configures the sampling rate of requests to the load balancer
where 1.0 means all logged requests are reported and 0.0 means no logged requests are reported.
The default value is 0.0.
- Returns:
- value or
null
for none
-
setSampleRate
public BackendServiceLogConfig setSampleRate(Float sampleRate)
This field can only be specified if logging is enabled for this backend service. The value of
the field must be in [0, 1]. This configures the sampling rate of requests to the load balancer
where 1.0 means all logged requests are reported and 0.0 means no logged requests are reported.
The default value is 0.0.
- Parameters:
sampleRate
- sampleRate or null
for none
-
set
public BackendServiceLogConfig set(String fieldName,
Object value)
- Overrides:
set
in class GenericJson
-
clone
public BackendServiceLogConfig clone()
- Overrides:
clone
in class GenericJson
Copyright © 2011–2022 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy