public static final class TaskProperties.Builder
extends java.lang.Object
TaskProperties
.Constructor and Description |
---|
Builder()
Constructor with parameters for the required properties of
TaskProperties . |
Modifier and Type | Method and Description |
---|---|
TaskProperties |
build() |
TaskProperties.Builder |
setAsyncResponseAvailable(java.lang.Boolean asyncResponseAvailable)
True if response for asynchronous request is available
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
TaskProperties.Builder |
setCancelable(java.lang.Boolean cancelable)
True if this task can be canceled
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
TaskProperties.Builder |
setDescription(java.lang.String description)
Description of the task
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
TaskProperties.Builder |
setEndTime(java.lang.Long endTime)
The end time of the task in epoch milliseconds 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.
|
TaskProperties.Builder |
setId(java.lang.String id)
Identifier for this task
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
TaskProperties.Builder |
setLinks(java.util.List<ResourceLink> links)
The server will populate this field when returing the resource.
|
TaskProperties.Builder |
setMessage(java.lang.String message)
A message describing the disposition of the task
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
TaskProperties.Builder |
setProgress(java.lang.Long progress)
Task progress if known, from 0 to 100 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.
|
TaskProperties.Builder |
setRequestMethod(java.lang.String requestMethod)
HTTP request method
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
TaskProperties.Builder |
setRequestUri(java.lang.String requestUri)
URI of the method invocation that spawned this task
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
TaskProperties.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.
|
TaskProperties.Builder |
setSelf(SelfResourceLink self) |
TaskProperties.Builder |
setStartTime(java.lang.Long startTime)
The start time of the task in epoch milliseconds 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.
|
TaskProperties.Builder |
setStatus(java.lang.String status)
Possible values are:
TaskProperties.STATUS_RUNNING TaskProperties.STATUS_ERROR TaskProperties.STATUS_SUCCESS TaskProperties.STATUS_CANCELING TaskProperties.STATUS_CANCELED TaskProperties.STATUS_KILLED Current status of
the task
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored. |
TaskProperties.Builder |
setUser(java.lang.String user)
Name of the user who created this task
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
public Builder()
TaskProperties
.public TaskProperties.Builder setLinks(java.util.List<ResourceLink> links)
links
- New value for the property.public TaskProperties.Builder setSchema(java.lang.String schema)
schema
- New value for the property.public TaskProperties.Builder setSelf(SelfResourceLink self)
self
- New value for the property.public TaskProperties.Builder setAsyncResponseAvailable(java.lang.Boolean asyncResponseAvailable)
asyncResponseAvailable
- New value for the property.public TaskProperties.Builder setCancelable(java.lang.Boolean cancelable)
cancelable
- New value for the property.public TaskProperties.Builder setDescription(java.lang.String description)
description
- New value for the property.public TaskProperties.Builder setEndTime(java.lang.Long endTime)
endTime
- New value for the property.public TaskProperties.Builder setId(java.lang.String id)
id
- New value for the property.public TaskProperties.Builder setMessage(java.lang.String message)
message
- New value for the property.public TaskProperties.Builder setProgress(java.lang.Long progress)
progress
- New value for the property.public TaskProperties.Builder setRequestMethod(java.lang.String requestMethod)
requestMethod
- New value for the property.public TaskProperties.Builder setRequestUri(java.lang.String requestUri)
requestUri
- New value for the property.public TaskProperties.Builder setStartTime(java.lang.Long startTime)
startTime
- New value for the property.public TaskProperties.Builder setStatus(java.lang.String status)
status
- New value for the property.public TaskProperties.Builder setUser(java.lang.String user)
user
- New value for the property.public TaskProperties build()