@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class LoadBalancer extends Object implements Serializable, Cloneable, StructuredPojo
Details on a load balancer that is used with a service.
Constructor and Description |
---|
LoadBalancer() |
Modifier and Type | Method and Description |
---|---|
LoadBalancer |
clone() |
boolean |
equals(Object obj) |
String |
getContainerName()
The name of the container (as it appears in a container definition) to associate with the load balancer.
|
Integer |
getContainerPort()
The port on the container to associate with the load balancer.
|
String |
getLoadBalancerName()
The name of a Classic load balancer.
|
String |
getTargetGroupArn()
The full Amazon Resource Name (ARN) of the Elastic Load Balancing target group associated with a service.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
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 a Classic load balancer.
|
void |
setTargetGroupArn(String targetGroupArn)
The full Amazon Resource Name (ARN) of the Elastic Load Balancing target group associated with a service.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
LoadBalancer |
withContainerName(String containerName)
The name of the container (as it appears in a container definition) to associate with the load balancer.
|
LoadBalancer |
withContainerPort(Integer containerPort)
The port on the container to associate with the load balancer.
|
LoadBalancer |
withLoadBalancerName(String loadBalancerName)
The name of a Classic load balancer.
|
LoadBalancer |
withTargetGroupArn(String targetGroupArn)
The full Amazon Resource Name (ARN) of the Elastic Load Balancing target group associated with a service.
|
public void setTargetGroupArn(String targetGroupArn)
The full Amazon Resource Name (ARN) of the Elastic Load Balancing target group associated with a service.
targetGroupArn
- The full Amazon Resource Name (ARN) of the Elastic Load Balancing target group associated with a service.public String getTargetGroupArn()
The full Amazon Resource Name (ARN) of the Elastic Load Balancing target group associated with a service.
public LoadBalancer withTargetGroupArn(String targetGroupArn)
The full Amazon Resource Name (ARN) of the Elastic Load Balancing target group associated with a service.
targetGroupArn
- The full Amazon Resource Name (ARN) of the Elastic Load Balancing target group associated with a service.public void setLoadBalancerName(String loadBalancerName)
The name of a Classic load balancer.
loadBalancerName
- The name of a Classic load balancer.public String getLoadBalancerName()
The name of a Classic load balancer.
public LoadBalancer withLoadBalancerName(String loadBalancerName)
The name of a Classic load balancer.
loadBalancerName
- The name of a Classic load balancer.public void setContainerName(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 String getContainerName()
The name of the container (as it appears in a container definition) to associate with the load balancer.
public LoadBalancer withContainerName(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(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 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(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 String toString()
toString
in class Object
Object.toString()
public LoadBalancer clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall
in interface StructuredPojo
Copyright © 2017. All rights reserved.