@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ECSTaskSet extends Object implements Serializable, Cloneable, StructuredPojo
Information about a set of Amazon ECS tasks in an CodeDeploy deployment. An Amazon ECS task set includes details such as the desired number of tasks, how many tasks are running, and whether the task set serves production traffic. An CodeDeploy application that uses the Amazon ECS compute platform deploys a containerized application in an Amazon ECS service as a task set.
Constructor and Description |
---|
ECSTaskSet() |
Modifier and Type | Method and Description |
---|---|
ECSTaskSet |
clone() |
boolean |
equals(Object obj) |
Long |
getDesiredCount()
The number of tasks in a task set.
|
String |
getIdentifer()
A unique ID of an
ECSTaskSet . |
Long |
getPendingCount()
The number of tasks in the task set that are in the
PENDING status during an Amazon ECS deployment. |
Long |
getRunningCount()
The number of tasks in the task set that are in the
RUNNING status during an Amazon ECS deployment. |
String |
getStatus()
The status of the task set.
|
TargetGroupInfo |
getTargetGroup()
The target group associated with the task set.
|
String |
getTaskSetLabel()
A label that identifies whether the ECS task set is an original target (
BLUE ) or a replacement
target (GREEN ). |
Double |
getTrafficWeight()
The percentage of traffic served by this task set.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDesiredCount(Long desiredCount)
The number of tasks in a task set.
|
void |
setIdentifer(String identifer)
A unique ID of an
ECSTaskSet . |
void |
setPendingCount(Long pendingCount)
The number of tasks in the task set that are in the
PENDING status during an Amazon ECS deployment. |
void |
setRunningCount(Long runningCount)
The number of tasks in the task set that are in the
RUNNING status during an Amazon ECS deployment. |
void |
setStatus(String status)
The status of the task set.
|
void |
setTargetGroup(TargetGroupInfo targetGroup)
The target group associated with the task set.
|
void |
setTaskSetLabel(String taskSetLabel)
A label that identifies whether the ECS task set is an original target (
BLUE ) or a replacement
target (GREEN ). |
void |
setTrafficWeight(Double trafficWeight)
The percentage of traffic served by this task set.
|
String |
toString()
Returns a string representation of this object.
|
ECSTaskSet |
withDesiredCount(Long desiredCount)
The number of tasks in a task set.
|
ECSTaskSet |
withIdentifer(String identifer)
A unique ID of an
ECSTaskSet . |
ECSTaskSet |
withPendingCount(Long pendingCount)
The number of tasks in the task set that are in the
PENDING status during an Amazon ECS deployment. |
ECSTaskSet |
withRunningCount(Long runningCount)
The number of tasks in the task set that are in the
RUNNING status during an Amazon ECS deployment. |
ECSTaskSet |
withStatus(String status)
The status of the task set.
|
ECSTaskSet |
withTargetGroup(TargetGroupInfo targetGroup)
The target group associated with the task set.
|
ECSTaskSet |
withTaskSetLabel(String taskSetLabel)
A label that identifies whether the ECS task set is an original target (
BLUE ) or a replacement
target (GREEN ). |
ECSTaskSet |
withTaskSetLabel(TargetLabel taskSetLabel)
A label that identifies whether the ECS task set is an original target (
BLUE ) or a replacement
target (GREEN ). |
ECSTaskSet |
withTrafficWeight(Double trafficWeight)
The percentage of traffic served by this task set.
|
public void setIdentifer(String identifer)
A unique ID of an ECSTaskSet
.
identifer
- A unique ID of an ECSTaskSet
.public String getIdentifer()
A unique ID of an ECSTaskSet
.
ECSTaskSet
.public ECSTaskSet withIdentifer(String identifer)
A unique ID of an ECSTaskSet
.
identifer
- A unique ID of an ECSTaskSet
.public void setDesiredCount(Long desiredCount)
The number of tasks in a task set. During a deployment that uses the Amazon ECS compute type, CodeDeploy instructs Amazon ECS to create a new task set and uses this value to determine how many tasks to create. After the updated task set is created, CodeDeploy shifts traffic to the new task set.
desiredCount
- The number of tasks in a task set. During a deployment that uses the Amazon ECS compute type, CodeDeploy
instructs Amazon ECS to create a new task set and uses this value to determine how many tasks to create.
After the updated task set is created, CodeDeploy shifts traffic to the new task set.public Long getDesiredCount()
The number of tasks in a task set. During a deployment that uses the Amazon ECS compute type, CodeDeploy instructs Amazon ECS to create a new task set and uses this value to determine how many tasks to create. After the updated task set is created, CodeDeploy shifts traffic to the new task set.
public ECSTaskSet withDesiredCount(Long desiredCount)
The number of tasks in a task set. During a deployment that uses the Amazon ECS compute type, CodeDeploy instructs Amazon ECS to create a new task set and uses this value to determine how many tasks to create. After the updated task set is created, CodeDeploy shifts traffic to the new task set.
desiredCount
- The number of tasks in a task set. During a deployment that uses the Amazon ECS compute type, CodeDeploy
instructs Amazon ECS to create a new task set and uses this value to determine how many tasks to create.
After the updated task set is created, CodeDeploy shifts traffic to the new task set.public void setPendingCount(Long pendingCount)
The number of tasks in the task set that are in the PENDING
status during an Amazon ECS deployment.
A task in the PENDING
state is preparing to enter the RUNNING
state. A task set enters
the PENDING
status when it launches for the first time, or when it is restarted after being in the
STOPPED
state.
pendingCount
- The number of tasks in the task set that are in the PENDING
status during an Amazon ECS
deployment. A task in the PENDING
state is preparing to enter the RUNNING
state.
A task set enters the PENDING
status when it launches for the first time, or when it is
restarted after being in the STOPPED
state.public Long getPendingCount()
The number of tasks in the task set that are in the PENDING
status during an Amazon ECS deployment.
A task in the PENDING
state is preparing to enter the RUNNING
state. A task set enters
the PENDING
status when it launches for the first time, or when it is restarted after being in the
STOPPED
state.
PENDING
status during an Amazon ECS
deployment. A task in the PENDING
state is preparing to enter the RUNNING
state. A task set enters the PENDING
status when it launches for the first time, or when it
is restarted after being in the STOPPED
state.public ECSTaskSet withPendingCount(Long pendingCount)
The number of tasks in the task set that are in the PENDING
status during an Amazon ECS deployment.
A task in the PENDING
state is preparing to enter the RUNNING
state. A task set enters
the PENDING
status when it launches for the first time, or when it is restarted after being in the
STOPPED
state.
pendingCount
- The number of tasks in the task set that are in the PENDING
status during an Amazon ECS
deployment. A task in the PENDING
state is preparing to enter the RUNNING
state.
A task set enters the PENDING
status when it launches for the first time, or when it is
restarted after being in the STOPPED
state.public void setRunningCount(Long runningCount)
The number of tasks in the task set that are in the RUNNING
status during an Amazon ECS deployment.
A task in the RUNNING
state is running and ready for use.
runningCount
- The number of tasks in the task set that are in the RUNNING
status during an Amazon ECS
deployment. A task in the RUNNING
state is running and ready for use.public Long getRunningCount()
The number of tasks in the task set that are in the RUNNING
status during an Amazon ECS deployment.
A task in the RUNNING
state is running and ready for use.
RUNNING
status during an Amazon ECS
deployment. A task in the RUNNING
state is running and ready for use.public ECSTaskSet withRunningCount(Long runningCount)
The number of tasks in the task set that are in the RUNNING
status during an Amazon ECS deployment.
A task in the RUNNING
state is running and ready for use.
runningCount
- The number of tasks in the task set that are in the RUNNING
status during an Amazon ECS
deployment. A task in the RUNNING
state is running and ready for use.public void setStatus(String status)
The status of the task set. There are three valid task set statuses:
PRIMARY
: Indicates the task set is serving production traffic.
ACTIVE
: Indicates the task set is not serving production traffic.
DRAINING
: Indicates the tasks in the task set are being stopped and their corresponding targets are
being deregistered from their target group.
status
- The status of the task set. There are three valid task set statuses:
PRIMARY
: Indicates the task set is serving production traffic.
ACTIVE
: Indicates the task set is not serving production traffic.
DRAINING
: Indicates the tasks in the task set are being stopped and their corresponding
targets are being deregistered from their target group.
public String getStatus()
The status of the task set. There are three valid task set statuses:
PRIMARY
: Indicates the task set is serving production traffic.
ACTIVE
: Indicates the task set is not serving production traffic.
DRAINING
: Indicates the tasks in the task set are being stopped and their corresponding targets are
being deregistered from their target group.
PRIMARY
: Indicates the task set is serving production traffic.
ACTIVE
: Indicates the task set is not serving production traffic.
DRAINING
: Indicates the tasks in the task set are being stopped and their corresponding
targets are being deregistered from their target group.
public ECSTaskSet withStatus(String status)
The status of the task set. There are three valid task set statuses:
PRIMARY
: Indicates the task set is serving production traffic.
ACTIVE
: Indicates the task set is not serving production traffic.
DRAINING
: Indicates the tasks in the task set are being stopped and their corresponding targets are
being deregistered from their target group.
status
- The status of the task set. There are three valid task set statuses:
PRIMARY
: Indicates the task set is serving production traffic.
ACTIVE
: Indicates the task set is not serving production traffic.
DRAINING
: Indicates the tasks in the task set are being stopped and their corresponding
targets are being deregistered from their target group.
public void setTrafficWeight(Double trafficWeight)
The percentage of traffic served by this task set.
trafficWeight
- The percentage of traffic served by this task set.public Double getTrafficWeight()
The percentage of traffic served by this task set.
public ECSTaskSet withTrafficWeight(Double trafficWeight)
The percentage of traffic served by this task set.
trafficWeight
- The percentage of traffic served by this task set.public void setTargetGroup(TargetGroupInfo targetGroup)
The target group associated with the task set. The target group is used by CodeDeploy to manage traffic to a task set.
targetGroup
- The target group associated with the task set. The target group is used by CodeDeploy to manage traffic to
a task set.public TargetGroupInfo getTargetGroup()
The target group associated with the task set. The target group is used by CodeDeploy to manage traffic to a task set.
public ECSTaskSet withTargetGroup(TargetGroupInfo targetGroup)
The target group associated with the task set. The target group is used by CodeDeploy to manage traffic to a task set.
targetGroup
- The target group associated with the task set. The target group is used by CodeDeploy to manage traffic to
a task set.public void setTaskSetLabel(String taskSetLabel)
A label that identifies whether the ECS task set is an original target (BLUE
) or a replacement
target (GREEN
).
taskSetLabel
- A label that identifies whether the ECS task set is an original target (BLUE
) or a
replacement target (GREEN
).TargetLabel
public String getTaskSetLabel()
A label that identifies whether the ECS task set is an original target (BLUE
) or a replacement
target (GREEN
).
BLUE
) or a
replacement target (GREEN
).TargetLabel
public ECSTaskSet withTaskSetLabel(String taskSetLabel)
A label that identifies whether the ECS task set is an original target (BLUE
) or a replacement
target (GREEN
).
taskSetLabel
- A label that identifies whether the ECS task set is an original target (BLUE
) or a
replacement target (GREEN
).TargetLabel
public ECSTaskSet withTaskSetLabel(TargetLabel taskSetLabel)
A label that identifies whether the ECS task set is an original target (BLUE
) or a replacement
target (GREEN
).
taskSetLabel
- A label that identifies whether the ECS task set is an original target (BLUE
) or a
replacement target (GREEN
).TargetLabel
public String toString()
toString
in class Object
Object.toString()
public ECSTaskSet clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.