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 LoadBalancer
clone()
boolean
equals(Object obj)
String
getContainerName()
The name of the container (as it appears in a container definition) 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.int
hashCode()
void
setContainerName(String containerName)
The name of the container (as it appears in a container definition) 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.String
toString()
Returns a string representation of this object; useful for testing and debugging.LoadBalancer
withContainerName(String containerName)
The name of the container (as it appears in a container definition) to associate with the load balancer.LoadBalancer
withContainerPort(Integer containerPort)
The port on the container to associate with the load balancer.LoadBalancer
withLoadBalancerName(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
containerPort
in the service's task definition. Your container instances 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 service's task definition. Your container instances must allow ingress traffic on thehostPort
of the port mapping.
-
getContainerPort
public Integer getContainerPort()
The port on the container to associate with the load balancer. This port must correspond to a
containerPort
in the service's task definition. Your container instances must allow ingress traffic on thehostPort
of the port mapping.- Returns:
- The port on the container to associate with the load balancer.
This port must correspond to a
containerPort
in the service's task definition. Your container instances must allow ingress traffic on thehostPort
of 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
containerPort
in the service's task definition. Your container instances 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 service's task definition. Your container instances 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.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public LoadBalancer clone()
-
-