public class RunTaskRequest extends AmazonWebServiceRequest implements Serializable
RunTask operation
.
Start a task using random placement and the default Amazon ECS
scheduler. If you want to use your own scheduler or place a task on a
specific container instance, use StartTask
instead.
NOOP
Constructor and Description |
---|
RunTaskRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getCluster()
The short name or full Amazon Resource Name (ARN) of the cluster that
you want to run your task on.
|
Integer |
getCount()
The number of instances of the specified task that you would like to
place on your cluster.
|
TaskOverride |
getOverrides() |
String |
getTaskDefinition()
The
family and revision
(family:revision ) or full Amazon Resource Name (ARN) of
the task definition that you want to run. |
int |
hashCode() |
void |
setCluster(String cluster)
The short name or full Amazon Resource Name (ARN) of the cluster that
you want to run your task on.
|
void |
setCount(Integer count)
The number of instances of the specified task that you would like to
place on your cluster.
|
void |
setOverrides(TaskOverride overrides) |
void |
setTaskDefinition(String taskDefinition)
The
family and revision
(family:revision ) or full Amazon Resource Name (ARN) of
the task definition that you want to run. |
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
RunTaskRequest |
withCluster(String cluster)
The short name or full Amazon Resource Name (ARN) of the cluster that
you want to run your task on.
|
RunTaskRequest |
withCount(Integer count)
The number of instances of the specified task that you would like to
place on your cluster.
|
RunTaskRequest |
withOverrides(TaskOverride overrides)
Returns a reference to this object so that method calls can be chained together.
|
RunTaskRequest |
withTaskDefinition(String taskDefinition)
The
family and revision
(family:revision ) or full Amazon Resource Name (ARN) of
the task definition that you want to run. |
copyBaseTo, copyPrivateRequestParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public String getCluster()
public void setCluster(String cluster)
cluster
- The short name or full Amazon Resource Name (ARN) of the cluster that
you want to run your task on. If you do not specify a cluster, the
default cluster is assumed..public RunTaskRequest withCluster(String cluster)
Returns a reference to this object so that method calls can be chained together.
cluster
- The short name or full Amazon Resource Name (ARN) of the cluster that
you want to run your task on. If you do not specify a cluster, the
default cluster is assumed..public String getTaskDefinition()
family
and revision
(family:revision
) or full Amazon Resource Name (ARN) of
the task definition that you want to run.family
and revision
(family:revision
) or full Amazon Resource Name (ARN) of
the task definition that you want to run.public void setTaskDefinition(String taskDefinition)
family
and revision
(family:revision
) or full Amazon Resource Name (ARN) of
the task definition that you want to run.taskDefinition
- The family
and revision
(family:revision
) or full Amazon Resource Name (ARN) of
the task definition that you want to run.public RunTaskRequest withTaskDefinition(String taskDefinition)
family
and revision
(family:revision
) or full Amazon Resource Name (ARN) of
the task definition that you want to run.
Returns a reference to this object so that method calls can be chained together.
taskDefinition
- The family
and revision
(family:revision
) or full Amazon Resource Name (ARN) of
the task definition that you want to run.public TaskOverride getOverrides()
public void setOverrides(TaskOverride overrides)
overrides
- public RunTaskRequest withOverrides(TaskOverride overrides)
Returns a reference to this object so that method calls can be chained together.
overrides
- public Integer getCount()
public void setCount(Integer count)
count
- The number of instances of the specified task that you would like to
place on your cluster.public RunTaskRequest withCount(Integer count)
Returns a reference to this object so that method calls can be chained together.
count
- The number of instances of the specified task that you would like to
place on your cluster.public String toString()
toString
in class Object
Object.toString()
Copyright © 2015. All rights reserved.