public class ApplySecurityGroupsToLoadBalancerRequest extends AmazonWebServiceRequest implements Serializable
ApplySecurityGroupsToLoadBalancer operation
.
Associates one or more security groups with your load balancer in Amazon Virtual Private Cloud (Amazon VPC). The provided security group IDs will override any currently applied security groups.
For more information, see Manage Security Groups in Amazon VPC in the Elastic Load Balancing Developer Guide .
NOOP
Constructor and Description |
---|
ApplySecurityGroupsToLoadBalancerRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getLoadBalancerName()
The name associated with the load balancer.
|
List<String> |
getSecurityGroups()
A list of security group IDs to associate with your load balancer in
VPC.
|
int |
hashCode() |
void |
setLoadBalancerName(String loadBalancerName)
The name associated with the load balancer.
|
void |
setSecurityGroups(Collection<String> securityGroups)
A list of security group IDs to associate with your load balancer 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 load balancer.
|
ApplySecurityGroupsToLoadBalancerRequest |
withSecurityGroups(Collection<String> securityGroups)
A list of security group IDs to associate with your load balancer in
VPC.
|
ApplySecurityGroupsToLoadBalancerRequest |
withSecurityGroups(String... securityGroups)
A list of security group IDs to associate with your load balancer in
VPC.
|
copyPrivateRequestParameters, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public ApplySecurityGroupsToLoadBalancerRequest()
public String getLoadBalancerName()
public void setLoadBalancerName(String loadBalancerName)
loadBalancerName
- The name associated with the load balancer. The name must be unique
within the set of load balancers associated with your 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 load balancer. The name must be unique
within the set of load balancers associated with your AWS account.public List<String> getSecurityGroups()
public void setSecurityGroups(Collection<String> securityGroups)
securityGroups
- A list of security group IDs to associate with your load balancer 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 load balancer 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 load balancer 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 © 2014. All rights reserved.