public static final class DeploymentTypes.Info.Builder
extends java.lang.Object
DeploymentTypes.Info.| Constructor and Description |
|---|
Builder(ApplianceState state,
LocalizableMessage description,
java.lang.String service,
java.lang.String operation,
Status status,
boolean cancelable)
Constructor with parameters for the required properties of
DeploymentTypes.Info. |
| Modifier and Type | Method and Description |
|---|---|
DeploymentTypes.Info |
build() |
DeploymentTypes.Info.Builder |
setEndTime(java.util.Calendar endTime)
Time when the operation is completed.
|
DeploymentTypes.Info.Builder |
setError(ApiError error)
Description of the error if the operation status is "FAILED".
|
DeploymentTypes.Info.Builder |
setParent(java.lang.String parent)
Parent of the current task.
|
DeploymentTypes.Info.Builder |
setProgress(Progress progress)
The progress info of the current appliance status.
|
DeploymentTypes.Info.Builder |
setStartTime(java.util.Calendar startTime)
Time when the operation is started.
|
DeploymentTypes.Info.Builder |
setSubtaskOrder(java.util.List<java.lang.String> subtaskOrder)
The ordered list of subtasks for this deployment operation.
|
DeploymentTypes.Info.Builder |
setSubtasks(java.util.Map<java.lang.String,DeploymentTypes.Task> subtasks)
The map of the deployment subtasks and their status infomation.
|
DeploymentTypes.Info.Builder |
setTarget(DynamicID target)
Identifier of the target created by the operation or an existing one the
operation performed on.
|
DeploymentTypes.Info.Builder |
setUser(java.lang.String user)
Name of the user who performed the operation.
|
public Builder(ApplianceState state, LocalizableMessage description, java.lang.String service, java.lang.String operation, Status status, boolean cancelable)
DeploymentTypes.Info.public DeploymentTypes.Info.Builder setProgress(Progress progress)
#status is one of Status.RUNNING, Status.BLOCKED, Status.SUCCEEDED, or Status.FAILED.progress - New value for the property.public DeploymentTypes.Info.Builder setSubtaskOrder(java.util.List<java.lang.String> subtaskOrder)
Set when the appliance state is RUNNING_IN_PROGRESS,
FAILED, CANCELLED and SUCCEEDED.subtaskOrder - New value for the property.public DeploymentTypes.Info.Builder setSubtasks(java.util.Map<java.lang.String,DeploymentTypes.Task> subtasks)
Set when the appliance state is RUNNING_IN_PROGRESS,
FAILED, CANCELLED and SUCCEEDED.subtasks - New value for the property.public DeploymentTypes.Info.Builder setParent(java.lang.String parent)
null if the task has no parent.parent - New value for the property.
When clients pass a value of this class as a parameter, the property must be an
identifier for the resource type: com.vmware.cis.task. When methods
return a value of this class as a return value, the property will be an
identifier for the resource type: com.vmware.cis.task.public DeploymentTypes.Info.Builder setTarget(DynamicID target)
null if the operation has no target or multiple
targets.target - New value for the property.public DeploymentTypes.Info.Builder setError(ApiError error)
null the description of why the operation failed will be included in
the result of the operation (see Info.getResult()).error - New value for the property.public DeploymentTypes.Info.Builder setStartTime(java.util.Calendar startTime)
getStatus() is one of Status.RUNNING, Status.BLOCKED, Status.SUCCEEDED, or Status.FAILED.startTime - New value for the property.public DeploymentTypes.Info.Builder setEndTime(java.util.Calendar endTime)
getStatus() is one of Status.SUCCEEDED or Status.FAILED.endTime - New value for the property.public DeploymentTypes.Info.Builder setUser(java.lang.String user)
null if the operation is performed by the system.user - New value for the property.public DeploymentTypes.Info build()