public class Monitoring.Projects.NotificationChannels.Create extends MonitoringRequest<NotificationChannel>
com.google.api.client.util.GenericData.Flags| Modifier | Constructor and Description |
|---|---|
protected |
Create(java.lang.String name,
NotificationChannel content)
Creates a new notification channel, representing a single notification endpoint such as an
email address, SMS number, or pagerduty service.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getName()
The project on which to execute the request.
|
Monitoring.Projects.NotificationChannels.Create |
set(java.lang.String parameterName,
java.lang.Object value) |
Monitoring.Projects.NotificationChannels.Create |
set$Xgafv(java.lang.String $Xgafv)
V1 error format.
|
Monitoring.Projects.NotificationChannels.Create |
setAccessToken(java.lang.String accessToken)
OAuth access token.
|
Monitoring.Projects.NotificationChannels.Create |
setAlt(java.lang.String alt)
Data format for response.
|
Monitoring.Projects.NotificationChannels.Create |
setCallback(java.lang.String callback)
JSONP
|
Monitoring.Projects.NotificationChannels.Create |
setFields(java.lang.String fields)
Selector specifying which fields to include in a partial response.
|
Monitoring.Projects.NotificationChannels.Create |
setKey(java.lang.String key)
API key.
|
Monitoring.Projects.NotificationChannels.Create |
setName(java.lang.String name)
The project on which to execute the request.
|
Monitoring.Projects.NotificationChannels.Create |
setOauthToken(java.lang.String oauthToken)
OAuth 2.0 token for the current user.
|
Monitoring.Projects.NotificationChannels.Create |
setPrettyPrint(java.lang.Boolean prettyPrint)
Returns response with indentations and line breaks.
|
Monitoring.Projects.NotificationChannels.Create |
setQuotaUser(java.lang.String quotaUser)
Available to use for quota purposes for server-side applications.
|
Monitoring.Projects.NotificationChannels.Create |
setUploadProtocol(java.lang.String uploadProtocol)
Upload protocol for media (e.g.
|
Monitoring.Projects.NotificationChannels.Create |
setUploadType(java.lang.String uploadType)
Legacy upload protocol for media (e.g.
|
get$Xgafv, getAbstractGoogleClient, getAccessToken, getAlt, getCallback, getFields, getKey, getOauthToken, getPrettyPrint, getQuotaUser, getUploadProtocol, getUploadType, setDisableGZipContent, setRequestHeadersgetJsonContent, newExceptionOnError, queuebuildHttpRequest, buildHttpRequestUrl, buildHttpRequestUsingHead, checkRequiredParameter, execute, executeAndDownloadTo, executeAsInputStream, executeMedia, executeMediaAndDownloadTo, executeMediaAsInputStream, executeUnparsed, executeUsingHead, getDisableGZipContent, getHttpContent, getLastResponseHeaders, getLastStatusCode, getLastStatusMessage, getMediaHttpDownloader, getMediaHttpUploader, getRequestHeaders, getRequestMethod, getResponseClass, getUriTemplate, initializeMediaDownload, initializeMediaUpload, queueclone, entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, toString, valuesprotected Create(java.lang.String name,
NotificationChannel content)
AbstractGoogleClientRequest.execute() method to invoke the remote operation.
Monitoring.initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest) must
be called to initialize this instance immediately after invoking the constructor.
name - The project on which to execute the request. The format is:
projects/[PROJECT_ID]
Note that this
names the container into which the channel will be written. This does not name the newly
created channel. The resulting channel's name will have a normalized version of this field
as a prefix, but will add /notificationChannels/[CHANNEL_ID] to identify the channel.content - the NotificationChannelpublic Monitoring.Projects.NotificationChannels.Create set$Xgafv(java.lang.String $Xgafv)
MonitoringRequestset$Xgafv in class MonitoringRequest<NotificationChannel>public Monitoring.Projects.NotificationChannels.Create setAccessToken(java.lang.String accessToken)
MonitoringRequestsetAccessToken in class MonitoringRequest<NotificationChannel>public Monitoring.Projects.NotificationChannels.Create setAlt(java.lang.String alt)
MonitoringRequestsetAlt in class MonitoringRequest<NotificationChannel>public Monitoring.Projects.NotificationChannels.Create setCallback(java.lang.String callback)
MonitoringRequestsetCallback in class MonitoringRequest<NotificationChannel>public Monitoring.Projects.NotificationChannels.Create setFields(java.lang.String fields)
MonitoringRequestsetFields in class MonitoringRequest<NotificationChannel>public Monitoring.Projects.NotificationChannels.Create setKey(java.lang.String key)
MonitoringRequestsetKey in class MonitoringRequest<NotificationChannel>public Monitoring.Projects.NotificationChannels.Create setOauthToken(java.lang.String oauthToken)
MonitoringRequestsetOauthToken in class MonitoringRequest<NotificationChannel>public Monitoring.Projects.NotificationChannels.Create setPrettyPrint(java.lang.Boolean prettyPrint)
MonitoringRequestsetPrettyPrint in class MonitoringRequest<NotificationChannel>public Monitoring.Projects.NotificationChannels.Create setQuotaUser(java.lang.String quotaUser)
MonitoringRequestsetQuotaUser in class MonitoringRequest<NotificationChannel>public Monitoring.Projects.NotificationChannels.Create setUploadType(java.lang.String uploadType)
MonitoringRequestsetUploadType in class MonitoringRequest<NotificationChannel>public Monitoring.Projects.NotificationChannels.Create setUploadProtocol(java.lang.String uploadProtocol)
MonitoringRequestsetUploadProtocol in class MonitoringRequest<NotificationChannel>public java.lang.String getName()
public Monitoring.Projects.NotificationChannels.Create setName(java.lang.String name)
public Monitoring.Projects.NotificationChannels.Create set(java.lang.String parameterName, java.lang.Object value)
set in class MonitoringRequest<NotificationChannel>