/* * 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; /** *
* The details of an Amazon ECS service deployment. This is used only when a service uses the ECS
* deployment controller type.
*
* The ID of the deployment. *
*/ private String id; /** ** The status of the deployment. The following describes each state. *
** The most recent deployment of a service. *
*
* A service deployment that still has running tasks, but are in the process of being replaced with a new
* PRIMARY
deployment.
*
* A deployment that has been completely replaced. *
** The most recent task definition that was specified for the tasks in the service to use. *
*/ private String taskDefinition; /** ** The most recent desired count of tasks that was specified for the service to deploy or maintain. *
*/ private Integer desiredCount; /** *
* The number of tasks in the deployment that are in the PENDING
status.
*
* The number of tasks in the deployment that are in the RUNNING
status.
*
* The number of consecutively failed tasks in the deployment. A task is considered a failure if the service
* scheduler can't launch the task, the task doesn't transition to a RUNNING
state, or if it fails any
* of its defined health checks and is stopped.
*
* Once a service deployment has one or more successfully running tasks, the failed task count resets to zero and * stops being evaluated. *
** The Unix timestamp for the time when the service deployment was created. *
*/ private java.util.Date createdAt; /** ** The Unix timestamp for the time when the service deployment was last updated. *
*/ private java.util.Date updatedAt; /** ** The capacity provider strategy that the deployment is using. *
*/ private com.amazonaws.internal.SdkInternalList* The launch type the tasks in the service are using. For more information, see Amazon ECS Launch Types * in the Amazon Elastic Container Service Developer Guide. *
*/ private String launchType; /** *
* The platform version that your tasks in the service run on. A platform version is only specified for tasks using
* the Fargate launch type. If one isn't specified, the LATEST
platform version is used. For more
* information, see Fargate Platform
* Versions in the Amazon Elastic Container Service Developer Guide.
*
* The operating system that your tasks in the service, or tasks are running on. A platform family is specified only * for tasks using the Fargate launch type. *
*
* All tasks that run as part of this service must use the same platformFamily
value as the service,
* for example, LINUX.
.
*
* The VPC subnet and security group configuration for tasks that receive their own elastic network interface by
* using the awsvpc
networking mode.
*
* The rolloutState
of a service is only returned for services that use the rolling update (
* ECS
) deployment type that aren't behind a Classic Load Balancer.
*
* The rollout state of the deployment. When a service deployment is started, it begins in an
* IN_PROGRESS
state. When the service reaches a steady state, the deployment transitions to a
* COMPLETED
state. If the service fails to reach a steady state and circuit breaker is turned on, the
* deployment transitions to a FAILED
state. A deployment in FAILED
state doesn't launch
* any new tasks. For more information, see DeploymentCircuitBreaker.
*
* A description of the rollout state of a deployment. *
*/ private String rolloutStateReason; /** ** The details of the Service Connect configuration that's used by this deployment. Compare the configuration * between multiple deployments when troubleshooting issues with new deployments. *
** The configuration for this service to discover and connect to services, and be discovered by, and connected from, * other services within a namespace. *
** Tasks that run in a namespace can use short names to connect to services in the namespace. Tasks can connect to * services across all of the clusters in the namespace. Tasks connect through a managed proxy container that * collects logs and metrics for increased visibility. Only the tasks that Amazon ECS services create are supported * with Service Connect. For more information, see Service Connect in * the Amazon Elastic Container Service Developer Guide. *
*/ private ServiceConnectConfiguration serviceConnectConfiguration; /** ** The list of Service Connect resources that are associated with this deployment. Each list entry maps a discovery * name to a Cloud Map service name. *
*/ private com.amazonaws.internal.SdkInternalList* The ID of the deployment. *
* * @param id * The ID of the deployment. */ public void setId(String id) { this.id = id; } /** ** The ID of the deployment. *
* * @return The ID of the deployment. */ public String getId() { return this.id; } /** ** The ID of the deployment. *
* * @param id * The ID of the deployment. * @return Returns a reference to this object so that method calls can be chained together. */ public Deployment withId(String id) { setId(id); return this; } /** ** The status of the deployment. The following describes each state. *
** The most recent deployment of a service. *
*
* A service deployment that still has running tasks, but are in the process of being replaced with a new
* PRIMARY
deployment.
*
* A deployment that has been completely replaced. *
** The most recent deployment of a service. *
*
* A service deployment that still has running tasks, but are in the process of being replaced with a new
* PRIMARY
deployment.
*
* A deployment that has been completely replaced. *
** The status of the deployment. The following describes each state. *
** The most recent deployment of a service. *
*
* A service deployment that still has running tasks, but are in the process of being replaced with a new
* PRIMARY
deployment.
*
* A deployment that has been completely replaced. *
** The most recent deployment of a service. *
*
* A service deployment that still has running tasks, but are in the process of being replaced with a new
* PRIMARY
deployment.
*
* A deployment that has been completely replaced. *
** The status of the deployment. The following describes each state. *
** The most recent deployment of a service. *
*
* A service deployment that still has running tasks, but are in the process of being replaced with a new
* PRIMARY
deployment.
*
* A deployment that has been completely replaced. *
** The most recent deployment of a service. *
*
* A service deployment that still has running tasks, but are in the process of being replaced with a new
* PRIMARY
deployment.
*
* A deployment that has been completely replaced. *
** The most recent task definition that was specified for the tasks in the service to use. *
* * @param taskDefinition * The most recent task definition that was specified for the tasks in the service to use. */ public void setTaskDefinition(String taskDefinition) { this.taskDefinition = taskDefinition; } /** ** The most recent task definition that was specified for the tasks in the service to use. *
* * @return The most recent task definition that was specified for the tasks in the service to use. */ public String getTaskDefinition() { return this.taskDefinition; } /** ** The most recent task definition that was specified for the tasks in the service to use. *
* * @param taskDefinition * The most recent task definition that was specified for the tasks in the service to use. * @return Returns a reference to this object so that method calls can be chained together. */ public Deployment withTaskDefinition(String taskDefinition) { setTaskDefinition(taskDefinition); return this; } /** ** The most recent desired count of tasks that was specified for the service to deploy or maintain. *
* * @param desiredCount * The most recent desired count of tasks that was specified for the service to deploy or maintain. */ public void setDesiredCount(Integer desiredCount) { this.desiredCount = desiredCount; } /** ** The most recent desired count of tasks that was specified for the service to deploy or maintain. *
* * @return The most recent desired count of tasks that was specified for the service to deploy or maintain. */ public Integer getDesiredCount() { return this.desiredCount; } /** ** The most recent desired count of tasks that was specified for the service to deploy or maintain. *
* * @param desiredCount * The most recent desired count of tasks that was specified for the service to deploy or maintain. * @return Returns a reference to this object so that method calls can be chained together. */ public Deployment withDesiredCount(Integer desiredCount) { setDesiredCount(desiredCount); return this; } /** *
* The number of tasks in the deployment that are in the PENDING
status.
*
PENDING
status.
*/
public void setPendingCount(Integer pendingCount) {
this.pendingCount = pendingCount;
}
/**
*
* The number of tasks in the deployment that are in the PENDING
status.
*
PENDING
status.
*/
public Integer getPendingCount() {
return this.pendingCount;
}
/**
*
* The number of tasks in the deployment that are in the PENDING
status.
*
PENDING
status.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Deployment withPendingCount(Integer pendingCount) {
setPendingCount(pendingCount);
return this;
}
/**
*
* The number of tasks in the deployment that are in the RUNNING
status.
*
RUNNING
status.
*/
public void setRunningCount(Integer runningCount) {
this.runningCount = runningCount;
}
/**
*
* The number of tasks in the deployment that are in the RUNNING
status.
*
RUNNING
status.
*/
public Integer getRunningCount() {
return this.runningCount;
}
/**
*
* The number of tasks in the deployment that are in the RUNNING
status.
*
RUNNING
status.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Deployment withRunningCount(Integer runningCount) {
setRunningCount(runningCount);
return this;
}
/**
*
* The number of consecutively failed tasks in the deployment. A task is considered a failure if the service
* scheduler can't launch the task, the task doesn't transition to a RUNNING
state, or if it fails any
* of its defined health checks and is stopped.
*
* Once a service deployment has one or more successfully running tasks, the failed task count resets to zero and * stops being evaluated. *
*RUNNING
state, or if it
* fails any of its defined health checks and is stopped. * Once a service deployment has one or more successfully running tasks, the failed task count resets to zero * and stops being evaluated. *
*/ public void setFailedTasks(Integer failedTasks) { this.failedTasks = failedTasks; } /** *
* The number of consecutively failed tasks in the deployment. A task is considered a failure if the service
* scheduler can't launch the task, the task doesn't transition to a RUNNING
state, or if it fails any
* of its defined health checks and is stopped.
*
* Once a service deployment has one or more successfully running tasks, the failed task count resets to zero and * stops being evaluated. *
*RUNNING
state, or if it
* fails any of its defined health checks and is stopped. * Once a service deployment has one or more successfully running tasks, the failed task count resets to * zero and stops being evaluated. *
*/ public Integer getFailedTasks() { return this.failedTasks; } /** *
* The number of consecutively failed tasks in the deployment. A task is considered a failure if the service
* scheduler can't launch the task, the task doesn't transition to a RUNNING
state, or if it fails any
* of its defined health checks and is stopped.
*
* Once a service deployment has one or more successfully running tasks, the failed task count resets to zero and * stops being evaluated. *
*RUNNING
state, or if it
* fails any of its defined health checks and is stopped. * Once a service deployment has one or more successfully running tasks, the failed task count resets to zero * and stops being evaluated. *
* @return Returns a reference to this object so that method calls can be chained together. */ public Deployment withFailedTasks(Integer failedTasks) { setFailedTasks(failedTasks); return this; } /** ** The Unix timestamp for the time when the service deployment was created. *
* * @param createdAt * The Unix timestamp for the time when the service deployment was created. */ public void setCreatedAt(java.util.Date createdAt) { this.createdAt = createdAt; } /** ** The Unix timestamp for the time when the service deployment was created. *
* * @return The Unix timestamp for the time when the service deployment was created. */ public java.util.Date getCreatedAt() { return this.createdAt; } /** ** The Unix timestamp for the time when the service deployment was created. *
* * @param createdAt * The Unix timestamp for the time when the service deployment was created. * @return Returns a reference to this object so that method calls can be chained together. */ public Deployment withCreatedAt(java.util.Date createdAt) { setCreatedAt(createdAt); return this; } /** ** The Unix timestamp for the time when the service deployment was last updated. *
* * @param updatedAt * The Unix timestamp for the time when the service deployment was last updated. */ public void setUpdatedAt(java.util.Date updatedAt) { this.updatedAt = updatedAt; } /** ** The Unix timestamp for the time when the service deployment was last updated. *
* * @return The Unix timestamp for the time when the service deployment was last updated. */ public java.util.Date getUpdatedAt() { return this.updatedAt; } /** ** The Unix timestamp for the time when the service deployment was last updated. *
* * @param updatedAt * The Unix timestamp for the time when the service deployment was last updated. * @return Returns a reference to this object so that method calls can be chained together. */ public Deployment withUpdatedAt(java.util.Date updatedAt) { setUpdatedAt(updatedAt); return this; } /** ** The capacity provider strategy that the deployment is using. *
* * @return The capacity provider strategy that the deployment is using. */ public java.util.List* The capacity provider strategy that the deployment is using. *
* * @param capacityProviderStrategy * The capacity provider strategy that the deployment is using. */ public void setCapacityProviderStrategy(java.util.Collection* The capacity provider strategy that the deployment is using. *
** 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 the deployment is using. * @return Returns a reference to this object so that method calls can be chained together. */ public Deployment withCapacityProviderStrategy(CapacityProviderStrategyItem... capacityProviderStrategy) { if (this.capacityProviderStrategy == null) { setCapacityProviderStrategy(new com.amazonaws.internal.SdkInternalList* The capacity provider strategy that the deployment is using. *
* * @param capacityProviderStrategy * The capacity provider strategy that the deployment is using. * @return Returns a reference to this object so that method calls can be chained together. */ public Deployment withCapacityProviderStrategy(java.util.Collection* The launch type the tasks in the service 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 service 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 service 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 service 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 service 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 service 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 Deployment withLaunchType(String launchType) { setLaunchType(launchType); return this; } /** ** The launch type the tasks in the service 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 service 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 Deployment withLaunchType(LaunchType launchType) { this.launchType = launchType.toString(); return this; } /** *
* The platform version that your tasks in the service run on. A platform version is only specified for tasks using
* the Fargate launch type. If one isn't specified, the LATEST
platform version is used. For more
* information, see Fargate Platform
* Versions in the Amazon Elastic Container Service Developer Guide.
*
LATEST
platform version is used.
* For more information, see Fargate Platform
* Versions in the Amazon Elastic Container Service Developer Guide.
*/
public void setPlatformVersion(String platformVersion) {
this.platformVersion = platformVersion;
}
/**
*
* The platform version that your tasks in the service run on. A platform version is only specified for tasks using
* the Fargate launch type. If one isn't specified, the LATEST
platform version is used. For more
* information, see Fargate Platform
* Versions in the Amazon Elastic Container Service Developer Guide.
*
LATEST
platform version is
* used. For more information, see Fargate
* Platform Versions in the Amazon Elastic Container Service Developer Guide.
*/
public String getPlatformVersion() {
return this.platformVersion;
}
/**
*
* The platform version that your tasks in the service run on. A platform version is only specified for tasks using
* the Fargate launch type. If one isn't specified, the LATEST
platform version is used. For more
* information, see Fargate Platform
* Versions in the Amazon Elastic Container Service Developer Guide.
*
LATEST
platform version is used.
* 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 Deployment withPlatformVersion(String platformVersion) {
setPlatformVersion(platformVersion);
return this;
}
/**
* * The operating system that your tasks in the service, or tasks are running on. A platform family is specified only * for tasks using the Fargate launch type. *
*
* All tasks that run as part of this service must use the same platformFamily
value as the service,
* for example, LINUX.
.
*
* All tasks that run as part of this service must use the same platformFamily
value as the
* service, for example, LINUX.
.
*/
public void setPlatformFamily(String platformFamily) {
this.platformFamily = platformFamily;
}
/**
*
* The operating system that your tasks in the service, or tasks are running on. A platform family is specified only * for tasks using the Fargate launch type. *
*
* All tasks that run as part of this service must use the same platformFamily
value as the service,
* for example, LINUX.
.
*
* All tasks that run as part of this service must use the same platformFamily
value as the
* service, for example, LINUX.
.
*/
public String getPlatformFamily() {
return this.platformFamily;
}
/**
*
* The operating system that your tasks in the service, or tasks are running on. A platform family is specified only * for tasks using the Fargate launch type. *
*
* All tasks that run as part of this service must use the same platformFamily
value as the service,
* for example, LINUX.
.
*
* All tasks that run as part of this service must use the same platformFamily
value as the
* service, for example, LINUX.
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Deployment withPlatformFamily(String platformFamily) {
setPlatformFamily(platformFamily);
return this;
}
/**
*
* The VPC subnet and security group configuration for tasks that receive their own elastic network interface by
* using the awsvpc
networking mode.
*
awsvpc
networking mode.
*/
public void setNetworkConfiguration(NetworkConfiguration networkConfiguration) {
this.networkConfiguration = networkConfiguration;
}
/**
*
* The VPC subnet and security group configuration for tasks that receive their own elastic network interface by
* using the awsvpc
networking mode.
*
awsvpc
networking mode.
*/
public NetworkConfiguration getNetworkConfiguration() {
return this.networkConfiguration;
}
/**
*
* The VPC subnet and security group configuration for tasks that receive their own elastic network interface by
* using the awsvpc
networking mode.
*
awsvpc
networking mode.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Deployment withNetworkConfiguration(NetworkConfiguration networkConfiguration) {
setNetworkConfiguration(networkConfiguration);
return this;
}
/**
*
* The rolloutState
of a service is only returned for services that use the rolling update (
* ECS
) deployment type that aren't behind a Classic Load Balancer.
*
* The rollout state of the deployment. When a service deployment is started, it begins in an
* IN_PROGRESS
state. When the service reaches a steady state, the deployment transitions to a
* COMPLETED
state. If the service fails to reach a steady state and circuit breaker is turned on, the
* deployment transitions to a FAILED
state. A deployment in FAILED
state doesn't launch
* any new tasks. For more information, see DeploymentCircuitBreaker.
*
* The rolloutState
of a service is only returned for services that use the rolling update (
* ECS
) deployment type that aren't behind a Classic Load Balancer.
*
* The rollout state of the deployment. When a service deployment is started, it begins in an
*
* The IN_PROGRESS
state. When the service reaches a steady state, the deployment transitions to a
* COMPLETED
state. If the service fails to reach a steady state and circuit breaker is turned
* on, the deployment transitions to a FAILED
state. A deployment in FAILED
state
* doesn't launch any new tasks. For more information, see DeploymentCircuitBreaker.
* @see DeploymentRolloutState
*/
public void setRolloutState(String rolloutState) {
this.rolloutState = rolloutState;
}
/**
* rolloutState
of a service is only returned for services that use the rolling update (
* ECS
) deployment type that aren't behind a Classic Load Balancer.
*
* The rollout state of the deployment. When a service deployment is started, it begins in an
* IN_PROGRESS
state. When the service reaches a steady state, the deployment transitions to a
* COMPLETED
state. If the service fails to reach a steady state and circuit breaker is turned on, the
* deployment transitions to a FAILED
state. A deployment in FAILED
state doesn't launch
* any new tasks. For more information, see DeploymentCircuitBreaker.
*
* The rolloutState
of a service is only returned for services that use the rolling update (
* ECS
) deployment type that aren't behind a Classic Load Balancer.
*
* The rollout state of the deployment. When a service deployment is started, it begins in an
*
* The IN_PROGRESS
state. When the service reaches a steady state, the deployment transitions to a
* COMPLETED
state. If the service fails to reach a steady state and circuit breaker is turned
* on, the deployment transitions to a FAILED
state. A deployment in FAILED
state
* doesn't launch any new tasks. For more information, see DeploymentCircuitBreaker.
* @see DeploymentRolloutState
*/
public String getRolloutState() {
return this.rolloutState;
}
/**
* rolloutState
of a service is only returned for services that use the rolling update (
* ECS
) deployment type that aren't behind a Classic Load Balancer.
*
* The rollout state of the deployment. When a service deployment is started, it begins in an
* IN_PROGRESS
state. When the service reaches a steady state, the deployment transitions to a
* COMPLETED
state. If the service fails to reach a steady state and circuit breaker is turned on, the
* deployment transitions to a FAILED
state. A deployment in FAILED
state doesn't launch
* any new tasks. For more information, see DeploymentCircuitBreaker.
*
* The rolloutState
of a service is only returned for services that use the rolling update (
* ECS
) deployment type that aren't behind a Classic Load Balancer.
*
* The rollout state of the deployment. When a service deployment is started, it begins in an
*
* The IN_PROGRESS
state. When the service reaches a steady state, the deployment transitions to a
* COMPLETED
state. If the service fails to reach a steady state and circuit breaker is turned
* on, the deployment transitions to a FAILED
state. A deployment in FAILED
state
* doesn't launch any new tasks. For more information, see DeploymentCircuitBreaker.
* @return Returns a reference to this object so that method calls can be chained together.
* @see DeploymentRolloutState
*/
public Deployment withRolloutState(String rolloutState) {
setRolloutState(rolloutState);
return this;
}
/**
* rolloutState
of a service is only returned for services that use the rolling update (
* ECS
) deployment type that aren't behind a Classic Load Balancer.
*
* The rollout state of the deployment. When a service deployment is started, it begins in an
* IN_PROGRESS
state. When the service reaches a steady state, the deployment transitions to a
* COMPLETED
state. If the service fails to reach a steady state and circuit breaker is turned on, the
* deployment transitions to a FAILED
state. A deployment in FAILED
state doesn't launch
* any new tasks. For more information, see DeploymentCircuitBreaker.
*
* The rolloutState
of a service is only returned for services that use the rolling update (
* ECS
) deployment type that aren't behind a Classic Load Balancer.
*
* The rollout state of the deployment. When a service deployment is started, it begins in an
* IN_PROGRESS
state. When the service reaches a steady state, the deployment transitions to a
* COMPLETED
state. If the service fails to reach a steady state and circuit breaker is turned
* on, the deployment transitions to a FAILED
state. A deployment in FAILED
state
* doesn't launch any new tasks. For more information, see DeploymentCircuitBreaker.
* @return Returns a reference to this object so that method calls can be chained together.
* @see DeploymentRolloutState
*/
public Deployment withRolloutState(DeploymentRolloutState rolloutState) {
this.rolloutState = rolloutState.toString();
return this;
}
/**
*
* A description of the rollout state of a deployment. *
* * @param rolloutStateReason * A description of the rollout state of a deployment. */ public void setRolloutStateReason(String rolloutStateReason) { this.rolloutStateReason = rolloutStateReason; } /** ** A description of the rollout state of a deployment. *
* * @return A description of the rollout state of a deployment. */ public String getRolloutStateReason() { return this.rolloutStateReason; } /** ** A description of the rollout state of a deployment. *
* * @param rolloutStateReason * A description of the rollout state of a deployment. * @return Returns a reference to this object so that method calls can be chained together. */ public Deployment withRolloutStateReason(String rolloutStateReason) { setRolloutStateReason(rolloutStateReason); return this; } /** ** The details of the Service Connect configuration that's used by this deployment. Compare the configuration * between multiple deployments when troubleshooting issues with new deployments. *
** The configuration for this service to discover and connect to services, and be discovered by, and connected from, * other services within a namespace. *
** Tasks that run in a namespace can use short names to connect to services in the namespace. Tasks can connect to * services across all of the clusters in the namespace. Tasks connect through a managed proxy container that * collects logs and metrics for increased visibility. Only the tasks that Amazon ECS services create are supported * with Service Connect. For more information, see Service Connect in * the Amazon Elastic Container Service Developer Guide. *
* * @param serviceConnectConfiguration * The details of the Service Connect configuration that's used by this deployment. Compare the configuration * between multiple deployments when troubleshooting issues with new deployments. ** The configuration for this service to discover and connect to services, and be discovered by, and * connected from, other services within a namespace. *
** Tasks that run in a namespace can use short names to connect to services in the namespace. Tasks can * connect to services across all of the clusters in the namespace. Tasks connect through a managed proxy * container that collects logs and metrics for increased visibility. Only the tasks that Amazon ECS services * create are supported with Service Connect. For more information, see Service * Connect in the Amazon Elastic Container Service Developer Guide. */ public void setServiceConnectConfiguration(ServiceConnectConfiguration serviceConnectConfiguration) { this.serviceConnectConfiguration = serviceConnectConfiguration; } /** *
* The details of the Service Connect configuration that's used by this deployment. Compare the configuration * between multiple deployments when troubleshooting issues with new deployments. *
** The configuration for this service to discover and connect to services, and be discovered by, and connected from, * other services within a namespace. *
** Tasks that run in a namespace can use short names to connect to services in the namespace. Tasks can connect to * services across all of the clusters in the namespace. Tasks connect through a managed proxy container that * collects logs and metrics for increased visibility. Only the tasks that Amazon ECS services create are supported * with Service Connect. For more information, see Service Connect in * the Amazon Elastic Container Service Developer Guide. *
* * @return The details of the Service Connect configuration that's used by this deployment. Compare the * configuration between multiple deployments when troubleshooting issues with new deployments. ** The configuration for this service to discover and connect to services, and be discovered by, and * connected from, other services within a namespace. *
** Tasks that run in a namespace can use short names to connect to services in the namespace. Tasks can * connect to services across all of the clusters in the namespace. Tasks connect through a managed proxy * container that collects logs and metrics for increased visibility. Only the tasks that Amazon ECS * services create are supported with Service Connect. For more information, see Service * Connect in the Amazon Elastic Container Service Developer Guide. */ public ServiceConnectConfiguration getServiceConnectConfiguration() { return this.serviceConnectConfiguration; } /** *
* The details of the Service Connect configuration that's used by this deployment. Compare the configuration * between multiple deployments when troubleshooting issues with new deployments. *
** The configuration for this service to discover and connect to services, and be discovered by, and connected from, * other services within a namespace. *
** Tasks that run in a namespace can use short names to connect to services in the namespace. Tasks can connect to * services across all of the clusters in the namespace. Tasks connect through a managed proxy container that * collects logs and metrics for increased visibility. Only the tasks that Amazon ECS services create are supported * with Service Connect. For more information, see Service Connect in * the Amazon Elastic Container Service Developer Guide. *
* * @param serviceConnectConfiguration * The details of the Service Connect configuration that's used by this deployment. Compare the configuration * between multiple deployments when troubleshooting issues with new deployments. ** The configuration for this service to discover and connect to services, and be discovered by, and * connected from, other services within a namespace. *
** Tasks that run in a namespace can use short names to connect to services in the namespace. Tasks can * connect to services across all of the clusters in the namespace. Tasks connect through a managed proxy * container that collects logs and metrics for increased visibility. Only the tasks that Amazon ECS services * create are supported with Service Connect. For more information, see Service * Connect in the Amazon Elastic Container Service Developer Guide. * @return Returns a reference to this object so that method calls can be chained together. */ public Deployment withServiceConnectConfiguration(ServiceConnectConfiguration serviceConnectConfiguration) { setServiceConnectConfiguration(serviceConnectConfiguration); return this; } /** *
* The list of Service Connect resources that are associated with this deployment. Each list entry maps a discovery * name to a Cloud Map service name. *
* * @return The list of Service Connect resources that are associated with this deployment. Each list entry maps a * discovery name to a Cloud Map service name. */ public java.util.List* The list of Service Connect resources that are associated with this deployment. Each list entry maps a discovery * name to a Cloud Map service name. *
* * @param serviceConnectResources * The list of Service Connect resources that are associated with this deployment. Each list entry maps a * discovery name to a Cloud Map service name. */ public void setServiceConnectResources(java.util.Collection* The list of Service Connect resources that are associated with this deployment. Each list entry maps a discovery * name to a Cloud Map service name. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setServiceConnectResources(java.util.Collection)} or * {@link #withServiceConnectResources(java.util.Collection)} if you want to override the existing values. *
* * @param serviceConnectResources * The list of Service Connect resources that are associated with this deployment. Each list entry maps a * discovery name to a Cloud Map service name. * @return Returns a reference to this object so that method calls can be chained together. */ public Deployment withServiceConnectResources(ServiceConnectServiceResource... serviceConnectResources) { if (this.serviceConnectResources == null) { setServiceConnectResources(new com.amazonaws.internal.SdkInternalList* The list of Service Connect resources that are associated with this deployment. Each list entry maps a discovery * name to a Cloud Map service name. *
* * @param serviceConnectResources * The list of Service Connect resources that are associated with this deployment. Each list entry maps a * discovery name to a Cloud Map service name. * @return Returns a reference to this object so that method calls can be chained together. */ public Deployment withServiceConnectResources(java.util.Collection