public final class NotificationChannel
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.Flags
Constructor and Description |
---|
NotificationChannel() |
Modifier and Type | Method and Description |
---|---|
NotificationChannel |
clone() |
java.lang.String |
getDescription()
An optional human-readable description of this notification channel.
|
java.lang.String |
getDisplayName()
An optional human-readable name for this notification channel.
|
java.lang.Boolean |
getEnabled()
Whether notifications are forwarded to the described channel.
|
java.util.Map<java.lang.String,java.lang.String> |
getLabels()
Configuration fields that define the channel and its behavior.
|
java.lang.String |
getName()
The full REST resource name for this channel.
|
java.lang.String |
getType()
The type of the notification channel.
|
java.util.Map<java.lang.String,java.lang.String> |
getUserLabels()
User-supplied key/value data that does not need to conform to the corresponding
NotificationChannelDescriptor's schema, unlike the labels field.
|
java.lang.String |
getVerificationStatus()
Indicates whether this channel has been verified or not.
|
NotificationChannel |
set(java.lang.String fieldName,
java.lang.Object value) |
NotificationChannel |
setDescription(java.lang.String description)
An optional human-readable description of this notification channel.
|
NotificationChannel |
setDisplayName(java.lang.String displayName)
An optional human-readable name for this notification channel.
|
NotificationChannel |
setEnabled(java.lang.Boolean enabled)
Whether notifications are forwarded to the described channel.
|
NotificationChannel |
setLabels(java.util.Map<java.lang.String,java.lang.String> labels)
Configuration fields that define the channel and its behavior.
|
NotificationChannel |
setName(java.lang.String name)
The full REST resource name for this channel.
|
NotificationChannel |
setType(java.lang.String type)
The type of the notification channel.
|
NotificationChannel |
setUserLabels(java.util.Map<java.lang.String,java.lang.String> userLabels)
User-supplied key/value data that does not need to conform to the corresponding
NotificationChannelDescriptor's schema, unlike the labels field.
|
NotificationChannel |
setVerificationStatus(java.lang.String verificationStatus)
Indicates whether this channel has been verified or not.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public java.lang.String getDescription()
null
for nonepublic NotificationChannel setDescription(java.lang.String description)
description
- description or null
for nonepublic java.lang.String getDisplayName()
null
for nonepublic NotificationChannel setDisplayName(java.lang.String displayName)
displayName
- displayName or null
for nonepublic java.lang.Boolean getEnabled()
null
for nonepublic NotificationChannel setEnabled(java.lang.Boolean enabled)
enabled
- enabled or null
for nonepublic java.util.Map<java.lang.String,java.lang.String> getLabels()
null
for nonepublic NotificationChannel setLabels(java.util.Map<java.lang.String,java.lang.String> labels)
labels
- labels or null
for nonepublic java.lang.String getName()
null
for nonepublic NotificationChannel setName(java.lang.String name)
name
- name or null
for nonepublic java.lang.String getType()
null
for nonepublic NotificationChannel setType(java.lang.String type)
type
- type or null
for nonepublic java.util.Map<java.lang.String,java.lang.String> getUserLabels()
null
for nonepublic NotificationChannel setUserLabels(java.util.Map<java.lang.String,java.lang.String> userLabels)
userLabels
- userLabels or null
for nonepublic java.lang.String getVerificationStatus()
null
for nonepublic NotificationChannel setVerificationStatus(java.lang.String verificationStatus)
verificationStatus
- verificationStatus or null
for nonepublic NotificationChannel set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public NotificationChannel clone()
clone
in class com.google.api.client.json.GenericJson