Class LoadBalancer

    • Constructor Detail

      • LoadBalancer

        public LoadBalancer()
    • 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 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:
        Object.toString()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object