public class SetLoadBalancerPoliciesOfListenerRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
SetLoadBalancerPoliciesOfListener operation.
Associates, updates, or disables a policy with a listener for the specified load balancer. You can associate multiple policies with a listener.
NOOP| 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 |
|---|---|
SetLoadBalancerPoliciesOfListenerRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(Object obj) |
String |
getLoadBalancerName()
The name of the load balancer.
|
Integer |
getLoadBalancerPort()
The external port of the load balancer for the policy.
|
List<String> |
getPolicyNames()
The names of the policies.
|
int |
hashCode() |
void |
setLoadBalancerName(String loadBalancerName)
The name of the load balancer.
|
void |
setLoadBalancerPort(Integer loadBalancerPort)
The external port of the load balancer for the policy.
|
void |
setPolicyNames(Collection<String> policyNames)
The names of the policies.
|
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 for the policy.
|
SetLoadBalancerPoliciesOfListenerRequest |
withPolicyNames(Collection<String> policyNames)
The names of the policies.
|
SetLoadBalancerPoliciesOfListenerRequest |
withPolicyNames(String... policyNames)
The names of the policies.
|
getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeoutpublic 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 for the
policy.policyNames - The names of the policies. 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 for 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 for the policy.public List<String> getPolicyNames()
public void setPolicyNames(Collection<String> policyNames)
policyNames - The names of the policies. If the list is empty, the current policy is
removed from the listener.public SetLoadBalancerPoliciesOfListenerRequest withPolicyNames(String... policyNames)
NOTE: This method appends the values to the existing list (if
any). Use setPolicyNames(java.util.Collection) or withPolicyNames(java.util.Collection) if you want to override the
existing values.
Returns a reference to this object so that method calls can be chained together.
policyNames - The names of the policies. 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 - The names of the policies. If the list is empty, the current policy is
removed from the listener.public String toString()
toString in class ObjectObject.toString()public SetLoadBalancerPoliciesOfListenerRequest clone()
AmazonWebServiceRequestclone in class AmazonWebServiceRequestObject.clone()Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.