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:
  • Constructor Details

    • LoadBalancer

      public LoadBalancer()
  • Method Details

    • 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 the hostPort of the port mapping.

      Parameters:
      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.
    • 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 the hostPort 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 the hostPort 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 the hostPort of the port mapping.

      Parameters:
      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.
      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 class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public LoadBalancer clone()
      Overrides:
      clone in class Object