@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class TaskSet extends Object implements Serializable, Cloneable, StructuredPojo
Information about a set of Amazon ECS tasks in either an CodeDeploy or an EXTERNAL
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.
Constructor and Description |
---|
TaskSet() |
Modifier and Type | Method and Description |
---|---|
TaskSet |
clone() |
boolean |
equals(Object obj) |
List<CapacityProviderStrategyItem> |
getCapacityProviderStrategy()
The capacity provider strategy that are associated with the task set.
|
String |
getClusterArn()
The Amazon Resource Name (ARN) of the cluster that the service that hosts the task set exists in.
|
Integer |
getComputedDesiredCount()
The computed desired count for the task set.
|
Date |
getCreatedAt()
The Unix timestamp for the time when the task set was created.
|
String |
getExternalId()
The external ID associated with the task set.
|
DeploymentEphemeralStorage |
getFargateEphemeralStorage()
The Fargate ephemeral storage settings for the task set.
|
String |
getId()
The ID of the task set.
|
String |
getLaunchType()
The launch type the tasks in the task set are using.
|
List<LoadBalancer> |
getLoadBalancers()
Details on a load balancer that are used with a task set.
|
NetworkConfiguration |
getNetworkConfiguration()
The network configuration for the task set.
|
Integer |
getPendingCount()
The number of tasks in the task set that are in the
PENDING status during a deployment. |
String |
getPlatformFamily()
The operating system that your tasks in the set are running on.
|
String |
getPlatformVersion()
The Fargate platform version where the tasks in the task set are running.
|
Integer |
getRunningCount()
The number of tasks in the task set that are in the
RUNNING status during a deployment. |
Scale |
getScale()
A floating-point percentage of your desired number of tasks to place and keep running in the task set.
|
String |
getServiceArn()
The Amazon Resource Name (ARN) of the service the task set exists in.
|
List<ServiceRegistry> |
getServiceRegistries()
The details for the service discovery registries to assign to this task set.
|
String |
getStabilityStatus()
The stability status.
|
Date |
getStabilityStatusAt()
The Unix timestamp for the time when the task set stability status was retrieved.
|
String |
getStartedBy()
The tag specified when a task set is started.
|
String |
getStatus()
The status of the task set.
|
List<Tag> |
getTags()
The metadata that you apply to the task set to help you categorize and organize them.
|
String |
getTaskDefinition()
The task definition that the task set is using.
|
String |
getTaskSetArn()
The Amazon Resource Name (ARN) of the task set.
|
Date |
getUpdatedAt()
The Unix timestamp for the time when the task set was last updated.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setCapacityProviderStrategy(Collection<CapacityProviderStrategyItem> capacityProviderStrategy)
The capacity provider strategy that are associated with the task set.
|
void |
setClusterArn(String clusterArn)
The Amazon Resource Name (ARN) of the cluster that the service that hosts the task set exists in.
|
void |
setComputedDesiredCount(Integer computedDesiredCount)
The computed desired count for the task set.
|
void |
setCreatedAt(Date createdAt)
The Unix timestamp for the time when the task set was created.
|
void |
setExternalId(String externalId)
The external ID associated with the task set.
|
void |
setFargateEphemeralStorage(DeploymentEphemeralStorage fargateEphemeralStorage)
The Fargate ephemeral storage settings for the task set.
|
void |
setId(String id)
The ID of the task set.
|
void |
setLaunchType(String launchType)
The launch type the tasks in the task set are using.
|
void |
setLoadBalancers(Collection<LoadBalancer> loadBalancers)
Details on a load balancer that are used with a task set.
|
void |
setNetworkConfiguration(NetworkConfiguration networkConfiguration)
The network configuration for the task set.
|
void |
setPendingCount(Integer pendingCount)
The number of tasks in the task set that are in the
PENDING status during a deployment. |
void |
setPlatformFamily(String platformFamily)
The operating system that your tasks in the set are running on.
|
void |
setPlatformVersion(String platformVersion)
The Fargate platform version where the tasks in the task set are running.
|
void |
setRunningCount(Integer runningCount)
The number of tasks in the task set that are in the
RUNNING status during a deployment. |
void |
setScale(Scale scale)
A floating-point percentage of your desired number of tasks to place and keep running in the task set.
|
void |
setServiceArn(String serviceArn)
The Amazon Resource Name (ARN) of the service the task set exists in.
|
void |
setServiceRegistries(Collection<ServiceRegistry> serviceRegistries)
The details for the service discovery registries to assign to this task set.
|
void |
setStabilityStatus(String stabilityStatus)
The stability status.
|
void |
setStabilityStatusAt(Date stabilityStatusAt)
The Unix timestamp for the time when the task set stability status was retrieved.
|
void |
setStartedBy(String startedBy)
The tag specified when a task set is started.
|
void |
setStatus(String status)
The status of the task set.
|
void |
setTags(Collection<Tag> tags)
The metadata that you apply to the task set to help you categorize and organize them.
|
void |
setTaskDefinition(String taskDefinition)
The task definition that the task set is using.
|
void |
setTaskSetArn(String taskSetArn)
The Amazon Resource Name (ARN) of the task set.
|
void |
setUpdatedAt(Date updatedAt)
The Unix timestamp for the time when the task set was last updated.
|
String |
toString()
Returns a string representation of this object.
|
TaskSet |
withCapacityProviderStrategy(CapacityProviderStrategyItem... capacityProviderStrategy)
The capacity provider strategy that are associated with the task set.
|
TaskSet |
withCapacityProviderStrategy(Collection<CapacityProviderStrategyItem> capacityProviderStrategy)
The capacity provider strategy that are associated with the task set.
|
TaskSet |
withClusterArn(String clusterArn)
The Amazon Resource Name (ARN) of the cluster that the service that hosts the task set exists in.
|
TaskSet |
withComputedDesiredCount(Integer computedDesiredCount)
The computed desired count for the task set.
|
TaskSet |
withCreatedAt(Date createdAt)
The Unix timestamp for the time when the task set was created.
|
TaskSet |
withExternalId(String externalId)
The external ID associated with the task set.
|
TaskSet |
withFargateEphemeralStorage(DeploymentEphemeralStorage fargateEphemeralStorage)
The Fargate ephemeral storage settings for the task set.
|
TaskSet |
withId(String id)
The ID of the task set.
|
TaskSet |
withLaunchType(LaunchType launchType)
The launch type the tasks in the task set are using.
|
TaskSet |
withLaunchType(String launchType)
The launch type the tasks in the task set are using.
|
TaskSet |
withLoadBalancers(Collection<LoadBalancer> loadBalancers)
Details on a load balancer that are used with a task set.
|
TaskSet |
withLoadBalancers(LoadBalancer... loadBalancers)
Details on a load balancer that are used with a task set.
|
TaskSet |
withNetworkConfiguration(NetworkConfiguration networkConfiguration)
The network configuration for the task set.
|
TaskSet |
withPendingCount(Integer pendingCount)
The number of tasks in the task set that are in the
PENDING status during a deployment. |
TaskSet |
withPlatformFamily(String platformFamily)
The operating system that your tasks in the set are running on.
|
TaskSet |
withPlatformVersion(String platformVersion)
The Fargate platform version where the tasks in the task set are running.
|
TaskSet |
withRunningCount(Integer runningCount)
The number of tasks in the task set that are in the
RUNNING status during a deployment. |
TaskSet |
withScale(Scale scale)
A floating-point percentage of your desired number of tasks to place and keep running in the task set.
|
TaskSet |
withServiceArn(String serviceArn)
The Amazon Resource Name (ARN) of the service the task set exists in.
|
TaskSet |
withServiceRegistries(Collection<ServiceRegistry> serviceRegistries)
The details for the service discovery registries to assign to this task set.
|
TaskSet |
withServiceRegistries(ServiceRegistry... serviceRegistries)
The details for the service discovery registries to assign to this task set.
|
TaskSet |
withStabilityStatus(StabilityStatus stabilityStatus)
The stability status.
|
TaskSet |
withStabilityStatus(String stabilityStatus)
The stability status.
|
TaskSet |
withStabilityStatusAt(Date stabilityStatusAt)
The Unix timestamp for the time when the task set stability status was retrieved.
|
TaskSet |
withStartedBy(String startedBy)
The tag specified when a task set is started.
|
TaskSet |
withStatus(String status)
The status of the task set.
|
TaskSet |
withTags(Collection<Tag> tags)
The metadata that you apply to the task set to help you categorize and organize them.
|
TaskSet |
withTags(Tag... tags)
The metadata that you apply to the task set to help you categorize and organize them.
|
TaskSet |
withTaskDefinition(String taskDefinition)
The task definition that the task set is using.
|
TaskSet |
withTaskSetArn(String taskSetArn)
The Amazon Resource Name (ARN) of the task set.
|
TaskSet |
withUpdatedAt(Date updatedAt)
The Unix timestamp for the time when the task set was last updated.
|
public void setId(String id)
The ID of the task set.
id
- The ID of the task set.public String getId()
The ID of the task set.
public TaskSet withId(String id)
The ID of the task set.
id
- The ID of the task set.public void setTaskSetArn(String taskSetArn)
The Amazon Resource Name (ARN) of the task set.
taskSetArn
- The Amazon Resource Name (ARN) of the task set.public String getTaskSetArn()
The Amazon Resource Name (ARN) of the task set.
public TaskSet withTaskSetArn(String taskSetArn)
The Amazon Resource Name (ARN) of the task set.
taskSetArn
- The Amazon Resource Name (ARN) of the task set.public void setServiceArn(String serviceArn)
The Amazon Resource Name (ARN) of the service the task set exists in.
serviceArn
- The Amazon Resource Name (ARN) of the service the task set exists in.public String getServiceArn()
The Amazon Resource Name (ARN) of the service the task set exists in.
public TaskSet withServiceArn(String serviceArn)
The Amazon Resource Name (ARN) of the service the task set exists in.
serviceArn
- The Amazon Resource Name (ARN) of the service the task set exists in.public void setClusterArn(String clusterArn)
The Amazon Resource Name (ARN) of the cluster that the service that hosts the task set exists in.
clusterArn
- The Amazon Resource Name (ARN) of the cluster that the service that hosts the task set exists in.public String getClusterArn()
The Amazon Resource Name (ARN) of the cluster that the service that hosts the task set exists in.
public TaskSet withClusterArn(String clusterArn)
The Amazon Resource Name (ARN) of the cluster that the service that hosts the task set exists in.
clusterArn
- The Amazon Resource Name (ARN) of the cluster that the service that hosts the task set exists in.public void setStartedBy(String startedBy)
The tag specified when a task set is started. If an CodeDeploy deployment created the task set, the
startedBy
parameter is CODE_DEPLOY
. If an external deployment created the task set, the
startedBy
field isn't used.
startedBy
- The tag specified when a task set is started. If an CodeDeploy deployment created the task set, the
startedBy
parameter is CODE_DEPLOY
. If an external deployment created the task
set, the startedBy
field isn't used.public String getStartedBy()
The tag specified when a task set is started. If an CodeDeploy deployment created the task set, the
startedBy
parameter is CODE_DEPLOY
. If an external deployment created the task set, the
startedBy
field isn't used.
startedBy
parameter is CODE_DEPLOY
. If an external deployment created the task
set, the startedBy
field isn't used.public TaskSet withStartedBy(String startedBy)
The tag specified when a task set is started. If an CodeDeploy deployment created the task set, the
startedBy
parameter is CODE_DEPLOY
. If an external deployment created the task set, the
startedBy
field isn't used.
startedBy
- The tag specified when a task set is started. If an CodeDeploy deployment created the task set, the
startedBy
parameter is CODE_DEPLOY
. If an external deployment created the task
set, the startedBy
field isn't used.public void setExternalId(String externalId)
The external ID associated with the task set.
If an CodeDeploy deployment created a task set, the externalId
parameter contains the CodeDeploy
deployment ID.
If a task set is created for an external deployment and is associated with a service discovery registry, the
externalId
parameter contains the ECS_TASK_SET_EXTERNAL_ID
Cloud Map attribute.
externalId
- The external ID associated with the task set.
If an CodeDeploy deployment created a task set, the externalId
parameter contains the
CodeDeploy deployment ID.
If a task set is created for an external deployment and is associated with a service discovery registry,
the externalId
parameter contains the ECS_TASK_SET_EXTERNAL_ID
Cloud Map
attribute.
public String getExternalId()
The external ID associated with the task set.
If an CodeDeploy deployment created a task set, the externalId
parameter contains the CodeDeploy
deployment ID.
If a task set is created for an external deployment and is associated with a service discovery registry, the
externalId
parameter contains the ECS_TASK_SET_EXTERNAL_ID
Cloud Map attribute.
If an CodeDeploy deployment created a task set, the externalId
parameter contains the
CodeDeploy deployment ID.
If a task set is created for an external deployment and is associated with a service discovery registry,
the externalId
parameter contains the ECS_TASK_SET_EXTERNAL_ID
Cloud Map
attribute.
public TaskSet withExternalId(String externalId)
The external ID associated with the task set.
If an CodeDeploy deployment created a task set, the externalId
parameter contains the CodeDeploy
deployment ID.
If a task set is created for an external deployment and is associated with a service discovery registry, the
externalId
parameter contains the ECS_TASK_SET_EXTERNAL_ID
Cloud Map attribute.
externalId
- The external ID associated with the task set.
If an CodeDeploy deployment created a task set, the externalId
parameter contains the
CodeDeploy deployment ID.
If a task set is created for an external deployment and is associated with a service discovery registry,
the externalId
parameter contains the ECS_TASK_SET_EXTERNAL_ID
Cloud Map
attribute.
public void setStatus(String status)
The status of the task set. The following describes each state.
The task set is serving production traffic.
The task set isn't serving production traffic.
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. The following describes each state.
The task set is serving production traffic.
The task set isn't serving production traffic.
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. The following describes each state.
The task set is serving production traffic.
The task set isn't serving production traffic.
The tasks in the task set are being stopped, and their corresponding targets are being deregistered from their target group.
The task set is serving production traffic.
The task set isn't serving production traffic.
The tasks in the task set are being stopped, and their corresponding targets are being deregistered from their target group.
public TaskSet withStatus(String status)
The status of the task set. The following describes each state.
The task set is serving production traffic.
The task set isn't serving production traffic.
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. The following describes each state.
The task set is serving production traffic.
The task set isn't serving production traffic.
The tasks in the task set are being stopped, and their corresponding targets are being deregistered from their target group.
public void setTaskDefinition(String taskDefinition)
The task definition that the task set is using.
taskDefinition
- The task definition that the task set is using.public String getTaskDefinition()
The task definition that the task set is using.
public TaskSet withTaskDefinition(String taskDefinition)
The task definition that the task set is using.
taskDefinition
- The task definition that the task set is using.public void setComputedDesiredCount(Integer computedDesiredCount)
The computed desired count for the task set. This is calculated by multiplying the service's
desiredCount
by the task set's scale
percentage. The result is always rounded up. For
example, if the computed desired count is 1.2, it rounds up to 2 tasks.
computedDesiredCount
- The computed desired count for the task set. This is calculated by multiplying the service's
desiredCount
by the task set's scale
percentage. The result is always rounded
up. For example, if the computed desired count is 1.2, it rounds up to 2 tasks.public Integer getComputedDesiredCount()
The computed desired count for the task set. This is calculated by multiplying the service's
desiredCount
by the task set's scale
percentage. The result is always rounded up. For
example, if the computed desired count is 1.2, it rounds up to 2 tasks.
desiredCount
by the task set's scale
percentage. The result is always rounded
up. For example, if the computed desired count is 1.2, it rounds up to 2 tasks.public TaskSet withComputedDesiredCount(Integer computedDesiredCount)
The computed desired count for the task set. This is calculated by multiplying the service's
desiredCount
by the task set's scale
percentage. The result is always rounded up. For
example, if the computed desired count is 1.2, it rounds up to 2 tasks.
computedDesiredCount
- The computed desired count for the task set. This is calculated by multiplying the service's
desiredCount
by the task set's scale
percentage. The result is always rounded
up. For example, if the computed desired count is 1.2, it rounds up to 2 tasks.public void setPendingCount(Integer pendingCount)
The number of tasks in the task set that are in the PENDING
status during a 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's restarted after being in the
STOPPED
state.
pendingCount
- The number of tasks in the task set that are in the PENDING
status during a 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's restarted after
being in the STOPPED
state.public Integer getPendingCount()
The number of tasks in the task set that are in the PENDING
status during a 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's restarted after being in the
STOPPED
state.
PENDING
status during a 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's restarted after
being in the STOPPED
state.public TaskSet withPendingCount(Integer pendingCount)
The number of tasks in the task set that are in the PENDING
status during a 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's restarted after being in the
STOPPED
state.
pendingCount
- The number of tasks in the task set that are in the PENDING
status during a 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's restarted after
being in the STOPPED
state.public void setRunningCount(Integer runningCount)
The number of tasks in the task set that are in the RUNNING
status during a 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 a deployment. A
task in the RUNNING
state is running and ready for use.public Integer getRunningCount()
The number of tasks in the task set that are in the RUNNING
status during a deployment. A task in
the RUNNING
state is running and ready for use.
RUNNING
status during a deployment. A
task in the RUNNING
state is running and ready for use.public TaskSet withRunningCount(Integer runningCount)
The number of tasks in the task set that are in the RUNNING
status during a 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 a deployment. A
task in the RUNNING
state is running and ready for use.public void setCreatedAt(Date createdAt)
The Unix timestamp for the time when the task set was created.
createdAt
- The Unix timestamp for the time when the task set was created.public Date getCreatedAt()
The Unix timestamp for the time when the task set was created.
public TaskSet withCreatedAt(Date createdAt)
The Unix timestamp for the time when the task set was created.
createdAt
- The Unix timestamp for the time when the task set was created.public void setUpdatedAt(Date updatedAt)
The Unix timestamp for the time when the task set was last updated.
updatedAt
- The Unix timestamp for the time when the task set was last updated.public Date getUpdatedAt()
The Unix timestamp for the time when the task set was last updated.
public TaskSet withUpdatedAt(Date updatedAt)
The Unix timestamp for the time when the task set was last updated.
updatedAt
- The Unix timestamp for the time when the task set was last updated.public void setLaunchType(String launchType)
The launch type the tasks in the task set are using. For more information, see Amazon ECS launch types in the Amazon Elastic Container Service Developer Guide.
launchType
- The launch type the tasks in the task set are using. For more information, see Amazon ECS launch
types in the Amazon Elastic Container Service Developer Guide.LaunchType
public String getLaunchType()
The launch type the tasks in the task set are using. For more information, see Amazon ECS launch types in the Amazon Elastic Container Service Developer Guide.
LaunchType
public TaskSet withLaunchType(String launchType)
The launch type the tasks in the task set are using. For more information, see Amazon ECS launch types in the Amazon Elastic Container Service Developer Guide.
launchType
- The launch type the tasks in the task set are using. For more information, see Amazon ECS launch
types in the Amazon Elastic Container Service Developer Guide.LaunchType
public TaskSet withLaunchType(LaunchType launchType)
The launch type the tasks in the task set are using. For more information, see Amazon ECS launch types in the Amazon Elastic Container Service Developer Guide.
launchType
- The launch type the tasks in the task set are using. For more information, see Amazon ECS launch
types in the Amazon Elastic Container Service Developer Guide.LaunchType
public List<CapacityProviderStrategyItem> getCapacityProviderStrategy()
The capacity provider strategy that are associated with the task set.
public void setCapacityProviderStrategy(Collection<CapacityProviderStrategyItem> capacityProviderStrategy)
The capacity provider strategy that are associated with the task set.
capacityProviderStrategy
- The capacity provider strategy that are associated with the task set.public TaskSet withCapacityProviderStrategy(CapacityProviderStrategyItem... capacityProviderStrategy)
The capacity provider strategy that are associated with the task set.
NOTE: This method appends the values to the existing list (if any). Use
setCapacityProviderStrategy(java.util.Collection)
or
withCapacityProviderStrategy(java.util.Collection)
if you want to override the existing values.
capacityProviderStrategy
- The capacity provider strategy that are associated with the task set.public TaskSet withCapacityProviderStrategy(Collection<CapacityProviderStrategyItem> capacityProviderStrategy)
The capacity provider strategy that are associated with the task set.
capacityProviderStrategy
- The capacity provider strategy that are associated with the task set.public void setPlatformVersion(String platformVersion)
The Fargate platform version where the tasks in the task set are running. A platform version is only specified for tasks run on Fargate. For more information, see Fargate platform versions in the Amazon Elastic Container Service Developer Guide.
platformVersion
- The Fargate platform version where the tasks in the task set are running. A platform version is only
specified for tasks run on Fargate. For more information, see Fargate platform
versions in the Amazon Elastic Container Service Developer Guide.public String getPlatformVersion()
The Fargate platform version where the tasks in the task set are running. A platform version is only specified for tasks run on Fargate. For more information, see Fargate platform versions in the Amazon Elastic Container Service Developer Guide.
public TaskSet withPlatformVersion(String platformVersion)
The Fargate platform version where the tasks in the task set are running. A platform version is only specified for tasks run on Fargate. For more information, see Fargate platform versions in the Amazon Elastic Container Service Developer Guide.
platformVersion
- The Fargate platform version where the tasks in the task set are running. A platform version is only
specified for tasks run on Fargate. For more information, see Fargate platform
versions in the Amazon Elastic Container Service Developer Guide.public void setPlatformFamily(String platformFamily)
The operating system that your tasks in the set are running on. A platform family is specified only for tasks that use the Fargate launch type.
All tasks in the set must have the same value.
platformFamily
- The operating system that your tasks in the set are running on. A platform family is specified only for
tasks that use the Fargate launch type.
All tasks in the set must have the same value.
public String getPlatformFamily()
The operating system that your tasks in the set are running on. A platform family is specified only for tasks that use the Fargate launch type.
All tasks in the set must have the same value.
All tasks in the set must have the same value.
public TaskSet withPlatformFamily(String platformFamily)
The operating system that your tasks in the set are running on. A platform family is specified only for tasks that use the Fargate launch type.
All tasks in the set must have the same value.
platformFamily
- The operating system that your tasks in the set are running on. A platform family is specified only for
tasks that use the Fargate launch type.
All tasks in the set must have the same value.
public void setNetworkConfiguration(NetworkConfiguration networkConfiguration)
The network configuration for the task set.
networkConfiguration
- The network configuration for the task set.public NetworkConfiguration getNetworkConfiguration()
The network configuration for the task set.
public TaskSet withNetworkConfiguration(NetworkConfiguration networkConfiguration)
The network configuration for the task set.
networkConfiguration
- The network configuration for the task set.public List<LoadBalancer> getLoadBalancers()
Details on a load balancer that are used with a task set.
public void setLoadBalancers(Collection<LoadBalancer> loadBalancers)
Details on a load balancer that are used with a task set.
loadBalancers
- Details on a load balancer that are used with a task set.public TaskSet withLoadBalancers(LoadBalancer... loadBalancers)
Details on a load balancer that are used with a task set.
NOTE: This method appends the values to the existing list (if any). Use
setLoadBalancers(java.util.Collection)
or withLoadBalancers(java.util.Collection)
if you want
to override the existing values.
loadBalancers
- Details on a load balancer that are used with a task set.public TaskSet withLoadBalancers(Collection<LoadBalancer> loadBalancers)
Details on a load balancer that are used with a task set.
loadBalancers
- Details on a load balancer that are used with a task set.public List<ServiceRegistry> getServiceRegistries()
The details for the service discovery registries to assign to this task set. For more information, see Service discovery.
public void setServiceRegistries(Collection<ServiceRegistry> serviceRegistries)
The details for the service discovery registries to assign to this task set. For more information, see Service discovery.
serviceRegistries
- The details for the service discovery registries to assign to this task set. For more information, see Service
discovery.public TaskSet withServiceRegistries(ServiceRegistry... serviceRegistries)
The details for the service discovery registries to assign to this task set. For more information, see Service discovery.
NOTE: This method appends the values to the existing list (if any). Use
setServiceRegistries(java.util.Collection)
or withServiceRegistries(java.util.Collection)
if
you want to override the existing values.
serviceRegistries
- The details for the service discovery registries to assign to this task set. For more information, see Service
discovery.public TaskSet withServiceRegistries(Collection<ServiceRegistry> serviceRegistries)
The details for the service discovery registries to assign to this task set. For more information, see Service discovery.
serviceRegistries
- The details for the service discovery registries to assign to this task set. For more information, see Service
discovery.public void setScale(Scale scale)
A floating-point percentage of your desired number of tasks to place and keep running in the task set.
scale
- A floating-point percentage of your desired number of tasks to place and keep running in the task set.public Scale getScale()
A floating-point percentage of your desired number of tasks to place and keep running in the task set.
public TaskSet withScale(Scale scale)
A floating-point percentage of your desired number of tasks to place and keep running in the task set.
scale
- A floating-point percentage of your desired number of tasks to place and keep running in the task set.public void setStabilityStatus(String stabilityStatus)
The stability status. This indicates whether the task set has reached a steady state. If the following conditions
are met, the task set are in STEADY_STATE
:
The task runningCount
is equal to the computedDesiredCount
.
The pendingCount
is 0
.
There are no tasks that are running on container instances in the DRAINING
status.
All tasks are reporting a healthy status from the load balancers, service discovery, and container health checks.
If any of those conditions aren't met, the stability status returns STABILIZING
.
stabilityStatus
- The stability status. This indicates whether the task set has reached a steady state. If the following
conditions are met, the task set are in STEADY_STATE
:
The task runningCount
is equal to the computedDesiredCount
.
The pendingCount
is 0
.
There are no tasks that are running on container instances in the DRAINING
status.
All tasks are reporting a healthy status from the load balancers, service discovery, and container health checks.
If any of those conditions aren't met, the stability status returns STABILIZING
.
StabilityStatus
public String getStabilityStatus()
The stability status. This indicates whether the task set has reached a steady state. If the following conditions
are met, the task set are in STEADY_STATE
:
The task runningCount
is equal to the computedDesiredCount
.
The pendingCount
is 0
.
There are no tasks that are running on container instances in the DRAINING
status.
All tasks are reporting a healthy status from the load balancers, service discovery, and container health checks.
If any of those conditions aren't met, the stability status returns STABILIZING
.
STEADY_STATE
:
The task runningCount
is equal to the computedDesiredCount
.
The pendingCount
is 0
.
There are no tasks that are running on container instances in the DRAINING
status.
All tasks are reporting a healthy status from the load balancers, service discovery, and container health checks.
If any of those conditions aren't met, the stability status returns STABILIZING
.
StabilityStatus
public TaskSet withStabilityStatus(String stabilityStatus)
The stability status. This indicates whether the task set has reached a steady state. If the following conditions
are met, the task set are in STEADY_STATE
:
The task runningCount
is equal to the computedDesiredCount
.
The pendingCount
is 0
.
There are no tasks that are running on container instances in the DRAINING
status.
All tasks are reporting a healthy status from the load balancers, service discovery, and container health checks.
If any of those conditions aren't met, the stability status returns STABILIZING
.
stabilityStatus
- The stability status. This indicates whether the task set has reached a steady state. If the following
conditions are met, the task set are in STEADY_STATE
:
The task runningCount
is equal to the computedDesiredCount
.
The pendingCount
is 0
.
There are no tasks that are running on container instances in the DRAINING
status.
All tasks are reporting a healthy status from the load balancers, service discovery, and container health checks.
If any of those conditions aren't met, the stability status returns STABILIZING
.
StabilityStatus
public TaskSet withStabilityStatus(StabilityStatus stabilityStatus)
The stability status. This indicates whether the task set has reached a steady state. If the following conditions
are met, the task set are in STEADY_STATE
:
The task runningCount
is equal to the computedDesiredCount
.
The pendingCount
is 0
.
There are no tasks that are running on container instances in the DRAINING
status.
All tasks are reporting a healthy status from the load balancers, service discovery, and container health checks.
If any of those conditions aren't met, the stability status returns STABILIZING
.
stabilityStatus
- The stability status. This indicates whether the task set has reached a steady state. If the following
conditions are met, the task set are in STEADY_STATE
:
The task runningCount
is equal to the computedDesiredCount
.
The pendingCount
is 0
.
There are no tasks that are running on container instances in the DRAINING
status.
All tasks are reporting a healthy status from the load balancers, service discovery, and container health checks.
If any of those conditions aren't met, the stability status returns STABILIZING
.
StabilityStatus
public void setStabilityStatusAt(Date stabilityStatusAt)
The Unix timestamp for the time when the task set stability status was retrieved.
stabilityStatusAt
- The Unix timestamp for the time when the task set stability status was retrieved.public Date getStabilityStatusAt()
The Unix timestamp for the time when the task set stability status was retrieved.
public TaskSet withStabilityStatusAt(Date stabilityStatusAt)
The Unix timestamp for the time when the task set stability status was retrieved.
stabilityStatusAt
- The Unix timestamp for the time when the task set stability status was retrieved.public List<Tag> getTags()
The metadata that you apply to the task set to help you categorize and organize them. Each tag consists of a key and an optional value. You define both.
The following basic restrictions apply to tags:
Maximum number of tags per resource - 50
For each resource, each tag key must be unique, and each tag key can have only one value.
Maximum key length - 128 Unicode characters in UTF-8
Maximum value length - 256 Unicode characters in UTF-8
If your tagging schema is used across multiple services and resources, remember that other services may have restrictions on allowed characters. Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following characters: + - = . _ : / @.
Tag keys and values are case-sensitive.
Do not use aws:
, AWS:
, or any upper or lowercase combination of such as a prefix for
either keys or values as it is reserved for Amazon Web Services use. You cannot edit or delete tag keys or values
with this prefix. Tags with this prefix do not count against your tags per resource limit.
The following basic restrictions apply to tags:
Maximum number of tags per resource - 50
For each resource, each tag key must be unique, and each tag key can have only one value.
Maximum key length - 128 Unicode characters in UTF-8
Maximum value length - 256 Unicode characters in UTF-8
If your tagging schema is used across multiple services and resources, remember that other services may have restrictions on allowed characters. Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following characters: + - = . _ : / @.
Tag keys and values are case-sensitive.
Do not use aws:
, AWS:
, or any upper or lowercase combination of such as a
prefix for either keys or values as it is reserved for Amazon Web Services use. You cannot edit or delete
tag keys or values with this prefix. Tags with this prefix do not count against your tags per resource
limit.
public void setTags(Collection<Tag> tags)
The metadata that you apply to the task set to help you categorize and organize them. Each tag consists of a key and an optional value. You define both.
The following basic restrictions apply to tags:
Maximum number of tags per resource - 50
For each resource, each tag key must be unique, and each tag key can have only one value.
Maximum key length - 128 Unicode characters in UTF-8
Maximum value length - 256 Unicode characters in UTF-8
If your tagging schema is used across multiple services and resources, remember that other services may have restrictions on allowed characters. Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following characters: + - = . _ : / @.
Tag keys and values are case-sensitive.
Do not use aws:
, AWS:
, or any upper or lowercase combination of such as a prefix for
either keys or values as it is reserved for Amazon Web Services use. You cannot edit or delete tag keys or values
with this prefix. Tags with this prefix do not count against your tags per resource limit.
tags
- The metadata that you apply to the task set to help you categorize and organize them. Each tag consists of
a key and an optional value. You define both.
The following basic restrictions apply to tags:
Maximum number of tags per resource - 50
For each resource, each tag key must be unique, and each tag key can have only one value.
Maximum key length - 128 Unicode characters in UTF-8
Maximum value length - 256 Unicode characters in UTF-8
If your tagging schema is used across multiple services and resources, remember that other services may have restrictions on allowed characters. Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following characters: + - = . _ : / @.
Tag keys and values are case-sensitive.
Do not use aws:
, AWS:
, or any upper or lowercase combination of such as a prefix
for either keys or values as it is reserved for Amazon Web Services use. You cannot edit or delete tag
keys or values with this prefix. Tags with this prefix do not count against your tags per resource limit.
public TaskSet withTags(Tag... tags)
The metadata that you apply to the task set to help you categorize and organize them. Each tag consists of a key and an optional value. You define both.
The following basic restrictions apply to tags:
Maximum number of tags per resource - 50
For each resource, each tag key must be unique, and each tag key can have only one value.
Maximum key length - 128 Unicode characters in UTF-8
Maximum value length - 256 Unicode characters in UTF-8
If your tagging schema is used across multiple services and resources, remember that other services may have restrictions on allowed characters. Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following characters: + - = . _ : / @.
Tag keys and values are case-sensitive.
Do not use aws:
, AWS:
, or any upper or lowercase combination of such as a prefix for
either keys or values as it is reserved for Amazon Web Services use. You cannot edit or delete tag keys or values
with this prefix. Tags with this prefix do not count against your tags per resource limit.
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection)
or withTags(java.util.Collection)
if you want to override the
existing values.
tags
- The metadata that you apply to the task set to help you categorize and organize them. Each tag consists of
a key and an optional value. You define both.
The following basic restrictions apply to tags:
Maximum number of tags per resource - 50
For each resource, each tag key must be unique, and each tag key can have only one value.
Maximum key length - 128 Unicode characters in UTF-8
Maximum value length - 256 Unicode characters in UTF-8
If your tagging schema is used across multiple services and resources, remember that other services may have restrictions on allowed characters. Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following characters: + - = . _ : / @.
Tag keys and values are case-sensitive.
Do not use aws:
, AWS:
, or any upper or lowercase combination of such as a prefix
for either keys or values as it is reserved for Amazon Web Services use. You cannot edit or delete tag
keys or values with this prefix. Tags with this prefix do not count against your tags per resource limit.
public TaskSet withTags(Collection<Tag> tags)
The metadata that you apply to the task set to help you categorize and organize them. Each tag consists of a key and an optional value. You define both.
The following basic restrictions apply to tags:
Maximum number of tags per resource - 50
For each resource, each tag key must be unique, and each tag key can have only one value.
Maximum key length - 128 Unicode characters in UTF-8
Maximum value length - 256 Unicode characters in UTF-8
If your tagging schema is used across multiple services and resources, remember that other services may have restrictions on allowed characters. Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following characters: + - = . _ : / @.
Tag keys and values are case-sensitive.
Do not use aws:
, AWS:
, or any upper or lowercase combination of such as a prefix for
either keys or values as it is reserved for Amazon Web Services use. You cannot edit or delete tag keys or values
with this prefix. Tags with this prefix do not count against your tags per resource limit.
tags
- The metadata that you apply to the task set to help you categorize and organize them. Each tag consists of
a key and an optional value. You define both.
The following basic restrictions apply to tags:
Maximum number of tags per resource - 50
For each resource, each tag key must be unique, and each tag key can have only one value.
Maximum key length - 128 Unicode characters in UTF-8
Maximum value length - 256 Unicode characters in UTF-8
If your tagging schema is used across multiple services and resources, remember that other services may have restrictions on allowed characters. Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following characters: + - = . _ : / @.
Tag keys and values are case-sensitive.
Do not use aws:
, AWS:
, or any upper or lowercase combination of such as a prefix
for either keys or values as it is reserved for Amazon Web Services use. You cannot edit or delete tag
keys or values with this prefix. Tags with this prefix do not count against your tags per resource limit.
public void setFargateEphemeralStorage(DeploymentEphemeralStorage fargateEphemeralStorage)
The Fargate ephemeral storage settings for the task set.
fargateEphemeralStorage
- The Fargate ephemeral storage settings for the task set.public DeploymentEphemeralStorage getFargateEphemeralStorage()
The Fargate ephemeral storage settings for the task set.
public TaskSet withFargateEphemeralStorage(DeploymentEphemeralStorage fargateEphemeralStorage)
The Fargate ephemeral storage settings for the task set.
fargateEphemeralStorage
- The Fargate ephemeral storage settings for the task set.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.