public class SetLoadBalancerPoliciesForBackendServerRequest extends AmazonWebServiceRequest implements Serializable
Replaces the set of policies associated with the specified port on which the EC2 instance is listening with a new set of policies. At this time, only the back-end server authentication policy type can be applied to the instance ports; this policy type is composed of multiple public key policies.
Each time you use SetLoadBalancerPoliciesForBackendServer to
enable the policies, use the PolicyNames parameter to list the
policies that you want to enable.
You can use DescribeLoadBalancers or DescribeLoadBalancerPolicies to verify that the policy is associated with the EC2 instance.
For more information about enabling back-end instance authentication, see Configure Back-end Instance Authentication in the Classic Load Balancers Guide. For more information about Proxy Protocol, see Configure Proxy Protocol Support in the Classic Load Balancers Guide.
| Constructor and Description |
|---|
SetLoadBalancerPoliciesForBackendServerRequest() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Integer |
getInstancePort()
The port number associated with the EC2 instance.
|
String |
getLoadBalancerName()
The name of the load balancer.
|
List<String> |
getPolicyNames()
The names of the policies.
|
int |
hashCode() |
void |
setInstancePort(Integer instancePort)
The port number associated with the EC2 instance.
|
void |
setLoadBalancerName(String loadBalancerName)
The name 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.
|
SetLoadBalancerPoliciesForBackendServerRequest |
withInstancePort(Integer instancePort)
The port number associated with the EC2 instance.
|
SetLoadBalancerPoliciesForBackendServerRequest |
withLoadBalancerName(String loadBalancerName)
The name of the load balancer.
|
SetLoadBalancerPoliciesForBackendServerRequest |
withPolicyNames(Collection<String> policyNames)
The names of the policies.
|
SetLoadBalancerPoliciesForBackendServerRequest |
withPolicyNames(String... policyNames)
The names of the policies.
|
clone, copyBaseTo, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic SetLoadBalancerPoliciesForBackendServerRequest()
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 SetLoadBalancerPoliciesForBackendServerRequest 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 getInstancePort()
The port number associated with the EC2 instance.
The port number associated with the EC2 instance.
public void setInstancePort(Integer instancePort)
The port number associated with the EC2 instance.
instancePort - The port number associated with the EC2 instance.
public SetLoadBalancerPoliciesForBackendServerRequest withInstancePort(Integer instancePort)
The port number associated with the EC2 instance.
Returns a reference to this object so that method calls can be chained together.
instancePort - The port number associated with the EC2 instance.
public List<String> getPolicyNames()
The names of the policies. If the list is empty, then all current polices are removed from the EC2 instance.
The names of the policies. If the list is empty, then all current polices are removed from the EC2 instance.
public void setPolicyNames(Collection<String> policyNames)
The names of the policies. If the list is empty, then all current polices are removed from the EC2 instance.
policyNames - The names of the policies. If the list is empty, then all current polices are removed from the EC2 instance.
public SetLoadBalancerPoliciesForBackendServerRequest withPolicyNames(String... policyNames)
The names of the policies. If the list is empty, then all current polices are removed from the EC2 instance.
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, then all current polices are removed from the EC2 instance.
public SetLoadBalancerPoliciesForBackendServerRequest withPolicyNames(Collection<String> policyNames)
The names of the policies. If the list is empty, then all current polices are removed from the EC2 instance.
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, then all current polices are removed from the EC2 instance.
public String toString()
toString in class ObjectObject.toString()Copyright © 2018. All rights reserved.