public final class TaskInfo
extends java.lang.Object
implements java.io.Serializable, com.vmware.vapi.bindings.StaticStructure
TaskInfo class contains information about an appliance task and the
subtasks of which it consists. This class was added in vSphere API 6.7.| Modifier and Type | Class and Description |
|---|---|
static class |
TaskInfo.Builder
Builder class for
TaskInfo. |
| Modifier and Type | Field and Description |
|---|---|
protected com.vmware.vapi.data.StructValue |
__dynamicStructureFields |
| Modifier | Constructor and Description |
|---|---|
|
TaskInfo()
Default constructor.
|
protected |
TaskInfo(com.vmware.vapi.data.StructValue __dynamicStructureFields) |
| Modifier and Type | Method and Description |
|---|---|
<T extends com.vmware.vapi.bindings.Structure> |
_convertTo(java.lang.Class<T> clazz) |
java.lang.String |
_getCanonicalName() |
static java.lang.String |
_getCanonicalTypeName()
Returns the canonical type name.
|
static com.vmware.vapi.bindings.type.StructType |
_getClassType()
WARNING: Internal method, subject to change in future versions.
|
com.vmware.vapi.data.StructValue |
_getDataValue() |
com.vmware.vapi.data.DataValue |
_getDynamicField(java.lang.String fieldName) |
java.util.Set<java.lang.String> |
_getDynamicFieldNames() |
com.vmware.vapi.bindings.type.StructType |
_getType() |
boolean |
_hasTypeNameOf(java.lang.Class<? extends com.vmware.vapi.bindings.Structure> clazz) |
static TaskInfo |
_newInstance(com.vmware.vapi.data.StructValue structValue)
WARNING: Internal method, subject to change in future versions.
Returns new instance of this binding class and injects the provided data value. WARNING: The returned object is not fully initialized. |
static TaskInfo |
_newInstance2(com.vmware.vapi.data.StructValue structValue)
WARNING: Internal method, subject to change in future versions.
Serves as a versioning mechanism. |
void |
_setDynamicField(java.lang.String fieldName,
com.vmware.vapi.data.DataValue fieldValue) |
protected void |
_updateDataValue(com.vmware.vapi.data.StructValue structValue) |
void |
_validate() |
boolean |
equals(java.lang.Object obj) |
boolean |
getCancelable()
Flag to indicate whether or not the operation can be cancelled.
|
LocalizableMessage |
getDescription()
Description of the operation associated with the task.
|
java.util.Calendar |
getEndTime()
Time when the operation is completed.
|
com.vmware.vapi.bindings.ApiError |
getError()
Description of the error if the operation status is "FAILED".
|
java.lang.String |
getOperation()
Identifier of the operation associated with the task.
|
java.lang.String |
getParent()
Parent of the current task.
|
Progress |
getProgress()
Progress of the task.
|
java.lang.String |
getService()
Identifier of the service containing the operation.
|
java.util.Calendar |
getStartTime()
Time when the operation is started.
|
Status |
getStatus()
Status of the operation associated with the task.
|
java.util.List<java.lang.String> |
getSubtaskOrder()
List of tasks that make up this appliance task in the order they are being run.
|
java.util.Map<java.lang.String,SubtaskInfo> |
getSubtasks()
Information about the subtasks that this appliance task consists of.
|
DynamicID |
getTarget()
Identifier of the target created by the operation or an existing one the
operation performed on.
|
java.lang.String |
getUser()
Name of the user who performed the operation.
|
int |
hashCode() |
void |
setCancelable(boolean cancelable)
Flag to indicate whether or not the operation can be cancelled.
|
void |
setDescription(LocalizableMessage description)
Description of the operation associated with the task.
|
void |
setEndTime(java.util.Calendar endTime)
Time when the operation is completed.
|
void |
setError(com.vmware.vapi.bindings.ApiError error)
Description of the error if the operation status is "FAILED".
|
void |
setOperation(java.lang.String operation)
Identifier of the operation associated with the task.
|
void |
setParent(java.lang.String parent)
Parent of the current task.
|
void |
setProgress(Progress progress)
Progress of the task.
|
void |
setService(java.lang.String service)
Identifier of the service containing the operation.
|
void |
setStartTime(java.util.Calendar startTime)
Time when the operation is started.
|
void |
setStatus(Status status)
Status of the operation associated with the task.
|
void |
setSubtaskOrder(java.util.List<java.lang.String> subtaskOrder)
List of tasks that make up this appliance task in the order they are being run.
|
void |
setSubtasks(java.util.Map<java.lang.String,SubtaskInfo> subtasks)
Information about the subtasks that this appliance task consists of.
|
void |
setTarget(DynamicID target)
Identifier of the target created by the operation or an existing one the
operation performed on.
|
void |
setUser(java.lang.String user)
Name of the user who performed the operation.
|
java.lang.String |
toString() |
protected com.vmware.vapi.data.StructValue __dynamicStructureFields
public TaskInfo()
protected TaskInfo(com.vmware.vapi.data.StructValue __dynamicStructureFields)
public Progress getProgress()
CommonInfo#status is one of Status.RUNNING, Status.BLOCKED, Status.SUCCEEDED, or Status.FAILED.public void setProgress(Progress progress)
CommonInfo#status is one of Status.RUNNING, Status.BLOCKED, Status.SUCCEEDED, or Status.FAILED.progress - New value for the property.public java.util.List<java.lang.String> getSubtaskOrder()
public void setSubtaskOrder(java.util.List<java.lang.String> subtaskOrder)
subtaskOrder - New value for the property.public java.util.Map<java.lang.String,SubtaskInfo> getSubtasks()
public void setSubtasks(java.util.Map<java.lang.String,SubtaskInfo> subtasks)
subtasks - New value for the property.public LocalizableMessage getDescription()
public void setDescription(LocalizableMessage description)
description - New value for the property.public java.lang.String getService()
com.vmware.vapi.service. When methods
return a value of this class as a return value, the property will be an
identifier for the resource type: com.vmware.vapi.service.public void setService(java.lang.String service)
service - 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.vapi.service. When methods
return a value of this class as a return value, the property will be an
identifier for the resource type: com.vmware.vapi.service.public java.lang.String getOperation()
com.vmware.vapi.operation. When
methods return a value of this class as a return value, the property will be an
identifier for the resource type: com.vmware.vapi.operation.public void setOperation(java.lang.String operation)
operation - 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.vapi.operation. When
methods return a value of this class as a return value, the property will be an
identifier for the resource type: com.vmware.vapi.operation.public java.lang.String getParent()
null if the task has no parent.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 void 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 DynamicID getTarget()
null if the operation has no target or multiple
targets.public void setTarget(DynamicID target)
null if the operation has no target or multiple
targets.target - New value for the property.public Status getStatus()
public void setStatus(Status status)
status - New value for the property.public boolean getCancelable()
public void setCancelable(boolean cancelable)
cancelable - New value for the property.public com.vmware.vapi.bindings.ApiError getError()
null the description of why the operation failed will be included in
the result of the operation (see Info.getResult()).public void setError(com.vmware.vapi.bindings.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 java.util.Calendar getStartTime()
getStatus() is one of Status.RUNNING, Status.BLOCKED, Status.SUCCEEDED, or Status.FAILED.public void 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 java.util.Calendar getEndTime()
getStatus() is one of Status.SUCCEEDED or Status.FAILED.public void setEndTime(java.util.Calendar endTime)
getStatus() is one of Status.SUCCEEDED or Status.FAILED.endTime - New value for the property.public java.lang.String getUser()
null if the operation is performed by the system.public void setUser(java.lang.String user)
null if the operation is performed by the system.user - New value for the property.public com.vmware.vapi.bindings.type.StructType _getType()
_getType in interface com.vmware.vapi.bindings.StaticStructurepublic com.vmware.vapi.data.StructValue _getDataValue()
_getDataValue in interface com.vmware.vapi.bindings.Structureprotected void _updateDataValue(com.vmware.vapi.data.StructValue structValue)
public void _validate()
_validate in interface com.vmware.vapi.bindings.StaticStructurepublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in interface com.vmware.vapi.bindings.StaticStructuretoString in class java.lang.Objectpublic boolean _hasTypeNameOf(java.lang.Class<? extends com.vmware.vapi.bindings.Structure> clazz)
_hasTypeNameOf in interface com.vmware.vapi.bindings.Structurepublic <T extends com.vmware.vapi.bindings.Structure> T _convertTo(java.lang.Class<T> clazz)
_convertTo in interface com.vmware.vapi.bindings.Structurepublic void _setDynamicField(java.lang.String fieldName,
com.vmware.vapi.data.DataValue fieldValue)
_setDynamicField in interface com.vmware.vapi.bindings.StaticStructurepublic com.vmware.vapi.data.DataValue _getDynamicField(java.lang.String fieldName)
_getDynamicField in interface com.vmware.vapi.bindings.StaticStructurepublic java.util.Set<java.lang.String> _getDynamicFieldNames()
_getDynamicFieldNames in interface com.vmware.vapi.bindings.StaticStructurepublic static com.vmware.vapi.bindings.type.StructType _getClassType()
StructType instance representing the static bindings
type for this Structure.public java.lang.String _getCanonicalName()
_getCanonicalName in interface com.vmware.vapi.bindings.Structurepublic static java.lang.String _getCanonicalTypeName()
_getCanonicalName().public static TaskInfo _newInstance(com.vmware.vapi.data.StructValue structValue)
structValue - the source of the data contained in the binding object. Could
contain more data than fields of this class can describe i.e.
newer version of the binding object. Could be null.StructTypepublic static TaskInfo _newInstance2(com.vmware.vapi.data.StructValue structValue)