public class ApplySecurityGroupsToLoadBalancerRequest extends AmazonWebServiceRequest implements java.io.Serializable
Associates one or more security groups with your load balancer in a virtual private cloud (VPC). The specified security groups override the previously associated security groups.
For more information, see Security Groups for Load Balancers in a VPC in the Elastic Load Balancing Developer Guide.
Constructor and Description |
---|
ApplySecurityGroupsToLoadBalancerRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getLoadBalancerName()
The name of the load balancer.
|
java.util.List<java.lang.String> |
getSecurityGroups()
The IDs of the security groups to associate with the load balancer.
|
int |
hashCode() |
void |
setLoadBalancerName(java.lang.String loadBalancerName)
The name of the load balancer.
|
void |
setSecurityGroups(java.util.Collection<java.lang.String> securityGroups)
The IDs of the security groups to associate with the load balancer.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ApplySecurityGroupsToLoadBalancerRequest |
withLoadBalancerName(java.lang.String loadBalancerName)
The name of the load balancer.
|
ApplySecurityGroupsToLoadBalancerRequest |
withSecurityGroups(java.util.Collection<java.lang.String> securityGroups)
The IDs of the security groups to associate with the load balancer.
|
ApplySecurityGroupsToLoadBalancerRequest |
withSecurityGroups(java.lang.String... securityGroups)
The IDs of the security groups to associate with the load balancer.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public ApplySecurityGroupsToLoadBalancerRequest()
public java.lang.String getLoadBalancerName()
The name of the load balancer.
The name of the load balancer.
public void setLoadBalancerName(java.lang.String loadBalancerName)
The name of the load balancer.
loadBalancerName
- The name of the load balancer.
public ApplySecurityGroupsToLoadBalancerRequest withLoadBalancerName(java.lang.String loadBalancerName)
The name of the load balancer.
Returns a reference to this object so that method calls can be chained together.
loadBalancerName
- The name of the load balancer.
public java.util.List<java.lang.String> getSecurityGroups()
The IDs of the security groups to associate with the load balancer. Note that you cannot specify the name of the security group.
The IDs of the security groups to associate with the load balancer. Note that you cannot specify the name of the security group.
public void setSecurityGroups(java.util.Collection<java.lang.String> securityGroups)
The IDs of the security groups to associate with the load balancer. Note that you cannot specify the name of the security group.
securityGroups
- The IDs of the security groups to associate with the load balancer. Note that you cannot specify the name of the security group.
public ApplySecurityGroupsToLoadBalancerRequest withSecurityGroups(java.lang.String... securityGroups)
The IDs of the security groups to associate with the load balancer. Note that you cannot specify the name of the security group.
Returns a reference to this object so that method calls can be chained together.
securityGroups
- The IDs of the security groups to associate with the load balancer. Note that you cannot specify the name of the security group.
public ApplySecurityGroupsToLoadBalancerRequest withSecurityGroups(java.util.Collection<java.lang.String> securityGroups)
The IDs of the security groups to associate with the load balancer. Note that you cannot specify the name of the security group.
Returns a reference to this object so that method calls can be chained together.
securityGroups
- The IDs of the security groups to associate with the load balancer. Note that you cannot specify the name of the security group.
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.