public class AttachLoadBalancersRequest extends AmazonWebServiceRequest implements java.io.Serializable
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.
Constructor and Description |
---|
AttachLoadBalancersRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAutoScalingGroupName()
The name of the group.
|
java.util.List<java.lang.String> |
getLoadBalancerNames()
One or more load balancer names.
|
int |
hashCode() |
void |
setAutoScalingGroupName(java.lang.String autoScalingGroupName)
The name of the group.
|
void |
setLoadBalancerNames(java.util.Collection<java.lang.String> loadBalancerNames)
One or more load balancer names.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
AttachLoadBalancersRequest |
withAutoScalingGroupName(java.lang.String autoScalingGroupName)
The name of the group.
|
AttachLoadBalancersRequest |
withLoadBalancerNames(java.util.Collection<java.lang.String> loadBalancerNames)
One or more load balancer names.
|
AttachLoadBalancersRequest |
withLoadBalancerNames(java.lang.String... loadBalancerNames)
One or more load balancer names.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public java.lang.String getAutoScalingGroupName()
The name of the group.
Constraints:
Length: 1 - 1600
Pattern: [ --�𐀀-\r\n\t]*
The name of the group.
public void setAutoScalingGroupName(java.lang.String autoScalingGroupName)
The name of the group.
Constraints:
Length: 1 - 1600
Pattern: [ --�𐀀-\r\n\t]*
autoScalingGroupName
- The name of the group.
public AttachLoadBalancersRequest withAutoScalingGroupName(java.lang.String autoScalingGroupName)
The name of the group.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 1600
Pattern: [ --�𐀀-\r\n\t]*
autoScalingGroupName
- The name of the group.
public java.util.List<java.lang.String> getLoadBalancerNames()
One or more load balancer names.
One or more load balancer names.
public void setLoadBalancerNames(java.util.Collection<java.lang.String> loadBalancerNames)
One or more load balancer names.
loadBalancerNames
- One or more load balancer names.
public AttachLoadBalancersRequest withLoadBalancerNames(java.lang.String... loadBalancerNames)
One or more load balancer names.
Returns a reference to this object so that method calls can be chained together.
loadBalancerNames
- One or more load balancer names.
public AttachLoadBalancersRequest withLoadBalancerNames(java.util.Collection<java.lang.String> loadBalancerNames)
One or more load balancer names.
Returns a reference to this object so that method calls can be chained together.
loadBalancerNames
- One or more load balancer names.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.