public static final class DeploymentTypes.Task
extends java.lang.Object
implements java.io.Serializable, com.vmware.vapi.bindings.StaticStructure
Task
class contains properties to describe a particular deployment
task. This class was added in vSphere API 6.7.Modifier and Type | Class and Description |
---|---|
static class |
DeploymentTypes.Task.Builder
Builder class for
DeploymentTypes.Task . |
Modifier and Type | Field and Description |
---|---|
protected com.vmware.vapi.data.StructValue |
__dynamicStructureFields |
Modifier | Constructor and Description |
---|---|
|
Task()
Default constructor.
|
protected |
Task(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 DeploymentTypes.Task |
_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 DeploymentTypes.Task |
_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()
The progress info of this deployment task.
|
Notifications |
getResult()
Result 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.
|
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)
The progress info of this deployment task.
|
void |
setResult(Notifications result)
Result 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 |
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 Task()
protected Task(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 Notifications getResult()
null
if result is not available at the current
step of the task.public void setResult(Notifications result)
null
if result is not available at the current
step of the task.result
- 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.StaticStructure
public com.vmware.vapi.data.StructValue _getDataValue()
_getDataValue
in interface com.vmware.vapi.bindings.Structure
protected void _updateDataValue(com.vmware.vapi.data.StructValue structValue)
public void _validate()
_validate
in interface com.vmware.vapi.bindings.StaticStructure
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in interface com.vmware.vapi.bindings.StaticStructure
toString
in class java.lang.Object
public boolean _hasTypeNameOf(java.lang.Class<? extends com.vmware.vapi.bindings.Structure> clazz)
_hasTypeNameOf
in interface com.vmware.vapi.bindings.Structure
public <T extends com.vmware.vapi.bindings.Structure> T _convertTo(java.lang.Class<T> clazz)
_convertTo
in interface com.vmware.vapi.bindings.Structure
public void _setDynamicField(java.lang.String fieldName, com.vmware.vapi.data.DataValue fieldValue)
_setDynamicField
in interface com.vmware.vapi.bindings.StaticStructure
public com.vmware.vapi.data.DataValue _getDynamicField(java.lang.String fieldName)
_getDynamicField
in interface com.vmware.vapi.bindings.StaticStructure
public java.util.Set<java.lang.String> _getDynamicFieldNames()
_getDynamicFieldNames
in interface com.vmware.vapi.bindings.StaticStructure
public 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.Structure
public static java.lang.String _getCanonicalTypeName()
_getCanonicalName()
.public static DeploymentTypes.Task _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.StructType
public static DeploymentTypes.Task _newInstance2(com.vmware.vapi.data.StructValue structValue)