CopyableBuilder<Service.Builder,Service>
, SdkBuilder<Service.Builder,Service>
public static interface Service.Builder extends CopyableBuilder<Service.Builder,Service>
Modifier and Type | Method | Description |
---|---|---|
Service.Builder |
clusterArn(String clusterArn) |
The Amazon Resource Name (ARN) of the cluster that hosts the service.
|
Service.Builder |
createdAt(Date createdAt) |
The Unix timestamp for when the service was created.
|
Service.Builder |
deploymentConfiguration(DeploymentConfiguration deploymentConfiguration) |
Optional deployment parameters that control how many tasks run during the deployment and the ordering of
stopping and starting tasks.
|
Service.Builder |
deployments(Collection<Deployment> deployments) |
The current state of deployments for the service.
|
Service.Builder |
deployments(Deployment... deployments) |
The current state of deployments for the service.
|
Service.Builder |
desiredCount(Integer desiredCount) |
The desired number of instantiations of the task definition to keep running on the service.
|
Service.Builder |
events(Collection<ServiceEvent> events) |
The event stream for your service.
|
Service.Builder |
events(ServiceEvent... events) |
The event stream for your service.
|
Service.Builder |
loadBalancers(Collection<LoadBalancer> loadBalancers) |
A list of Elastic Load Balancing load balancer objects, containing the load balancer name, the container name
(as it appears in a container definition), and the container port to access from the load balancer.
|
Service.Builder |
loadBalancers(LoadBalancer... loadBalancers) |
A list of Elastic Load Balancing load balancer objects, containing the load balancer name, the container name
(as it appears in a container definition), and the container port to access from the load balancer.
|
Service.Builder |
pendingCount(Integer pendingCount) |
The number of tasks in the cluster that are in the
PENDING state. |
Service.Builder |
placementConstraints(Collection<PlacementConstraint> placementConstraints) |
The placement constraints for the tasks in the service.
|
Service.Builder |
placementConstraints(PlacementConstraint... placementConstraints) |
The placement constraints for the tasks in the service.
|
Service.Builder |
placementStrategy(Collection<PlacementStrategy> placementStrategy) |
The placement strategy that determines how tasks for the service are placed.
|
Service.Builder |
placementStrategy(PlacementStrategy... placementStrategy) |
The placement strategy that determines how tasks for the service are placed.
|
Service.Builder |
roleArn(String roleArn) |
The Amazon Resource Name (ARN) of the IAM role associated with the service that allows the Amazon ECS
container agent to register container instances with an Elastic Load Balancing load balancer.
|
Service.Builder |
runningCount(Integer runningCount) |
The number of tasks in the cluster that are in the
RUNNING state. |
Service.Builder |
serviceArn(String serviceArn) |
The Amazon Resource Name (ARN) that identifies the service.
|
Service.Builder |
serviceName(String serviceName) |
The name of your service.
|
Service.Builder |
status(String status) |
The status of the service.
|
Service.Builder |
taskDefinition(String taskDefinition) |
The task definition to use for tasks in the service.
|
copy
apply, build
Service.Builder serviceArn(String serviceArn)
The Amazon Resource Name (ARN) that identifies the service. The ARN contains the arn:aws:ecs
namespace, followed by the region of the service, the AWS account ID of the service owner, the
service
namespace, and then the service name. For example,
arn:aws:ecs:region:012345678910:service/my-service
.
serviceArn
- The Amazon Resource Name (ARN) that identifies the service. The ARN contains the
arn:aws:ecs
namespace, followed by the region of the service, the AWS account ID of the
service owner, the service
namespace, and then the service name. For example,
arn:aws:ecs:region:012345678910:service/my-service
.Service.Builder serviceName(String serviceName)
The name of your service. Up to 255 letters (uppercase and lowercase), numbers, hyphens, and underscores are allowed. Service names must be unique within a cluster, but you can have similarly named services in multiple clusters within a region or across multiple regions.
serviceName
- The name of your service. Up to 255 letters (uppercase and lowercase), numbers, hyphens, and
underscores are allowed. Service names must be unique within a cluster, but you can have similarly
named services in multiple clusters within a region or across multiple regions.Service.Builder clusterArn(String clusterArn)
The Amazon Resource Name (ARN) of the cluster that hosts the service.
clusterArn
- The Amazon Resource Name (ARN) of the cluster that hosts the service.Service.Builder loadBalancers(Collection<LoadBalancer> loadBalancers)
A list of Elastic Load Balancing load balancer objects, containing the load balancer name, the container name (as it appears in a container definition), and the container port to access from the load balancer.
loadBalancers
- A list of Elastic Load Balancing load balancer objects, containing the load balancer name, the
container name (as it appears in a container definition), and the container port to access from the
load balancer.Service.Builder loadBalancers(LoadBalancer... loadBalancers)
A list of Elastic Load Balancing load balancer objects, containing the load balancer name, the container name (as it appears in a container definition), and the container port to access from the load balancer.
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
- A list of Elastic Load Balancing load balancer objects, containing the load balancer name, the
container name (as it appears in a container definition), and the container port to access from the
load balancer.Service.Builder status(String status)
The status of the service. The valid values are ACTIVE
, DRAINING
, or
INACTIVE
.
status
- The status of the service. The valid values are ACTIVE
, DRAINING
, or
INACTIVE
.Service.Builder desiredCount(Integer desiredCount)
The desired number of instantiations of the task definition to keep running on the service. This value is specified when the service is created with CreateService, and it can be modified with UpdateService.
desiredCount
- The desired number of instantiations of the task definition to keep running on the service. This value
is specified when the service is created with CreateService, and it can be modified with
UpdateService.Service.Builder runningCount(Integer runningCount)
The number of tasks in the cluster that are in the RUNNING
state.
runningCount
- The number of tasks in the cluster that are in the RUNNING
state.Service.Builder pendingCount(Integer pendingCount)
The number of tasks in the cluster that are in the PENDING
state.
pendingCount
- The number of tasks in the cluster that are in the PENDING
state.Service.Builder taskDefinition(String taskDefinition)
The task definition to use for tasks in the service. This value is specified when the service is created with CreateService, and it can be modified with UpdateService.
taskDefinition
- The task definition to use for tasks in the service. This value is specified when the service is
created with CreateService, and it can be modified with UpdateService.Service.Builder deploymentConfiguration(DeploymentConfiguration deploymentConfiguration)
Optional deployment parameters that control how many tasks run during the deployment and the ordering of stopping and starting tasks.
deploymentConfiguration
- Optional deployment parameters that control how many tasks run during the deployment and the ordering
of stopping and starting tasks.Service.Builder deployments(Collection<Deployment> deployments)
The current state of deployments for the service.
deployments
- The current state of deployments for the service.Service.Builder deployments(Deployment... deployments)
The current state of deployments for the service.
NOTE: This method appends the values to the existing list (if any). Use
#setDeployments(java.util.Collection)
or #withDeployments(java.util.Collection)
if you want
to override the existing values.
deployments
- The current state of deployments for the service.Service.Builder roleArn(String roleArn)
The Amazon Resource Name (ARN) of the IAM role associated with the service that allows the Amazon ECS container agent to register container instances with an Elastic Load Balancing load balancer.
roleArn
- The Amazon Resource Name (ARN) of the IAM role associated with the service that allows the Amazon ECS
container agent to register container instances with an Elastic Load Balancing load balancer.Service.Builder events(Collection<ServiceEvent> events)
The event stream for your service. A maximum of 100 of the latest events are displayed.
events
- The event stream for your service. A maximum of 100 of the latest events are displayed.Service.Builder events(ServiceEvent... events)
The event stream for your service. A maximum of 100 of the latest events are displayed.
NOTE: This method appends the values to the existing list (if any). Use
#setEvents(java.util.Collection)
or #withEvents(java.util.Collection)
if you want to override
the existing values.
events
- The event stream for your service. A maximum of 100 of the latest events are displayed.Service.Builder createdAt(Date createdAt)
The Unix timestamp for when the service was created.
createdAt
- The Unix timestamp for when the service was created.Service.Builder placementConstraints(Collection<PlacementConstraint> placementConstraints)
The placement constraints for the tasks in the service.
placementConstraints
- The placement constraints for the tasks in the service.Service.Builder placementConstraints(PlacementConstraint... placementConstraints)
The placement constraints for the tasks in the service.
NOTE: This method appends the values to the existing list (if any). Use
#setPlacementConstraints(java.util.Collection)
or
#withPlacementConstraints(java.util.Collection)
if you want to override the existing values.
placementConstraints
- The placement constraints for the tasks in the service.Service.Builder placementStrategy(Collection<PlacementStrategy> placementStrategy)
The placement strategy that determines how tasks for the service are placed.
placementStrategy
- The placement strategy that determines how tasks for the service are placed.Service.Builder placementStrategy(PlacementStrategy... placementStrategy)
The placement strategy that determines how tasks for the service are placed.
NOTE: This method appends the values to the existing list (if any). Use
#setPlacementStrategy(java.util.Collection)
or #withPlacementStrategy(java.util.Collection)
if you want to override the existing values.
placementStrategy
- The placement strategy that determines how tasks for the service are placed.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.