public static final class NotificationWatcher.Builder
extends java.lang.Object
NotificationWatcher
.Constructor and Description |
---|
Builder()
Constructor with parameters for the required properties of
NotificationWatcher . |
Modifier and Type | Method and Description |
---|---|
NotificationWatcher |
build() |
NotificationWatcher.Builder |
setAuthenticationScheme(NotificationAuthenticationScheme authenticationScheme) |
NotificationWatcher.Builder |
setCertificateSha256Thumbprint(java.lang.String certificateSha256Thumbprint)
Contains the hex-encoded SHA256 thumbprint of the HTTPS certificate.
|
NotificationWatcher.Builder |
setCreateTime(java.lang.Long createTime)
Timestamp of resource creation format: int64
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
NotificationWatcher.Builder |
setCreateUser(java.lang.String createUser)
ID of the user who created this resource
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
NotificationWatcher.Builder |
setDescription(java.lang.String description)
Optional description that can be associated with this NotificationWatcher.
|
NotificationWatcher.Builder |
setDisplayName(java.lang.String displayName)
Defaults to ID if not set
|
NotificationWatcher.Builder |
setId(java.lang.String id)
System generated identifier to identify a notification watcher uniquely.
|
NotificationWatcher.Builder |
setLastModifiedTime(java.lang.Long lastModifiedTime)
Timestamp of last modification format: int64
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
NotificationWatcher.Builder |
setLastModifiedUser(java.lang.String lastModifiedUser)
ID of the user who last modified this resource
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
NotificationWatcher.Builder |
setLinks(java.util.List<ResourceLink> links)
The server will populate this field when returing the resource.
|
NotificationWatcher.Builder |
setMaxSendUriCount(java.lang.Long maxSendUriCount)
If the number of notification URIs accumulated in specified send_interval
exceeds max_send_uri_count, then multiple notification requests (each with
max_send_uri_count or less number of notification URIs) will be sent to this
NotificationWatcher.
|
NotificationWatcher.Builder |
setMethod(java.lang.String method)
Possible values are:
NotificationWatcher.METHOD_POST Type of method
notification requests should be made on the specified server. |
NotificationWatcher.Builder |
setPort(java.lang.Long port)
Optional integer port value to specify a non-standard HTTP or HTTPS port.
|
NotificationWatcher.Builder |
setProtection(java.lang.String protection)
Protection status is one of the following: PROTECTED - the client who retrieved
the entity is not allowed to modify it.
|
NotificationWatcher.Builder |
setResourceType(java.lang.String resourceType)
The type of this resource.
|
NotificationWatcher.Builder |
setRevision(java.lang.Long revision)
The _revision property describes the current revision of the resource.
|
NotificationWatcher.Builder |
setSchema(java.lang.String schema)
Schema for this resource
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
NotificationWatcher.Builder |
setSelf(SelfResourceLink self) |
NotificationWatcher.Builder |
setSendInterval(java.lang.Long sendInterval)
Optional time interval (in seconds) for which notification URIs will be
accumulated.
|
NotificationWatcher.Builder |
setSendTimeout(java.lang.Long sendTimeout)
Optional time duration (in seconds) to specify request timeout to notification
watcher.
|
NotificationWatcher.Builder |
setServer(java.lang.String server)
IP address or fully qualified domain name of the partner/customer watcher.
|
NotificationWatcher.Builder |
setSystemOwned(java.lang.Boolean systemOwned)
Indicates system owned resource
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
NotificationWatcher.Builder |
setTags(java.util.List<Tag> tags)
Opaque identifiers meaningful to the API user
|
NotificationWatcher.Builder |
setUri(java.lang.String uri)
URI notification requests should be made on the specified server.
|
NotificationWatcher.Builder |
setUseHttps(java.lang.Boolean useHttps)
Optional field, when set to true indicates REST API server should use HTTPS.
|
public Builder()
NotificationWatcher
.public NotificationWatcher.Builder setLinks(java.util.List<ResourceLink> links)
links
- New value for the property.public NotificationWatcher.Builder setSchema(java.lang.String schema)
schema
- New value for the property.public NotificationWatcher.Builder setSelf(SelfResourceLink self)
self
- New value for the property.public NotificationWatcher.Builder setRevision(java.lang.Long revision)
revision
- New value for the property.public NotificationWatcher.Builder setCreateTime(java.lang.Long createTime)
createTime
- New value for the property.public NotificationWatcher.Builder setCreateUser(java.lang.String createUser)
createUser
- New value for the property.public NotificationWatcher.Builder setLastModifiedTime(java.lang.Long lastModifiedTime)
lastModifiedTime
- New value for the property.public NotificationWatcher.Builder setLastModifiedUser(java.lang.String lastModifiedUser)
lastModifiedUser
- New value for the property.public NotificationWatcher.Builder setProtection(java.lang.String protection)
protection
- New value for the property.public NotificationWatcher.Builder setSystemOwned(java.lang.Boolean systemOwned)
systemOwned
- New value for the property.public NotificationWatcher.Builder setDescription(java.lang.String description)
description
- New value for the property.public NotificationWatcher.Builder setDisplayName(java.lang.String displayName)
displayName
- New value for the property.public NotificationWatcher.Builder setId(java.lang.String id)
id
- New value for the property.public NotificationWatcher.Builder setResourceType(java.lang.String resourceType)
resourceType
- New value for the property.public NotificationWatcher.Builder setTags(java.util.List<Tag> tags)
tags
- New value for the property.public NotificationWatcher.Builder setAuthenticationScheme(NotificationAuthenticationScheme authenticationScheme)
authenticationScheme
- New value for the property.public NotificationWatcher.Builder setCertificateSha256Thumbprint(java.lang.String certificateSha256Thumbprint)
certificateSha256Thumbprint
- New value for the property.public NotificationWatcher.Builder setMaxSendUriCount(java.lang.Long maxSendUriCount)
maxSendUriCount
- New value for the property.public NotificationWatcher.Builder setMethod(java.lang.String method)
method
- New value for the property.public NotificationWatcher.Builder setPort(java.lang.Long port)
port
- New value for the property.public NotificationWatcher.Builder setSendInterval(java.lang.Long sendInterval)
sendInterval
- New value for the property.public NotificationWatcher.Builder setSendTimeout(java.lang.Long sendTimeout)
sendTimeout
- New value for the property.public NotificationWatcher.Builder setServer(java.lang.String server)
server
- New value for the property.public NotificationWatcher.Builder setUri(java.lang.String uri)
uri
- New value for the property.public NotificationWatcher.Builder setUseHttps(java.lang.Boolean useHttps)
useHttps
- New value for the property.public NotificationWatcher build()