public class SetLoadBalancerPoliciesOfListenerRequest extends AmazonWebServiceRequest implements Serializable
Replaces the current set of policies for the specified load balancer port with the specified set of policies.
To enable back-end server authentication, use SetLoadBalancerPoliciesForBackendServer.
For more information about setting policies, see Update the SSL Negotiation Configuration, Duration-Based Session Stickiness, and Application-Controlled Session Stickiness in the Classic Load Balancers Guide.
Constructor and Description |
---|
SetLoadBalancerPoliciesOfListenerRequest()
Default constructor for 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.
|
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.
|
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.
|
SetLoadBalancerPoliciesOfListenerRequest |
withPolicyNames(Collection<String> policyNames)
The names of the policies.
|
SetLoadBalancerPoliciesOfListenerRequest |
withPolicyNames(String... policyNames)
The names of the policies.
|
clone, copyBaseTo, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public 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.
policyNames
- The names of the policies. This list must include all policies to be enabled. If you omit a policy that is currently enabled, it is disabled. If the list is empty, all current policies are disabled.
public String getLoadBalancerName()
The name of the load balancer.
The name of the load balancer.
public void setLoadBalancerName(String loadBalancerName)
The name of the load balancer.
loadBalancerName
- The name of the load balancer.
public SetLoadBalancerPoliciesOfListenerRequest withLoadBalancerName(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 Integer getLoadBalancerPort()
The external port of the load balancer.
The external port of the load balancer.
public void setLoadBalancerPort(Integer loadBalancerPort)
The external port of the load balancer.
loadBalancerPort
- The external port of the load balancer.
public SetLoadBalancerPoliciesOfListenerRequest withLoadBalancerPort(Integer loadBalancerPort)
The external port of the load balancer.
Returns a reference to this object so that method calls can be chained together.
loadBalancerPort
- The external port of the load balancer.
public List<String> getPolicyNames()
The names of the policies. This list must include all policies to be enabled. If you omit a policy that is currently enabled, it is disabled. If the list is empty, all current policies are disabled.
The names of the policies. This list must include all policies to be enabled. If you omit a policy that is currently enabled, it is disabled. If the list is empty, all current policies are disabled.
public void setPolicyNames(Collection<String> policyNames)
The names of the policies. This list must include all policies to be enabled. If you omit a policy that is currently enabled, it is disabled. If the list is empty, all current policies are disabled.
policyNames
- The names of the policies. This list must include all policies to be enabled. If you omit a policy that is currently enabled, it is disabled. If the list is empty, all current policies are disabled.
public SetLoadBalancerPoliciesOfListenerRequest withPolicyNames(String... policyNames)
The names of the policies. This list must include all policies to be enabled. If you omit a policy that is currently enabled, it is disabled. If the list is empty, all current policies are disabled.
Returns a reference to this object so that method calls can be chained together.
policyNames
- The names of the policies. This list must include all policies to be enabled. If you omit a policy that is currently enabled, it is disabled. If the list is empty, all current policies are disabled.
public SetLoadBalancerPoliciesOfListenerRequest withPolicyNames(Collection<String> policyNames)
The names of the policies. This list must include all policies to be enabled. If you omit a policy that is currently enabled, it is disabled. If the list is empty, all current policies are disabled.
Returns a reference to this object so that method calls can be chained together.
policyNames
- The names of the policies. This list must include all policies to be enabled. If you omit a policy that is currently enabled, it is disabled. If the list is empty, all current policies are disabled.
public String toString()
toString
in class Object
Object.toString()
Copyright © 2018. All rights reserved.