public static final class JobTypes.Info.Builder
extends java.lang.Object
JobTypes.Info.| Constructor and Description |
|---|
Builder(LocalizableMessage description,
java.lang.String service,
java.lang.String operation,
JobTypes.Status status,
java.util.List<LocalizableMessage> messages,
long progress)
Constructor with parameters for the required properties of
JobTypes.Info. |
| Modifier and Type | Method and Description |
|---|---|
JobTypes.Info |
build() |
JobTypes.Info.Builder |
setCancelable(java.lang.Boolean cancelable)
Flag to indicate whether or not the operation can be cancelled.
|
JobTypes.Info.Builder |
setEndTime(java.util.Calendar endTime)
Time when the operation is completed.
|
JobTypes.Info.Builder |
setError(ApiError error)
Description of the error if the operation status is "FAILED".
|
JobTypes.Info.Builder |
setParent(java.lang.String parent)
Parent of the current task.
|
JobTypes.Info.Builder |
setStartTime(java.util.Calendar startTime)
Time when the operation is started.
|
JobTypes.Info.Builder |
setTarget(DynamicID target)
Identifier of the target resource the operation modifies.
|
public Builder(LocalizableMessage description, java.lang.String service, java.lang.String operation, JobTypes.Status status, java.util.List<LocalizableMessage> messages, long progress)
JobTypes.Info.public JobTypes.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.appliance.recovery.reconciliation.job. When methods return a value
of this class as a return value, the property will be an identifier for the
resource type: com.vmware.appliance.recovery.reconciliation.job.public JobTypes.Info.Builder setTarget(DynamicID target)
null if the task has multiple targets or no
target.target - New value for the property.public JobTypes.Info.Builder setCancelable(java.lang.Boolean cancelable)
null, the operation cannot be canceled.cancelable - New value for the property.public JobTypes.Info.Builder setError(ApiError error)
null the description of why the operation failed will be included in
the result of the operation (see Info#result).error - New value for the property.public JobTypes.Info.Builder setStartTime(java.util.Calendar startTime)
getStatus() is one of JobTypes.Status.RUNNING, JobTypes.Status.SUCCEEDED, or
JobTypes.Status.FAILED.startTime - New value for the property.public JobTypes.Info.Builder setEndTime(java.util.Calendar endTime)
getStatus() is one of JobTypes.Status.SUCCEEDED or
JobTypes.Status.FAILED.endTime - New value for the property.public JobTypes.Info build()