public class AttachLoadBalancersRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
AttachLoadBalancers operation.
Attaches one or more load balancers to the specified Auto Scaling group.
To describe the load balancers for an Auto Scaling group, use DescribeLoadBalancers. To detach the load balancer from the Auto Scaling group, use DetachLoadBalancers.
For more information, see Attach a Load Balancer to Your Auto Scaling Group in the Auto Scaling Developer Guide .
NOOP| Constructor and Description |
|---|
AttachLoadBalancersRequest() |
| Modifier and Type | Method and Description |
|---|---|
AttachLoadBalancersRequest |
clone() |
boolean |
equals(Object obj) |
String |
getAutoScalingGroupName()
The name of the group.
|
List<String> |
getLoadBalancerNames()
One or more load balancer names.
|
int |
hashCode() |
void |
setAutoScalingGroupName(String autoScalingGroupName)
The name of the group.
|
void |
setLoadBalancerNames(Collection<String> loadBalancerNames)
One or more load balancer names.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
AttachLoadBalancersRequest |
withAutoScalingGroupName(String autoScalingGroupName)
The name of the group.
|
AttachLoadBalancersRequest |
withLoadBalancerNames(Collection<String> loadBalancerNames)
One or more load balancer names.
|
AttachLoadBalancersRequest |
withLoadBalancerNames(String... loadBalancerNames)
One or more load balancer names.
|
copyBaseTo, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic String getAutoScalingGroupName()
Constraints:
Length: 1 - 1600
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
public void setAutoScalingGroupName(String autoScalingGroupName)
Constraints:
Length: 1 - 1600
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
autoScalingGroupName - The name of the group.public AttachLoadBalancersRequest withAutoScalingGroupName(String autoScalingGroupName)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 1600
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
autoScalingGroupName - The name of the group.public List<String> getLoadBalancerNames()
public void setLoadBalancerNames(Collection<String> loadBalancerNames)
loadBalancerNames - One or more load balancer names.public AttachLoadBalancersRequest withLoadBalancerNames(String... loadBalancerNames)
NOTE: This method appends the values to the existing list (if
any). Use setLoadBalancerNames(java.util.Collection) or
withLoadBalancerNames(java.util.Collection) if you want to
override the existing values.
Returns a reference to this object so that method calls can be chained together.
loadBalancerNames - One or more load balancer names.public AttachLoadBalancersRequest withLoadBalancerNames(Collection<String> loadBalancerNames)
Returns a reference to this object so that method calls can be chained together.
loadBalancerNames - One or more load balancer names.public String toString()
toString in class ObjectObject.toString()public AttachLoadBalancersRequest clone()
clone in class AmazonWebServiceRequestCopyright © 2015. All rights reserved.