Interface AwsEcsServiceLoadBalancersDetails.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<AwsEcsServiceLoadBalancersDetails.Builder,
,AwsEcsServiceLoadBalancersDetails> SdkBuilder<AwsEcsServiceLoadBalancersDetails.Builder,
,AwsEcsServiceLoadBalancersDetails> SdkPojo
- Enclosing class:
AwsEcsServiceLoadBalancersDetails
-
Method Summary
Modifier and TypeMethodDescriptioncontainerName
(String containerName) The name of the container to associate with the load balancer.containerPort
(Integer containerPort) The port on the container to associate with the load balancer.loadBalancerName
(String loadBalancerName) The name of the load balancer to associate with the Amazon ECS service or task set.targetGroupArn
(String targetGroupArn) The ARN of the Elastic Load Balancing target group or groups associated with a service or task set.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
containerName
The name of the container to associate with the load balancer.
- Parameters:
containerName
- The name of the container to associate with the load balancer.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
containerPort
The port on the container to associate with the load balancer. This port must correspond to a
containerPort
in the task definition the tasks in the service are using. For tasks that use the EC2 launch type, the container instance they are launched on must allow ingress traffic on thehostPort
of the port mapping.- Parameters:
containerPort
- The port on the container to associate with the load balancer. This port must correspond to acontainerPort
in the task definition the tasks in the service are using. For tasks that use the EC2 launch type, the container instance they are launched on must allow ingress traffic on thehostPort
of the port mapping.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
loadBalancerName
The name of the load balancer to associate with the Amazon ECS service or task set.
Only specified when using a Classic Load Balancer. For an Application Load Balancer or a Network Load Balancer, the load balancer name is omitted.
- Parameters:
loadBalancerName
- The name of the load balancer to associate with the Amazon ECS service or task set.Only specified when using a Classic Load Balancer. For an Application Load Balancer or a Network Load Balancer, the load balancer name is omitted.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
targetGroupArn
The ARN of the Elastic Load Balancing target group or groups associated with a service or task set.
Only specified when using an Application Load Balancer or a Network Load Balancer. For a Classic Load Balancer, the target group ARN is omitted.
- Parameters:
targetGroupArn
- The ARN of the Elastic Load Balancing target group or groups associated with a service or task set.Only specified when using an Application Load Balancer or a Network Load Balancer. For a Classic Load Balancer, the target group ARN is omitted.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-