public class SetLoadBalancerPoliciesOfListenerRequest extends AmazonWebServiceRequest implements java.io.Serializable
Associates, updates, or disables a policy with a listener for the specified load balancer. You can associate multiple policies with a listener.
Constructor and Description |
---|
SetLoadBalancerPoliciesOfListenerRequest()
Default constructor for SetLoadBalancerPoliciesOfListenerRequest object.
|
SetLoadBalancerPoliciesOfListenerRequest(java.lang.String loadBalancerName,
java.lang.Integer loadBalancerPort,
java.util.List<java.lang.String> policyNames)
Constructs a new SetLoadBalancerPoliciesOfListenerRequest object.
|
Modifier and Type | Method and Description |
---|---|
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 for the policy.
|
java.util.List<java.lang.String> |
getPolicyNames()
The names of the policies.
|
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 for the policy.
|
void |
setPolicyNames(java.util.Collection<java.lang.String> policyNames)
The names of the policies.
|
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 for the policy.
|
SetLoadBalancerPoliciesOfListenerRequest |
withPolicyNames(java.util.Collection<java.lang.String> policyNames)
The names of the policies.
|
SetLoadBalancerPoliciesOfListenerRequest |
withPolicyNames(java.lang.String... policyNames)
The names of the policies.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public SetLoadBalancerPoliciesOfListenerRequest()
public SetLoadBalancerPoliciesOfListenerRequest(java.lang.String loadBalancerName, java.lang.Integer loadBalancerPort, java.util.List<java.lang.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 java.lang.String getLoadBalancerName()
The name of the load balancer.
The name of the load balancer.
public void setLoadBalancerName(java.lang.String loadBalancerName)
The name of the load balancer.
loadBalancerName
- The name of the load balancer.
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.
loadBalancerName
- The name of the load balancer.
public java.lang.Integer getLoadBalancerPort()
The external port of the load balancer for the policy.
The external port of the load balancer for the policy.
public void setLoadBalancerPort(java.lang.Integer loadBalancerPort)
The external port of the load balancer for the policy.
loadBalancerPort
- The external port of the load balancer for the policy.
public SetLoadBalancerPoliciesOfListenerRequest withLoadBalancerPort(java.lang.Integer loadBalancerPort)
The external port of the load balancer for the policy.
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 java.util.List<java.lang.String> getPolicyNames()
The names of the policies. If the list is empty, the current policy is removed from the listener.
The names of the policies. If the list is empty, the current policy is removed from the listener.
public void setPolicyNames(java.util.Collection<java.lang.String> policyNames)
The names of the policies. If the list is empty, the current policy is removed from the listener.
policyNames
- The names of the policies. If the list is empty, the current policy is removed from the listener.
public SetLoadBalancerPoliciesOfListenerRequest withPolicyNames(java.lang.String... policyNames)
The names of the policies. 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.
policyNames
- The names of the policies. If the list is empty, the current policy is removed from the listener.
public SetLoadBalancerPoliciesOfListenerRequest withPolicyNames(java.util.Collection<java.lang.String> policyNames)
The names of the policies. 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.
policyNames
- The names of the policies. If the list is empty, the current policy is removed from the listener.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.