@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AwsEcsServiceLoadBalancersDetails extends Object implements Serializable, Cloneable, StructuredPojo
Information about a load balancer that the service uses.
Constructor and Description |
---|
AwsEcsServiceLoadBalancersDetails() |
Modifier and Type | Method and Description |
---|---|
AwsEcsServiceLoadBalancersDetails |
clone() |
boolean |
equals(Object obj) |
String |
getContainerName()
The name of the container to associate with the load balancer.
|
Integer |
getContainerPort()
The port on the container to associate with the load balancer.
|
String |
getLoadBalancerName()
The name of the load balancer to associate with the Amazon ECS service or task set.
|
String |
getTargetGroupArn()
The ARN of the Elastic Load Balancing target group or groups associated with a service or task set.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setContainerName(String containerName)
The name of the container to associate with the load balancer.
|
void |
setContainerPort(Integer containerPort)
The port on the container to associate with the load balancer.
|
void |
setLoadBalancerName(String loadBalancerName)
The name of the load balancer to associate with the Amazon ECS service or task set.
|
void |
setTargetGroupArn(String targetGroupArn)
The ARN of the Elastic Load Balancing target group or groups associated with a service or task set.
|
String |
toString()
Returns a string representation of this object.
|
AwsEcsServiceLoadBalancersDetails |
withContainerName(String containerName)
The name of the container to associate with the load balancer.
|
AwsEcsServiceLoadBalancersDetails |
withContainerPort(Integer containerPort)
The port on the container to associate with the load balancer.
|
AwsEcsServiceLoadBalancersDetails |
withLoadBalancerName(String loadBalancerName)
The name of the load balancer to associate with the Amazon ECS service or task set.
|
AwsEcsServiceLoadBalancersDetails |
withTargetGroupArn(String targetGroupArn)
The ARN of the Elastic Load Balancing target group or groups associated with a service or task set.
|
public void setContainerName(String containerName)
The name of the container to associate with the load balancer.
containerName
- The name of the container to associate with the load balancer.public String getContainerName()
The name of the container to associate with the load balancer.
public AwsEcsServiceLoadBalancersDetails withContainerName(String containerName)
The name of the container to associate with the load balancer.
containerName
- The name of the container to associate with the load balancer.public void setContainerPort(Integer 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 the hostPort
of the port mapping.
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 the
hostPort
of the port mapping.public Integer getContainerPort()
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 the hostPort
of the port mapping.
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 the
hostPort
of the port mapping.public AwsEcsServiceLoadBalancersDetails withContainerPort(Integer 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 the hostPort
of the port mapping.
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 the
hostPort
of the port mapping.public void setLoadBalancerName(String 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.
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.
public String getLoadBalancerName()
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.
Only specified when using a Classic Load Balancer. For an Application Load Balancer or a Network Load Balancer, the load balancer name is omitted.
public AwsEcsServiceLoadBalancersDetails withLoadBalancerName(String 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.
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.
public void setTargetGroupArn(String 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.
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.
public String getTargetGroupArn()
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.
Only specified when using an Application Load Balancer or a Network Load Balancer. For a Classic Load Balancer, the target group ARN is omitted.
public AwsEcsServiceLoadBalancersDetails withTargetGroupArn(String 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.
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.
public String toString()
toString
in class Object
Object.toString()
public AwsEcsServiceLoadBalancersDetails clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.