public class ApplySecurityGroupsToLoadBalancerRequest extends AmazonWebServiceRequest implements Serializable
ApplySecurityGroupsToLoadBalancer operation
.
Associates one or more security groups with your LoadBalancer in VPC. The provided security group IDs will override any currently applied security groups.
Constructor and Description |
---|
ApplySecurityGroupsToLoadBalancerRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getLoadBalancerName()
The name associated with the LoadBalancer.
|
List<String> |
getSecurityGroups()
A list of security group IDs to associate with your LoadBalancer in
VPC.
|
int |
hashCode() |
void |
setLoadBalancerName(String loadBalancerName)
The name associated with the LoadBalancer.
|
void |
setSecurityGroups(Collection<String> securityGroups)
A list of security group IDs to associate with your LoadBalancer in
VPC.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ApplySecurityGroupsToLoadBalancerRequest |
withLoadBalancerName(String loadBalancerName)
The name associated with the LoadBalancer.
|
ApplySecurityGroupsToLoadBalancerRequest |
withSecurityGroups(Collection<String> securityGroups)
A list of security group IDs to associate with your LoadBalancer in
VPC.
|
ApplySecurityGroupsToLoadBalancerRequest |
withSecurityGroups(String... securityGroups)
A list of security group IDs to associate with your LoadBalancer in
VPC.
|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
public ApplySecurityGroupsToLoadBalancerRequest()
public String getLoadBalancerName()
public void setLoadBalancerName(String loadBalancerName)
loadBalancerName
- The name associated with the LoadBalancer. The name must be unique
within the client AWS account.public ApplySecurityGroupsToLoadBalancerRequest withLoadBalancerName(String loadBalancerName)
Returns a reference to this object so that method calls can be chained together.
loadBalancerName
- The name associated with the LoadBalancer. The name must be unique
within the client AWS account.public List<String> getSecurityGroups()
public void setSecurityGroups(Collection<String> securityGroups)
securityGroups
- A list of security group IDs to associate with your LoadBalancer in
VPC. The security group IDs must be provided as the ID and not the
security group name (For example, sg-1234).public ApplySecurityGroupsToLoadBalancerRequest withSecurityGroups(String... securityGroups)
Returns a reference to this object so that method calls can be chained together.
securityGroups
- A list of security group IDs to associate with your LoadBalancer in
VPC. The security group IDs must be provided as the ID and not the
security group name (For example, sg-1234).public ApplySecurityGroupsToLoadBalancerRequest withSecurityGroups(Collection<String> securityGroups)
Returns a reference to this object so that method calls can be chained together.
securityGroups
- A list of security group IDs to associate with your LoadBalancer in
VPC. The security group IDs must be provided as the ID and not the
security group name (For example, sg-1234).public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.