public class SetLoadBalancerPoliciesOfListenerRequest extends AmazonWebServiceRequest implements Serializable
SetLoadBalancerPoliciesOfListener operation.
Associates, updates, or disables a policy with a listener on the load balancer. You can associate multiple policies with a listener.
| Constructor and Description |
|---|
SetLoadBalancerPoliciesOfListenerRequest()
Default constructor for a new SetLoadBalancerPoliciesOfListenerRequest object.
|
SetLoadBalancerPoliciesOfListenerRequest(String loadBalancerName,
Integer loadBalancerPort,
List<String> policyNames)
Constructs a new SetLoadBalancerPoliciesOfListenerRequest object.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getLoadBalancerName()
The name of the load balancer.
|
Integer |
getLoadBalancerPort()
The external port of the load balancer to associate the policy.
|
List<String> |
getPolicyNames()
List of policies to be associated with the listener.
|
int |
hashCode() |
void |
setLoadBalancerName(String loadBalancerName)
The name of the load balancer.
|
void |
setLoadBalancerPort(Integer loadBalancerPort)
The external port of the load balancer to associate the policy.
|
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 of the load balancer.
|
SetLoadBalancerPoliciesOfListenerRequest |
withLoadBalancerPort(Integer loadBalancerPort)
The external port of the load balancer to associate the policy.
|
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.
|
copyPrivateRequestParameters, getDelegationToken, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setDelegationToken, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollectorpublic SetLoadBalancerPoliciesOfListenerRequest()
public SetLoadBalancerPoliciesOfListenerRequest(String loadBalancerName, Integer loadBalancerPort, List<String> policyNames)
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.public String getLoadBalancerName()
public void setLoadBalancerName(String loadBalancerName)
loadBalancerName - The name of the load balancer.public SetLoadBalancerPoliciesOfListenerRequest withLoadBalancerName(String loadBalancerName)
Returns a reference to this object so that method calls can be chained together.
loadBalancerName - The name of the load balancer.public Integer getLoadBalancerPort()
public void setLoadBalancerPort(Integer loadBalancerPort)
loadBalancerPort - The external port of the load balancer to associate the policy.public SetLoadBalancerPoliciesOfListenerRequest withLoadBalancerPort(Integer loadBalancerPort)
Returns a reference to this object so that method calls can be chained together.
loadBalancerPort - The external port of the load balancer to associate the policy.public List<String> getPolicyNames()
public void setPolicyNames(Collection<String> policyNames)
policyNames - List of policies to be associated with the listener. If the list is
empty, the current policy is removed from the listener.public SetLoadBalancerPoliciesOfListenerRequest withPolicyNames(String... policyNames)
Returns a reference to this object so that method calls can be chained together.
policyNames - List of policies to be associated with the listener. If the list is
empty, the current policy is removed from the listener.public SetLoadBalancerPoliciesOfListenerRequest withPolicyNames(Collection<String> policyNames)
Returns a reference to this object so that method calls can be chained together.
policyNames - List of policies to be associated with the listener. If the list is
empty, the current policy is removed from the listener.public String toString()
toString in class ObjectObject.toString()Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.