com.amazonaws.services.elasticloadbalancing.model
Class ApplySecurityGroupsToLoadBalancerRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.elasticloadbalancing.model.ApplySecurityGroupsToLoadBalancerRequest

public class ApplySecurityGroupsToLoadBalancerRequest
extends AmazonWebServiceRequest

Container for the parameters to the 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.

See Also:
AmazonElasticLoadBalancing.applySecurityGroupsToLoadBalancer(ApplySecurityGroupsToLoadBalancerRequest)

Constructor Summary
ApplySecurityGroupsToLoadBalancerRequest()
           
 
Method Summary
 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.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getDelegationToken, getRequestClientOptions, getRequestCredentials, setDelegationToken, setRequestCredentials
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ApplySecurityGroupsToLoadBalancerRequest

public ApplySecurityGroupsToLoadBalancerRequest()
Method Detail

getLoadBalancerName

public String getLoadBalancerName()
The name associated with the LoadBalancer. The name must be unique within the client AWS account.

Returns:
The name associated with the LoadBalancer. The name must be unique within the client AWS account.

setLoadBalancerName

public void setLoadBalancerName(String loadBalancerName)
The name associated with the LoadBalancer. The name must be unique within the client AWS account.

Parameters:
loadBalancerName - The name associated with the LoadBalancer. The name must be unique within the client AWS account.

withLoadBalancerName

public ApplySecurityGroupsToLoadBalancerRequest withLoadBalancerName(String loadBalancerName)
The name associated with the LoadBalancer. The name must be unique within the client AWS account.

Returns a reference to this object so that method calls can be chained together.

Parameters:
loadBalancerName - The name associated with the LoadBalancer. The name must be unique within the client AWS account.
Returns:
A reference to this updated object so that method calls can be chained together.

getSecurityGroups

public List<String> getSecurityGroups()
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).

Returns:
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).

setSecurityGroups

public void setSecurityGroups(Collection<String> 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).

Parameters:
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).

withSecurityGroups

public ApplySecurityGroupsToLoadBalancerRequest withSecurityGroups(String... 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).

Returns a reference to this object so that method calls can be chained together.

Parameters:
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).
Returns:
A reference to this updated object so that method calls can be chained together.

withSecurityGroups

public ApplySecurityGroupsToLoadBalancerRequest withSecurityGroups(Collection<String> 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).

Returns a reference to this object so that method calls can be chained together.

Parameters:
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).
Returns:
A reference to this updated object so that method calls can be chained together.

toString

public String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.