Class SubmitTaskStateChangeRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.ecs.model.SubmitTaskStateChangeRequest
-
- All Implemented Interfaces:
ReadLimitInfo
,Serializable
,Cloneable
public class SubmitTaskStateChangeRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description SubmitTaskStateChangeRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SubmitTaskStateChangeRequest
clone()
Creates a shallow clone of this request.boolean
equals(Object obj)
String
getCluster()
The short name or full Amazon Resource Name (ARN) of the cluster that hosts the task.String
getReason()
The reason for the state change request.String
getStatus()
The status of the state change request.String
getTask()
The task ID or full Amazon Resource Name (ARN) of the task in the state change request.int
hashCode()
void
setCluster(String cluster)
The short name or full Amazon Resource Name (ARN) of the cluster that hosts the task.void
setReason(String reason)
The reason for the state change request.void
setStatus(String status)
The status of the state change request.void
setTask(String task)
The task ID or full Amazon Resource Name (ARN) of the task in the state change request.String
toString()
Returns a string representation of this object; useful for testing and debugging.SubmitTaskStateChangeRequest
withCluster(String cluster)
The short name or full Amazon Resource Name (ARN) of the cluster that hosts the task.SubmitTaskStateChangeRequest
withReason(String reason)
The reason for the state change request.SubmitTaskStateChangeRequest
withStatus(String status)
The status of the state change request.SubmitTaskStateChangeRequest
withTask(String task)
The task ID or full Amazon Resource Name (ARN) of the task in the state change request.-
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
-
-
-
-
Method Detail
-
setCluster
public void setCluster(String cluster)
The short name or full Amazon Resource Name (ARN) of the cluster that hosts the task.
- Parameters:
cluster
- The short name or full Amazon Resource Name (ARN) of the cluster that hosts the task.
-
getCluster
public String getCluster()
The short name or full Amazon Resource Name (ARN) of the cluster that hosts the task.
- Returns:
- The short name or full Amazon Resource Name (ARN) of the cluster that hosts the task.
-
withCluster
public SubmitTaskStateChangeRequest withCluster(String cluster)
The short name or full Amazon Resource Name (ARN) of the cluster that hosts the task.
- Parameters:
cluster
- The short name or full Amazon Resource Name (ARN) of the cluster that hosts the task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setTask
public void setTask(String task)
The task ID or full Amazon Resource Name (ARN) of the task in the state change request.
- Parameters:
task
- The task ID or full Amazon Resource Name (ARN) of the task in the state change request.
-
getTask
public String getTask()
The task ID or full Amazon Resource Name (ARN) of the task in the state change request.
- Returns:
- The task ID or full Amazon Resource Name (ARN) of the task in the state change request.
-
withTask
public SubmitTaskStateChangeRequest withTask(String task)
The task ID or full Amazon Resource Name (ARN) of the task in the state change request.
- Parameters:
task
- The task ID or full Amazon Resource Name (ARN) of the task in the state change request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setStatus
public void setStatus(String status)
The status of the state change request.
- Parameters:
status
- The status of the state change request.
-
getStatus
public String getStatus()
The status of the state change request.
- Returns:
- The status of the state change request.
-
withStatus
public SubmitTaskStateChangeRequest withStatus(String status)
The status of the state change request.
- Parameters:
status
- The status of the state change request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setReason
public void setReason(String reason)
The reason for the state change request.
- Parameters:
reason
- The reason for the state change request.
-
getReason
public String getReason()
The reason for the state change request.
- Returns:
- The reason for the state change request.
-
withReason
public SubmitTaskStateChangeRequest withReason(String reason)
The reason for the state change request.
- Parameters:
reason
- The reason for the state change request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public SubmitTaskStateChangeRequest clone()
Description copied from class:AmazonWebServiceRequest
Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clone
in classAmazonWebServiceRequest
- See Also:
Object.clone()
-
-