@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DescribeTaskResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
DescribeTaskResult() |
Modifier and Type | Method and Description |
---|---|
DescribeTaskResult |
addTagsEntry(String key,
String value)
Add a single Tags entry
|
DescribeTaskResult |
clearTagsEntries()
Removes all the entries added into Tags.
|
DescribeTaskResult |
clone() |
boolean |
equals(Object obj) |
Date |
getCompletedAt()
When the task was completed.
|
Date |
getCreatedAt()
When the
CreateTask operation was called. |
String |
getDescription()
The description provided of the task and managed devices.
|
Date |
getLastUpdatedAt()
When the state of the task was last updated.
|
String |
getState()
The current state of the task.
|
Map<String,String> |
getTags()
Optional metadata that you assign to a resource.
|
List<String> |
getTargets()
The managed devices that the task was sent to.
|
String |
getTaskArn()
The Amazon Resource Name (ARN) of the task.
|
String |
getTaskId()
The ID of the task.
|
int |
hashCode() |
void |
setCompletedAt(Date completedAt)
When the task was completed.
|
void |
setCreatedAt(Date createdAt)
When the
CreateTask operation was called. |
void |
setDescription(String description)
The description provided of the task and managed devices.
|
void |
setLastUpdatedAt(Date lastUpdatedAt)
When the state of the task was last updated.
|
void |
setState(String state)
The current state of the task.
|
void |
setTags(Map<String,String> tags)
Optional metadata that you assign to a resource.
|
void |
setTargets(Collection<String> targets)
The managed devices that the task was sent to.
|
void |
setTaskArn(String taskArn)
The Amazon Resource Name (ARN) of the task.
|
void |
setTaskId(String taskId)
The ID of the task.
|
String |
toString()
Returns a string representation of this object.
|
DescribeTaskResult |
withCompletedAt(Date completedAt)
When the task was completed.
|
DescribeTaskResult |
withCreatedAt(Date createdAt)
When the
CreateTask operation was called. |
DescribeTaskResult |
withDescription(String description)
The description provided of the task and managed devices.
|
DescribeTaskResult |
withLastUpdatedAt(Date lastUpdatedAt)
When the state of the task was last updated.
|
DescribeTaskResult |
withState(String state)
The current state of the task.
|
DescribeTaskResult |
withState(TaskState state)
The current state of the task.
|
DescribeTaskResult |
withTags(Map<String,String> tags)
Optional metadata that you assign to a resource.
|
DescribeTaskResult |
withTargets(Collection<String> targets)
The managed devices that the task was sent to.
|
DescribeTaskResult |
withTargets(String... targets)
The managed devices that the task was sent to.
|
DescribeTaskResult |
withTaskArn(String taskArn)
The Amazon Resource Name (ARN) of the task.
|
DescribeTaskResult |
withTaskId(String taskId)
The ID of the task.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setCompletedAt(Date completedAt)
When the task was completed.
completedAt
- When the task was completed.public Date getCompletedAt()
When the task was completed.
public DescribeTaskResult withCompletedAt(Date completedAt)
When the task was completed.
completedAt
- When the task was completed.public void setCreatedAt(Date createdAt)
When the CreateTask
operation was called.
createdAt
- When the CreateTask
operation was called.public Date getCreatedAt()
When the CreateTask
operation was called.
CreateTask
operation was called.public DescribeTaskResult withCreatedAt(Date createdAt)
When the CreateTask
operation was called.
createdAt
- When the CreateTask
operation was called.public void setDescription(String description)
The description provided of the task and managed devices.
description
- The description provided of the task and managed devices.public String getDescription()
The description provided of the task and managed devices.
public DescribeTaskResult withDescription(String description)
The description provided of the task and managed devices.
description
- The description provided of the task and managed devices.public void setLastUpdatedAt(Date lastUpdatedAt)
When the state of the task was last updated.
lastUpdatedAt
- When the state of the task was last updated.public Date getLastUpdatedAt()
When the state of the task was last updated.
public DescribeTaskResult withLastUpdatedAt(Date lastUpdatedAt)
When the state of the task was last updated.
lastUpdatedAt
- When the state of the task was last updated.public void setState(String state)
The current state of the task.
state
- The current state of the task.TaskState
public String getState()
The current state of the task.
TaskState
public DescribeTaskResult withState(String state)
The current state of the task.
state
- The current state of the task.TaskState
public DescribeTaskResult withState(TaskState state)
The current state of the task.
state
- The current state of the task.TaskState
public Map<String,String> getTags()
Optional metadata that you assign to a resource. You can use tags to categorize a resource in different ways, such as by purpose, owner, or environment.
public void setTags(Map<String,String> tags)
Optional metadata that you assign to a resource. You can use tags to categorize a resource in different ways, such as by purpose, owner, or environment.
tags
- Optional metadata that you assign to a resource. You can use tags to categorize a resource in different
ways, such as by purpose, owner, or environment.public DescribeTaskResult withTags(Map<String,String> tags)
Optional metadata that you assign to a resource. You can use tags to categorize a resource in different ways, such as by purpose, owner, or environment.
tags
- Optional metadata that you assign to a resource. You can use tags to categorize a resource in different
ways, such as by purpose, owner, or environment.public DescribeTaskResult addTagsEntry(String key, String value)
public DescribeTaskResult clearTagsEntries()
public List<String> getTargets()
The managed devices that the task was sent to.
public void setTargets(Collection<String> targets)
The managed devices that the task was sent to.
targets
- The managed devices that the task was sent to.public DescribeTaskResult withTargets(String... targets)
The managed devices that the task was sent to.
NOTE: This method appends the values to the existing list (if any). Use
setTargets(java.util.Collection)
or withTargets(java.util.Collection)
if you want to override
the existing values.
targets
- The managed devices that the task was sent to.public DescribeTaskResult withTargets(Collection<String> targets)
The managed devices that the task was sent to.
targets
- The managed devices that the task was sent to.public void setTaskArn(String taskArn)
The Amazon Resource Name (ARN) of the task.
taskArn
- The Amazon Resource Name (ARN) of the task.public String getTaskArn()
The Amazon Resource Name (ARN) of the task.
public DescribeTaskResult withTaskArn(String taskArn)
The Amazon Resource Name (ARN) of the task.
taskArn
- The Amazon Resource Name (ARN) of the task.public void setTaskId(String taskId)
The ID of the task.
taskId
- The ID of the task.public String getTaskId()
The ID of the task.
public DescribeTaskResult withTaskId(String taskId)
The ID of the task.
taskId
- The ID of the task.public String toString()
toString
in class Object
Object.toString()
public DescribeTaskResult clone()