public final class PolicySnapshot
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 Cloud Monitoring 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 |
|---|
PolicySnapshot() |
| Modifier and Type | Method and Description |
|---|---|
PolicySnapshot |
clone() |
String |
getDisplayName()
The display name of the alert policy.
|
String |
getName()
The name of the alert policy resource.
|
String |
getSeverity()
The severity of the alert policy.
|
Map<String,String> |
getUserLabels()
The user labels for the alert policy.
|
PolicySnapshot |
set(String fieldName,
Object value) |
PolicySnapshot |
setDisplayName(String displayName)
The display name of the alert policy.
|
PolicySnapshot |
setName(String name)
The name of the alert policy resource.
|
PolicySnapshot |
setSeverity(String severity)
The severity of the alert policy.
|
PolicySnapshot |
setUserLabels(Map<String,String> userLabels)
The user labels for the alert policy.
|
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 String getDisplayName()
null for nonepublic PolicySnapshot setDisplayName(String displayName)
displayName - displayName or null for nonepublic String getName()
null for nonepublic PolicySnapshot setName(String name)
name - name or null for nonepublic String getSeverity()
null for nonepublic PolicySnapshot setSeverity(String severity)
severity - severity or null for nonepublic Map<String,String> getUserLabels()
null for nonepublic PolicySnapshot setUserLabels(Map<String,String> userLabels)
userLabels - userLabels or null for nonepublic PolicySnapshot set(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic PolicySnapshot clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2025 Google. All rights reserved.