Package com.vmware.nsx_policy.model
Class TaskProperties.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.TaskProperties.Builder
-
- Enclosing class:
- TaskProperties
public static final class TaskProperties.Builder extends java.lang.Object
Builder class forTaskProperties
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Constructor with parameters for the required properties ofTaskProperties
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Constructor Detail
-
Builder
public Builder()
Constructor with parameters for the required properties ofTaskProperties
.
-
-
Method Detail
-
setLinks
public TaskProperties.Builder setLinks(java.util.List<ResourceLink> links)
The server will populate this field when returing the resource. Ignored on PUT and POST. This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
links
- New value for the property.
-
setSchema
public 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.- Parameters:
schema
- New value for the property.
-
setSelf
public TaskProperties.Builder setSelf(SelfResourceLink self)
- Parameters:
self
- New value for the property.
-
setAsyncResponseAvailable
public 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.- Parameters:
asyncResponseAvailable
- New value for the property.
-
setCancelable
public 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.- Parameters:
cancelable
- New value for the property.
-
setDescription
public 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.- Parameters:
description
- New value for the property.
-
setEndTime
public 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.- Parameters:
endTime
- New value for the property.
-
setId
public 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.- Parameters:
id
- New value for the property.
-
setMessage
public 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.- Parameters:
message
- New value for the property.
-
setProgress
public 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.- Parameters:
progress
- New value for the property.
-
setRequestMethod
public 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.- Parameters:
requestMethod
- New value for the property.
-
setRequestUri
public 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.- Parameters:
requestUri
- New value for the property.
-
setStartTime
public 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.- Parameters:
startTime
- New value for the property.
-
setStatus
public TaskProperties.Builder setStatus(java.lang.String status)
Possible values are: 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.- Parameters:
status
- New value for the property.
-
setUser
public 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.- Parameters:
user
- New value for the property.
-
build
public TaskProperties build()
-
-