public static final class ApplianceManagementTaskProperties.Builder
extends java.lang.Object
ApplianceManagementTaskProperties
.Constructor and Description |
---|
Builder()
Constructor with parameters for the required properties of
ApplianceManagementTaskProperties . |
Modifier and Type | Method and Description |
---|---|
ApplianceManagementTaskProperties |
build() |
ApplianceManagementTaskProperties.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.
|
ApplianceManagementTaskProperties.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.
|
ApplianceManagementTaskProperties.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.
|
ApplianceManagementTaskProperties.Builder |
setDetails(com.vmware.vapi.bindings.Structure details)
Details about the task if known
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
ApplianceManagementTaskProperties.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.
|
ApplianceManagementTaskProperties.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.
|
ApplianceManagementTaskProperties.Builder |
setLinks(java.util.List<ResourceLink> links)
The server will populate this field when returing the resource.
|
ApplianceManagementTaskProperties.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.
|
ApplianceManagementTaskProperties.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.
|
ApplianceManagementTaskProperties.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.
|
ApplianceManagementTaskProperties.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.
|
ApplianceManagementTaskProperties.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.
|
ApplianceManagementTaskProperties.Builder |
setSelf(SelfResourceLink self) |
ApplianceManagementTaskProperties.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.
|
ApplianceManagementTaskProperties.Builder |
setStatus(java.lang.String status)
Possible values are:
ApplianceManagementTaskProperties.STATUS_RUNNING
ApplianceManagementTaskProperties.STATUS_ERROR
ApplianceManagementTaskProperties.STATUS_SUCCESS
ApplianceManagementTaskProperties.STATUS_CANCELING
ApplianceManagementTaskProperties.STATUS_CANCELED
ApplianceManagementTaskProperties.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. |
ApplianceManagementTaskProperties.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()
ApplianceManagementTaskProperties
.public ApplianceManagementTaskProperties.Builder setLinks(java.util.List<ResourceLink> links)
links
- New value for the property.public ApplianceManagementTaskProperties.Builder setSchema(java.lang.String schema)
schema
- New value for the property.public ApplianceManagementTaskProperties.Builder setSelf(SelfResourceLink self)
self
- New value for the property.public ApplianceManagementTaskProperties.Builder setAsyncResponseAvailable(java.lang.Boolean asyncResponseAvailable)
asyncResponseAvailable
- New value for the property.public ApplianceManagementTaskProperties.Builder setCancelable(java.lang.Boolean cancelable)
cancelable
- New value for the property.public ApplianceManagementTaskProperties.Builder setDescription(java.lang.String description)
description
- New value for the property.public ApplianceManagementTaskProperties.Builder setDetails(com.vmware.vapi.bindings.Structure details)
details
- New value for the property.public ApplianceManagementTaskProperties.Builder setEndTime(java.lang.Long endTime)
endTime
- New value for the property.public ApplianceManagementTaskProperties.Builder setId(java.lang.String id)
id
- New value for the property.public ApplianceManagementTaskProperties.Builder setMessage(java.lang.String message)
message
- New value for the property.public ApplianceManagementTaskProperties.Builder setProgress(java.lang.Long progress)
progress
- New value for the property.public ApplianceManagementTaskProperties.Builder setRequestMethod(java.lang.String requestMethod)
requestMethod
- New value for the property.public ApplianceManagementTaskProperties.Builder setRequestUri(java.lang.String requestUri)
requestUri
- New value for the property.public ApplianceManagementTaskProperties.Builder setStartTime(java.lang.Long startTime)
startTime
- New value for the property.public ApplianceManagementTaskProperties.Builder setStatus(java.lang.String status)
status
- New value for the property.public ApplianceManagementTaskProperties.Builder setUser(java.lang.String user)
user
- New value for the property.public ApplianceManagementTaskProperties build()