public class LoadBalancer
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Details on a load balancer that is used with a service.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
containerName
The name of the container (as it appears in a container definition) to
associate with the load balancer.
|
private java.lang.Integer |
containerPort
The port on the container to associate with the load balancer.
|
private java.lang.String |
loadBalancerName
The name of the load balancer.
|
Constructor and Description |
---|
LoadBalancer() |
Modifier and Type | Method and Description |
---|---|
LoadBalancer |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getContainerName()
The name of the container (as it appears in a container definition) to
associate with the load balancer.
|
java.lang.Integer |
getContainerPort()
The port on the container to associate with the load balancer.
|
java.lang.String |
getLoadBalancerName()
The name of the load balancer.
|
int |
hashCode() |
void |
setContainerName(java.lang.String containerName)
The name of the container (as it appears in a container definition) to
associate with the load balancer.
|
void |
setContainerPort(java.lang.Integer containerPort)
The port on the container to associate with the load balancer.
|
void |
setLoadBalancerName(java.lang.String loadBalancerName)
The name of the load balancer.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
LoadBalancer |
withContainerName(java.lang.String containerName)
The name of the container (as it appears in a container definition) to
associate with the load balancer.
|
LoadBalancer |
withContainerPort(java.lang.Integer containerPort)
The port on the container to associate with the load balancer.
|
LoadBalancer |
withLoadBalancerName(java.lang.String loadBalancerName)
The name of the load balancer.
|
private java.lang.String loadBalancerName
The name of the load balancer.
private java.lang.String containerName
The name of the container (as it appears in a container definition) to associate with the load balancer.
private java.lang.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 the
hostPort
of the port mapping.
public void setLoadBalancerName(java.lang.String loadBalancerName)
The name of the load balancer.
loadBalancerName
- The name of the load balancer.public java.lang.String getLoadBalancerName()
The name of the load balancer.
public LoadBalancer withLoadBalancerName(java.lang.String loadBalancerName)
The name of the load balancer.
loadBalancerName
- The name of the load balancer.public void setContainerName(java.lang.String containerName)
The name of the container (as it appears in a container definition) to associate with the load balancer.
containerName
- The name of the container (as it appears in a container
definition) to associate with the load balancer.public java.lang.String getContainerName()
The name of the container (as it appears in a container definition) to associate with the load balancer.
public LoadBalancer withContainerName(java.lang.String containerName)
The name of the container (as it appears in a container definition) to associate with the load balancer.
containerName
- The name of the container (as it appears in a container
definition) to associate with the load balancer.public void setContainerPort(java.lang.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 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
service's task definition. Your container instances must allow
ingress traffic on the hostPort
of the port mapping.public java.lang.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 the
hostPort
of the port mapping.
containerPort
in the
service's task definition. Your container instances must allow
ingress traffic on the hostPort
of the port mapping.public LoadBalancer withContainerPort(java.lang.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 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
service's task definition. Your container instances must allow
ingress traffic on the hostPort
of the port mapping.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public LoadBalancer clone()
clone
in class java.lang.Object