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()
boolean
The 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.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.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
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
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
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
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-