public static final class Notification.Builder
extends java.lang.Object
Notification.| Constructor and Description |
|---|
Builder(java.lang.String id,
java.util.Calendar time,
LocalizableMessage message)
Constructor with parameters for the required properties of
Notification. |
| Modifier and Type | Method and Description |
|---|---|
Notification |
build() |
Notification.Builder |
setOriginator(java.lang.String originator)
The originator of the notification.
|
Notification.Builder |
setResolution(LocalizableMessage resolution)
The resolution message, if any.
|
Notification.Builder |
setRetriable(java.lang.Boolean retriable)
Indicates whether the error is retriable.
|
Notification.Builder |
setType(Notification.Type type)
Type of the notification.
|
public Builder(java.lang.String id,
java.util.Calendar time,
LocalizableMessage message)
Notification.public Notification.Builder setType(Notification.Type type)
type - New value for the property.public Notification.Builder setResolution(LocalizableMessage resolution)
Set if there is a resolution available for this
notification.resolution - New value for the property.public Notification.Builder setOriginator(java.lang.String originator)
Set if there is an originator available for this
notification.originator - New value for the property.public Notification.Builder setRetriable(java.lang.Boolean retriable)
Set for the notification when a retriable error was
reported by the task.retriable - New value for the property.public Notification build()