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 load balancer. Currently only zero (0) or one (1) policy can be associated 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
 String getLoadBalancerName()
          The name associated with the LoadBalancer.
 Integer getLoadBalancerPort()
          The external port of the LoadBalancer with which this policy has to be associated.
 List<String> getPolicyNames()
          List of policies to be associated with the listener.
 void setLoadBalancerName(String loadBalancerName)
          The name associated with the LoadBalancer.
 void setLoadBalancerPort(Integer loadBalancerPort)
          The external port of the LoadBalancer with which this policy has to be associated.
 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 has to be associated.
 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
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, 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 has to be associated.
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 has to be associated.

Returns:
The external port of the LoadBalancer with which this policy has to be associated.

setLoadBalancerPort

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

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

withLoadBalancerPort

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

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 has to be associated.
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()


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