com.amazonaws.services.elasticloadbalancing.model
Class SetLoadBalancerPoliciesOfListenerRequest

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

public class SetLoadBalancerPoliciesOfListenerRequest
extends AmazonWebServiceRequest

Container for the parameters to the SetLoadBalancerPoliciesOfListener operation.

Associates, updates, or disables a policy with a listener on the LoadBalancer. You can associate multiple policies with a listener.

See Also:
AmazonElasticLoadBalancing.setLoadBalancerPoliciesOfListener(SetLoadBalancerPoliciesOfListenerRequest)

Constructor Summary
SetLoadBalancerPoliciesOfListenerRequest()
          Default constructor for a new SetLoadBalancerPoliciesOfListenerRequest object.
SetLoadBalancerPoliciesOfListenerRequest(String loadBalancerName, Integer loadBalancerPort, List<String> policyNames)
          Constructs a new SetLoadBalancerPoliciesOfListenerRequest object.
 
Method Summary
 boolean equals(Object obj)
           
 String getLoadBalancerName()
          The name associated with the LoadBalancer.
 Integer getLoadBalancerPort()
          The external port of the LoadBalancer with which this policy applies to.
 List<String> getPolicyNames()
          List of policies to be associated with the listener.
 int hashCode()
           
 void setLoadBalancerName(String loadBalancerName)
          The name associated with the LoadBalancer.
 void setLoadBalancerPort(Integer loadBalancerPort)
          The external port of the LoadBalancer with which this policy applies to.
 void setPolicyNames(Collection<String> policyNames)
          List of policies to be associated with the listener.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 SetLoadBalancerPoliciesOfListenerRequest withLoadBalancerName(String loadBalancerName)
          The name associated with the LoadBalancer.
 SetLoadBalancerPoliciesOfListenerRequest withLoadBalancerPort(Integer loadBalancerPort)
          The external port of the LoadBalancer with which this policy applies to.
 SetLoadBalancerPoliciesOfListenerRequest withPolicyNames(Collection<String> policyNames)
          List of policies to be associated with the listener.
 SetLoadBalancerPoliciesOfListenerRequest withPolicyNames(String... policyNames)
          List of policies to be associated with the listener.
 
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

SetLoadBalancerPoliciesOfListenerRequest

public SetLoadBalancerPoliciesOfListenerRequest()
Default constructor for a new SetLoadBalancerPoliciesOfListenerRequest object. Callers should use the setter or fluent setter (with...) methods to initialize this object after creating it.


SetLoadBalancerPoliciesOfListenerRequest

public SetLoadBalancerPoliciesOfListenerRequest(String loadBalancerName,
                                                Integer loadBalancerPort,
                                                List<String> policyNames)
Constructs a new SetLoadBalancerPoliciesOfListenerRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.

Parameters:
loadBalancerName - The name associated with the LoadBalancer. The name must be unique within the client AWS account.
loadBalancerPort - The external port of the LoadBalancer with which this policy applies to.
policyNames - List of policies to be associated with the listener. Currently this list can have at most one policy. If the list is empty, the current policy is removed from the listener.
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 SetLoadBalancerPoliciesOfListenerRequest 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.

getLoadBalancerPort

public Integer getLoadBalancerPort()
The external port of the LoadBalancer with which this policy applies to.

Returns:
The external port of the LoadBalancer with which this policy applies to.

setLoadBalancerPort

public void setLoadBalancerPort(Integer loadBalancerPort)
The external port of the LoadBalancer with which this policy applies to.

Parameters:
loadBalancerPort - The external port of the LoadBalancer with which this policy applies to.

withLoadBalancerPort

public SetLoadBalancerPoliciesOfListenerRequest withLoadBalancerPort(Integer loadBalancerPort)
The external port of the LoadBalancer with which this policy applies to.

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

Parameters:
loadBalancerPort - The external port of the LoadBalancer with which this policy applies to.
Returns:
A reference to this updated object so that method calls can be chained together.

getPolicyNames

public List<String> getPolicyNames()
List of policies to be associated with the listener. Currently this list can have at most one policy. If the list is empty, the current policy is removed from the listener.

Returns:
List of policies to be associated with the listener. Currently this list can have at most one policy. If the list is empty, the current policy is removed from the listener.

setPolicyNames

public void setPolicyNames(Collection<String> policyNames)
List of policies to be associated with the listener. Currently this list can have at most one policy. If the list is empty, the current policy is removed from the listener.

Parameters:
policyNames - List of policies to be associated with the listener. Currently this list can have at most one policy. If the list is empty, the current policy is removed from the listener.

withPolicyNames

public SetLoadBalancerPoliciesOfListenerRequest withPolicyNames(String... policyNames)
List of policies to be associated with the listener. Currently this list can have at most one policy. If the list is empty, the current policy is removed from the listener.

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

Parameters:
policyNames - List of policies to be associated with the listener. Currently this list can have at most one policy. If the list is empty, the current policy is removed from the listener.
Returns:
A reference to this updated object so that method calls can be chained together.

withPolicyNames

public SetLoadBalancerPoliciesOfListenerRequest withPolicyNames(Collection<String> policyNames)
List of policies to be associated with the listener. Currently this list can have at most one policy. If the list is empty, the current policy is removed from the listener.

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

Parameters:
policyNames - List of policies to be associated with the listener. Currently this list can have at most one policy. If the list is empty, the current policy is removed from the listener.
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.