public class StartTaskRequest extends AmazonWebServiceRequest implements Serializable
StartTask operation
.
Starts a new task from the specified task definition on the specified
container instance or instances. If you want to use the default Amazon
ECS scheduler to place your task, use RunTask
instead.
NOOP
Constructor and Description |
---|
StartTaskRequest() |
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 start your task on.
|
List<String> |
getContainerInstances()
The container instance UUIDs or full Amazon Resource Name (ARN)
entries for the container instances on which you would like to place
your task.
|
TaskOverride |
getOverrides() |
String |
getTaskDefinition()
The
family and revision
(family:revision ) or full Amazon Resource Name (ARN) of
the task definition that you want to start. |
int |
hashCode() |
void |
setCluster(String cluster)
The short name or full Amazon Resource Name (ARN) of the cluster that
you want to start your task on.
|
void |
setContainerInstances(Collection<String> containerInstances)
The container instance UUIDs or full Amazon Resource Name (ARN)
entries for the container instances on which you would like to place
your task.
|
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 start. |
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
StartTaskRequest |
withCluster(String cluster)
The short name or full Amazon Resource Name (ARN) of the cluster that
you want to start your task on.
|
StartTaskRequest |
withContainerInstances(Collection<String> containerInstances)
The container instance UUIDs or full Amazon Resource Name (ARN)
entries for the container instances on which you would like to place
your task.
|
StartTaskRequest |
withContainerInstances(String... containerInstances)
The container instance UUIDs or full Amazon Resource Name (ARN)
entries for the container instances on which you would like to place
your task.
|
StartTaskRequest |
withOverrides(TaskOverride overrides)
Returns a reference to this object so that method calls can be chained together.
|
StartTaskRequest |
withTaskDefinition(String taskDefinition)
The
family and revision
(family:revision ) or full Amazon Resource Name (ARN) of
the task definition that you want to start. |
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 start your task on. If you do not specify a cluster, the
default cluster is assumed..public StartTaskRequest 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 start 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 start.family
and revision
(family:revision
) or full Amazon Resource Name (ARN) of
the task definition that you want to start.public void setTaskDefinition(String taskDefinition)
family
and revision
(family:revision
) or full Amazon Resource Name (ARN) of
the task definition that you want to start.taskDefinition
- The family
and revision
(family:revision
) or full Amazon Resource Name (ARN) of
the task definition that you want to start.public StartTaskRequest withTaskDefinition(String taskDefinition)
family
and revision
(family:revision
) or full Amazon Resource Name (ARN) of
the task definition that you want to start.
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 start.public TaskOverride getOverrides()
public void setOverrides(TaskOverride overrides)
overrides
- public StartTaskRequest withOverrides(TaskOverride overrides)
Returns a reference to this object so that method calls can be chained together.
overrides
- public List<String> getContainerInstances()
public void setContainerInstances(Collection<String> containerInstances)
containerInstances
- The container instance UUIDs or full Amazon Resource Name (ARN)
entries for the container instances on which you would like to place
your task.public StartTaskRequest withContainerInstances(String... containerInstances)
Returns a reference to this object so that method calls can be chained together.
containerInstances
- The container instance UUIDs or full Amazon Resource Name (ARN)
entries for the container instances on which you would like to place
your task.public StartTaskRequest withContainerInstances(Collection<String> containerInstances)
Returns a reference to this object so that method calls can be chained together.
containerInstances
- The container instance UUIDs or full Amazon Resource Name (ARN)
entries for the container instances on which you would like to place
your task.public String toString()
toString
in class Object
Object.toString()
Copyright © 2015. All rights reserved.