Class LoadBalancer
- java.lang.Object
-
- com.amazonaws.services.ecs.model.LoadBalancer
-
- All Implemented Interfaces:
Serializable,Cloneable
public class LoadBalancer extends Object implements Serializable, Cloneable
Details on a load balancer that is used with a service.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LoadBalancer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LoadBalancerclone()booleanequals(Object obj)StringgetContainerName()The name of the container (as it appears in a container definition) to associate with the load balancer.IntegergetContainerPort()The port on the container to associate with the load balancer.StringgetLoadBalancerName()The name of the load balancer.inthashCode()voidsetContainerName(String containerName)The name of the container (as it appears in a container definition) to associate with the load balancer.voidsetContainerPort(Integer containerPort)The port on the container to associate with the load balancer.voidsetLoadBalancerName(String loadBalancerName)The name of the load balancer.StringtoString()Returns a string representation of this object; useful for testing and debugging.LoadBalancerwithContainerName(String containerName)The name of the container (as it appears in a container definition) to associate with the load balancer.LoadBalancerwithContainerPort(Integer containerPort)The port on the container to associate with the load balancer.LoadBalancerwithLoadBalancerName(String loadBalancerName)The name of the load balancer.
-
-
-
Method Detail
-
setLoadBalancerName
public void setLoadBalancerName(String loadBalancerName)
The name of the load balancer.
- Parameters:
loadBalancerName- The name of the load balancer.
-
getLoadBalancerName
public String getLoadBalancerName()
The name of the load balancer.
- Returns:
- The name of the load balancer.
-
withLoadBalancerName
public LoadBalancer withLoadBalancerName(String loadBalancerName)
The name of the load balancer.
- Parameters:
loadBalancerName- The name of the load balancer.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setContainerName
public void setContainerName(String containerName)
The name of the container (as it appears in a container definition) to associate with the load balancer.
- Parameters:
containerName- The name of the container (as it appears in a container definition) to associate with the load balancer.
-
getContainerName
public String getContainerName()
The name of the container (as it appears in a container definition) to associate with the load balancer.
- Returns:
- The name of the container (as it appears in a container definition) to associate with the load balancer.
-
withContainerName
public LoadBalancer withContainerName(String containerName)
The name of the container (as it appears in a container definition) to associate with the load balancer.
- Parameters:
containerName- The name of the container (as it appears in a container definition) to associate with the load balancer.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setContainerPort
public void setContainerPort(Integer containerPort)
The port on the container to associate with the load balancer. This port must correspond to a
containerPortin the service's task definition. Your container instances must allow ingress traffic on thehostPortof the port mapping.- Parameters:
containerPort- The port on the container to associate with the load balancer. This port must correspond to acontainerPortin the service's task definition. Your container instances must allow ingress traffic on thehostPortof the port mapping.
-
getContainerPort
public Integer getContainerPort()
The port on the container to associate with the load balancer. This port must correspond to a
containerPortin the service's task definition. Your container instances must allow ingress traffic on thehostPortof the port mapping.- Returns:
- The port on the container to associate with the load balancer.
This port must correspond to a
containerPortin the service's task definition. Your container instances must allow ingress traffic on thehostPortof the port mapping.
-
withContainerPort
public LoadBalancer withContainerPort(Integer containerPort)
The port on the container to associate with the load balancer. This port must correspond to a
containerPortin the service's task definition. Your container instances must allow ingress traffic on thehostPortof the port mapping.- Parameters:
containerPort- The port on the container to associate with the load balancer. This port must correspond to acontainerPortin the service's task definition. Your container instances must allow ingress traffic on thehostPortof the port mapping.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public LoadBalancer clone()
-
-