Class LoadBalancer
- All Implemented Interfaces:
Serializable, Cloneable
Details on a load balancer that is used with a service.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()booleanThe name of the container (as it appears in a container definition) to associate with the load balancer.The port on the container to associate with the load balancer.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.toString()Returns a string representation of this object; useful for testing and debugging.withContainerName(String containerName) The name of the container (as it appears in a container definition) to associate with the load balancer.withContainerPort(Integer containerPort) The port on the container to associate with the load balancer.withLoadBalancerName(String loadBalancerName) The name of the load balancer.
-
Constructor Details
-
LoadBalancer
public LoadBalancer()
-
-
Method Details
-
setLoadBalancerName
The name of the load balancer.
- Parameters:
loadBalancerName- The name of the load balancer.
-
getLoadBalancerName
The name of the load balancer.
- Returns:
- The name of the load balancer.
-
withLoadBalancerName
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
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
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
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
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
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
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
-
equals
-
hashCode
-
clone
-