com.amazonaws.services.elasticloadbalancing.model
Class SetLoadBalancerPoliciesOfListenerRequest

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

public class SetLoadBalancerPoliciesOfListenerRequest
extends AmazonWebServiceRequest
implements java.io.Serializable

Container for the parameters to the SetLoadBalancerPoliciesOfListener operation.

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

See Also:
AmazonElasticLoadBalancing.setLoadBalancerPoliciesOfListener(SetLoadBalancerPoliciesOfListenerRequest), Serialized Form

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

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(java.lang.String loadBalancerName,
                                                java.lang.Integer loadBalancerPort,
                                                java.util.List<java.lang.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 of the load balancer.
loadBalancerPort - The external port of the load balancer to associate the policy.
policyNames - List of policies to be associated with the listener. If the list is empty, the current policy is removed from the listener.
Method Detail

getLoadBalancerName

public java.lang.String getLoadBalancerName()
The name of the load balancer.

Returns:
The name of the load balancer.

setLoadBalancerName

public void setLoadBalancerName(java.lang.String loadBalancerName)
The name of the load balancer.

Parameters:
loadBalancerName - The name of the load balancer.

withLoadBalancerName

public SetLoadBalancerPoliciesOfListenerRequest withLoadBalancerName(java.lang.String loadBalancerName)
The name of the load balancer.

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

Parameters:
loadBalancerName - The name of the load balancer.
Returns:
A reference to this updated object so that method calls can be chained together.

getLoadBalancerPort

public java.lang.Integer getLoadBalancerPort()
The external port of the load balancer to associate the policy.

Returns:
The external port of the load balancer to associate the policy.

setLoadBalancerPort

public void setLoadBalancerPort(java.lang.Integer loadBalancerPort)
The external port of the load balancer to associate the policy.

Parameters:
loadBalancerPort - The external port of the load balancer to associate the policy.

withLoadBalancerPort

public SetLoadBalancerPoliciesOfListenerRequest withLoadBalancerPort(java.lang.Integer loadBalancerPort)
The external port of the load balancer to associate the policy.

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

Parameters:
loadBalancerPort - The external port of the load balancer to associate the policy.
Returns:
A reference to this updated object so that method calls can be chained together.

getPolicyNames

public java.util.List<java.lang.String> getPolicyNames()
List of policies to be associated with the listener. If the list is empty, the current policy is removed from the listener.

Returns:
List of policies to be associated with the listener. If the list is empty, the current policy is removed from the listener.

setPolicyNames

public void setPolicyNames(java.util.Collection<java.lang.String> policyNames)
List of policies to be associated with the listener. If the list is empty, the current policy is removed from the listener.

Parameters:
policyNames - List of policies to be associated with the listener. If the list is empty, the current policy is removed from the listener.

withPolicyNames

public SetLoadBalancerPoliciesOfListenerRequest withPolicyNames(java.lang.String... policyNames)
List of policies to be associated with the listener. 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. 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(java.util.Collection<java.lang.String> policyNames)
List of policies to be associated with the listener. 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. 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 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.