com.amazonaws.services.elasticloadbalancing.model
Class ApplySecurityGroupsToLoadBalancerRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.elasticloadbalancing.model.ApplySecurityGroupsToLoadBalancerRequest
All Implemented Interfaces:
java.io.Serializable

public class ApplySecurityGroupsToLoadBalancerRequest
extends AmazonWebServiceRequest
implements java.io.Serializable

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

See Also:
AmazonElasticLoadBalancing.applySecurityGroupsToLoadBalancer(ApplySecurityGroupsToLoadBalancerRequest), Serialized Form

Constructor Summary
ApplySecurityGroupsToLoadBalancerRequest()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getLoadBalancerName()
          The name associated with the load balancer.
 java.util.List<java.lang.String> getSecurityGroups()
          A list of security group IDs to associate with your load balancer in VPC.
 int hashCode()
           
 void setLoadBalancerName(java.lang.String loadBalancerName)
          The name associated with the load balancer.
 void setSecurityGroups(java.util.Collection<java.lang.String> securityGroups)
          A list of security group IDs to associate with your load balancer in VPC.
 java.lang.String toString()
          Returns a string representation of this object; useful for testing and debugging.
 ApplySecurityGroupsToLoadBalancerRequest withLoadBalancerName(java.lang.String loadBalancerName)
          The name associated with the load balancer.
 ApplySecurityGroupsToLoadBalancerRequest withSecurityGroups(java.util.Collection<java.lang.String> securityGroups)
          A list of security group IDs to associate with your load balancer in VPC.
 ApplySecurityGroupsToLoadBalancerRequest withSecurityGroups(java.lang.String... securityGroups)
          A list of security group IDs to associate with your load balancer in VPC.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getDelegationToken, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setDelegationToken, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ApplySecurityGroupsToLoadBalancerRequest

public ApplySecurityGroupsToLoadBalancerRequest()
Method Detail

getLoadBalancerName

public java.lang.String getLoadBalancerName()
The name associated with the load balancer. The name must be unique within the set of load balancers associated with your AWS account.

Returns:
The name associated with the load balancer. The name must be unique within the set of load balancers associated with your AWS account.

setLoadBalancerName

public void setLoadBalancerName(java.lang.String loadBalancerName)
The name associated with the load balancer. The name must be unique within the set of load balancers associated with your AWS account.

Parameters:
loadBalancerName - The name associated with the load balancer. The name must be unique within the set of load balancers associated with your AWS account.

withLoadBalancerName

public ApplySecurityGroupsToLoadBalancerRequest withLoadBalancerName(java.lang.String loadBalancerName)
The name associated with the load balancer. The name must be unique within the set of load balancers associated with your AWS account.

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

Parameters:
loadBalancerName - The name associated with the load balancer. The name must be unique within the set of load balancers associated with your AWS account.
Returns:
A reference to this updated object so that method calls can be chained together.

getSecurityGroups

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

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

setSecurityGroups

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

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

withSecurityGroups

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

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 load balancer 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(java.util.Collection<java.lang.String> 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).

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 load balancer 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 java.lang.String toString()
Returns a string representation of this object; useful for testing and debugging.

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

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


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