/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.ecs.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* 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.
*
* The ID of the task set. *
*/ private String id; /** ** The Amazon Resource Name (ARN) of the task set. *
*/ private String taskSetArn; /** ** The Amazon Resource Name (ARN) of the service the task set exists in. *
*/ private String serviceArn; /** ** The Amazon Resource Name (ARN) of the cluster that the service that hosts the task set exists in. *
*/ private String clusterArn; /** *
* 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.
*
* 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.
*
* 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 definition that the task set is using. *
*/ private String taskDefinition; /** *
* 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.
*
* 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.
*
* 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.
*
* The Unix timestamp for the time when the task set was created. *
*/ private java.util.Date createdAt; /** ** The Unix timestamp for the time when the task set was last updated. *
*/ private java.util.Date updatedAt; /** ** 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. *
*/ private String launchType; /** ** The capacity provider strategy that are associated with the task set. *
*/ private com.amazonaws.internal.SdkInternalList* 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. *
*/ private String platformVersion; /** ** 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. *
*/ private String platformFamily; /** ** The network configuration for the task set. *
*/ private NetworkConfiguration networkConfiguration; /** ** Details on a load balancer that are used with a task set. *
*/ private com.amazonaws.internal.SdkInternalList* The details for the service discovery registries to assign to this task set. For more information, see Service discovery. *
*/ private com.amazonaws.internal.SdkInternalList* A floating-point percentage of your desired number of tasks to place and keep running in the task set. *
*/ private Scale scale; /** *
* 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
.
*
* The Unix timestamp for the time when the task set stability status was retrieved. *
*/ private java.util.Date stabilityStatusAt; /** ** 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 ID of the task set. *
* * @param id * The ID of the task set. */ public void setId(String id) { this.id = id; } /** ** The ID of the task set. *
* * @return The ID of the task set. */ public String getId() { return this.id; } /** ** The ID of the task set. *
* * @param id * The ID of the task set. * @return Returns a reference to this object so that method calls can be chained together. */ public TaskSet withId(String id) { setId(id); return this; } /** ** The Amazon Resource Name (ARN) of the task set. *
* * @param taskSetArn * The Amazon Resource Name (ARN) of the task set. */ public void setTaskSetArn(String taskSetArn) { this.taskSetArn = taskSetArn; } /** ** The Amazon Resource Name (ARN) of the task set. *
* * @return The Amazon Resource Name (ARN) of the task set. */ public String getTaskSetArn() { return this.taskSetArn; } /** ** The Amazon Resource Name (ARN) of the task set. *
* * @param taskSetArn * The Amazon Resource Name (ARN) of the task set. * @return Returns a reference to this object so that method calls can be chained together. */ public TaskSet withTaskSetArn(String taskSetArn) { setTaskSetArn(taskSetArn); return this; } /** ** The Amazon Resource Name (ARN) of the service the task set exists in. *
* * @param serviceArn * The Amazon Resource Name (ARN) of the service the task set exists in. */ public void setServiceArn(String serviceArn) { this.serviceArn = serviceArn; } /** ** The Amazon Resource Name (ARN) of the service the task set exists in. *
* * @return The Amazon Resource Name (ARN) of the service the task set exists in. */ public String getServiceArn() { return this.serviceArn; } /** ** The Amazon Resource Name (ARN) of the service the task set exists in. *
* * @param serviceArn * The Amazon Resource Name (ARN) of the service the task set exists in. * @return Returns a reference to this object so that method calls can be chained together. */ public TaskSet withServiceArn(String serviceArn) { setServiceArn(serviceArn); return this; } /** ** The Amazon Resource Name (ARN) of the cluster that the service that hosts the task set exists in. *
* * @param clusterArn * The Amazon Resource Name (ARN) of the cluster that the service that hosts the task set exists in. */ public void setClusterArn(String clusterArn) { this.clusterArn = clusterArn; } /** ** The Amazon Resource Name (ARN) of the cluster that the service that hosts the task set exists in. *
* * @return The Amazon Resource Name (ARN) of the cluster that the service that hosts the task set exists in. */ public String getClusterArn() { return this.clusterArn; } /** ** The Amazon Resource Name (ARN) of the cluster that the service that hosts the task set exists in. *
* * @param clusterArn * The Amazon Resource Name (ARN) of the cluster that the service that hosts the task set exists in. * @return Returns a reference to this object so that method calls can be chained together. */ public TaskSet withClusterArn(String clusterArn) { setClusterArn(clusterArn); return this; } /** *
* 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 void setStartedBy(String startedBy) {
this.startedBy = 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
parameter is CODE_DEPLOY
. If an external deployment created the task
* set, the startedBy
field isn't used.
*/
public String getStartedBy() {
return this.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
parameter is CODE_DEPLOY
. If an external deployment created the task
* set, the startedBy
field isn't used.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public TaskSet withStartedBy(String startedBy) {
setStartedBy(startedBy);
return this;
}
/**
* * 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 void setExternalId(String externalId) {
this.externalId = 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.
*
* 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() {
return this.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.
*
* 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.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public TaskSet withExternalId(String externalId) {
setExternalId(externalId);
return this;
}
/**
*
* 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. *
** 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. *
** 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. *
** The task definition that the task set is using. *
* * @param taskDefinition * The task definition that the task set is using. */ public void setTaskDefinition(String taskDefinition) { this.taskDefinition = taskDefinition; } /** ** The task definition that the task set is using. *
* * @return The task definition that the task set is using. */ public String getTaskDefinition() { return this.taskDefinition; } /** ** The task definition that the task set is using. *
* * @param taskDefinition * The task definition that the task set is using. * @return Returns a reference to this object so that method calls can be chained together. */ public TaskSet withTaskDefinition(String taskDefinition) { setTaskDefinition(taskDefinition); return this; } /** *
* 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 void setComputedDesiredCount(Integer computedDesiredCount) {
this.computedDesiredCount = 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.
*
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() {
return this.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.
*
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.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public TaskSet withComputedDesiredCount(Integer computedDesiredCount) {
setComputedDesiredCount(computedDesiredCount);
return this;
}
/**
*
* 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 void setPendingCount(Integer pendingCount) {
this.pendingCount = 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.
*
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() {
return this.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.
*
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.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public TaskSet withPendingCount(Integer pendingCount) {
setPendingCount(pendingCount);
return this;
}
/**
*
* 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 void setRunningCount(Integer runningCount) {
this.runningCount = 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.
*
RUNNING
status during a deployment. A
* task in the RUNNING
state is running and ready for use.
*/
public Integer getRunningCount() {
return this.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.
*
RUNNING
status during a deployment. A
* task in the RUNNING
state is running and ready for use.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public TaskSet withRunningCount(Integer runningCount) {
setRunningCount(runningCount);
return this;
}
/**
* * The Unix timestamp for the time when the task set was created. *
* * @param createdAt * The Unix timestamp for the time when the task set was created. */ public void setCreatedAt(java.util.Date createdAt) { this.createdAt = createdAt; } /** ** The Unix timestamp for the time when the task set was created. *
* * @return The Unix timestamp for the time when the task set was created. */ public java.util.Date getCreatedAt() { return this.createdAt; } /** ** The Unix timestamp for the time when the task set was created. *
* * @param createdAt * The Unix timestamp for the time when the task set was created. * @return Returns a reference to this object so that method calls can be chained together. */ public TaskSet withCreatedAt(java.util.Date createdAt) { setCreatedAt(createdAt); return this; } /** ** The Unix timestamp for the time when the task set was last updated. *
* * @param updatedAt * The Unix timestamp for the time when the task set was last updated. */ public void setUpdatedAt(java.util.Date updatedAt) { this.updatedAt = updatedAt; } /** ** The Unix timestamp for the time when the task set was last updated. *
* * @return The Unix timestamp for the time when the task set was last updated. */ public java.util.Date getUpdatedAt() { return this.updatedAt; } /** ** The Unix timestamp for the time when the task set was last updated. *
* * @param updatedAt * The Unix timestamp for the time when the task set was last updated. * @return Returns a reference to this object so that method calls can be chained together. */ public TaskSet withUpdatedAt(java.util.Date updatedAt) { setUpdatedAt(updatedAt); return this; } /** ** 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. *
* * @param 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. * @see LaunchType */ public void setLaunchType(String launchType) { this.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. *
* * @return 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. * @see LaunchType */ public String getLaunchType() { return this.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. *
* * @param 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. * @return Returns a reference to this object so that method calls can be chained together. * @see LaunchType */ public TaskSet withLaunchType(String launchType) { setLaunchType(launchType); return this; } /** ** 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. *
* * @param 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. * @return Returns a reference to this object so that method calls can be chained together. * @see LaunchType */ public TaskSet withLaunchType(LaunchType launchType) { this.launchType = launchType.toString(); return this; } /** ** The capacity provider strategy that are associated with the task set. *
* * @return The capacity provider strategy that are associated with the task set. */ public java.util.List* The capacity provider strategy that are associated with the task set. *
* * @param capacityProviderStrategy * The capacity provider strategy that are associated with the task set. */ public void setCapacityProviderStrategy(java.util.Collection* The capacity provider strategy that are associated with the task set. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setCapacityProviderStrategy(java.util.Collection)} or * {@link #withCapacityProviderStrategy(java.util.Collection)} if you want to override the existing values. *
* * @param capacityProviderStrategy * The capacity provider strategy that are associated with the task set. * @return Returns a reference to this object so that method calls can be chained together. */ public TaskSet withCapacityProviderStrategy(CapacityProviderStrategyItem... capacityProviderStrategy) { if (this.capacityProviderStrategy == null) { setCapacityProviderStrategy(new com.amazonaws.internal.SdkInternalList* The capacity provider strategy that are associated with the task set. *
* * @param capacityProviderStrategy * The capacity provider strategy that are associated with the task set. * @return Returns a reference to this object so that method calls can be chained together. */ public TaskSet withCapacityProviderStrategy(java.util.Collection* 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. *
* * @param 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 setPlatformVersion(String platformVersion) { this.platformVersion = 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. *
* * @return 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() { return this.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. *
* * @param 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. * @return Returns a reference to this object so that method calls can be chained together. */ public TaskSet withPlatformVersion(String platformVersion) { setPlatformVersion(platformVersion); return this; } /** ** 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. *
* * @param 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 setPlatformFamily(String platformFamily) { this.platformFamily = 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. *
* * @return 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() { return this.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. *
* * @param 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. * @return Returns a reference to this object so that method calls can be chained together. */ public TaskSet withPlatformFamily(String platformFamily) { setPlatformFamily(platformFamily); return this; } /** *
* The network configuration for the task set. *
* * @param networkConfiguration * The network configuration for the task set. */ public void setNetworkConfiguration(NetworkConfiguration networkConfiguration) { this.networkConfiguration = networkConfiguration; } /** ** The network configuration for the task set. *
* * @return The network configuration for the task set. */ public NetworkConfiguration getNetworkConfiguration() { return this.networkConfiguration; } /** ** The network configuration for the task set. *
* * @param networkConfiguration * The network configuration for the task set. * @return Returns a reference to this object so that method calls can be chained together. */ public TaskSet withNetworkConfiguration(NetworkConfiguration networkConfiguration) { setNetworkConfiguration(networkConfiguration); return this; } /** ** Details on a load balancer that are used with a task set. *
* * @return Details on a load balancer that are used with a task set. */ public java.util.List* Details on a load balancer that are used with a task set. *
* * @param loadBalancers * Details on a load balancer that are used with a task set. */ public void setLoadBalancers(java.util.Collection* 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 * {@link #setLoadBalancers(java.util.Collection)} or {@link #withLoadBalancers(java.util.Collection)} if you want * to override the existing values. *
* * @param loadBalancers * Details on a load balancer that are used with a task set. * @return Returns a reference to this object so that method calls can be chained together. */ public TaskSet withLoadBalancers(LoadBalancer... loadBalancers) { if (this.loadBalancers == null) { setLoadBalancers(new com.amazonaws.internal.SdkInternalList* Details on a load balancer that are used with a task set. *
* * @param loadBalancers * Details on a load balancer that are used with a task set. * @return Returns a reference to this object so that method calls can be chained together. */ public TaskSet withLoadBalancers(java.util.Collection* The details for the service discovery registries to assign to this task set. For more information, see Service discovery. *
* * @return The details for the service discovery registries to assign to this task set. For more information, see Service * discovery. */ public java.util.List* The details for the service discovery registries to assign to this task set. For more information, see Service discovery. *
* * @param serviceRegistries * The details for the service discovery registries to assign to this task set. For more information, see Service * discovery. */ public void setServiceRegistries(java.util.Collection* 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 * {@link #setServiceRegistries(java.util.Collection)} or {@link #withServiceRegistries(java.util.Collection)} if * you want to override the existing values. *
* * @param serviceRegistries * The details for the service discovery registries to assign to this task set. For more information, see Service * discovery. * @return Returns a reference to this object so that method calls can be chained together. */ public TaskSet withServiceRegistries(ServiceRegistry... serviceRegistries) { if (this.serviceRegistries == null) { setServiceRegistries(new com.amazonaws.internal.SdkInternalList* The details for the service discovery registries to assign to this task set. For more information, see Service discovery. *
* * @param serviceRegistries * The details for the service discovery registries to assign to this task set. For more information, see Service * discovery. * @return Returns a reference to this object so that method calls can be chained together. */ public TaskSet withServiceRegistries(java.util.Collection* A floating-point percentage of your desired number of tasks to place and keep running in the task set. *
* * @param scale * A floating-point percentage of your desired number of tasks to place and keep running in the task set. */ public void setScale(Scale scale) { this.scale = scale; } /** ** A floating-point percentage of your desired number of tasks to place and keep running in the task set. *
* * @return A floating-point percentage of your desired number of tasks to place and keep running in the task set. */ public Scale getScale() { return this.scale; } /** ** A floating-point percentage of your desired number of tasks to place and keep running in the task set. *
* * @param scale * A floating-point percentage of your desired number of tasks to place and keep running in the task set. * @return Returns a reference to this object so that method calls can be chained together. */ public TaskSet withScale(Scale scale) { setScale(scale); return this; } /** *
* 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
.
* @see StabilityStatus
*/
public void setStabilityStatus(String stabilityStatus) {
this.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
.
*
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
.
* @see StabilityStatus
*/
public String getStabilityStatus() {
return this.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
.
*
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
.
* @return Returns a reference to this object so that method calls can be chained together.
* @see StabilityStatus
*/
public TaskSet withStabilityStatus(String stabilityStatus) {
setStabilityStatus(stabilityStatus);
return this;
}
/**
*
* 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
.
* @return Returns a reference to this object so that method calls can be chained together.
* @see StabilityStatus
*/
public TaskSet withStabilityStatus(StabilityStatus stabilityStatus) {
this.stabilityStatus = stabilityStatus.toString();
return this;
}
/**
*
* The Unix timestamp for the time when the task set stability status was retrieved. *
* * @param stabilityStatusAt * The Unix timestamp for the time when the task set stability status was retrieved. */ public void setStabilityStatusAt(java.util.Date stabilityStatusAt) { this.stabilityStatusAt = stabilityStatusAt; } /** ** The Unix timestamp for the time when the task set stability status was retrieved. *
* * @return The Unix timestamp for the time when the task set stability status was retrieved. */ public java.util.Date getStabilityStatusAt() { return this.stabilityStatusAt; } /** ** The Unix timestamp for the time when the task set stability status was retrieved. *
* * @param stabilityStatusAt * The Unix timestamp for the time when the task set stability status was retrieved. * @return Returns a reference to this object so that method calls can be chained together. */ public TaskSet withStabilityStatusAt(java.util.Date stabilityStatusAt) { setStabilityStatusAt(stabilityStatusAt); return this; } /** ** 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.
*
* 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.
*
* 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 * {@link #setTags(java.util.Collection)} or {@link #withTags(java.util.Collection)} if you want to override the * existing values. *
* * @param 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.
*
* 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.
*