public class SetLoadBalancerPoliciesForBackendServerRequest extends AmazonWebServiceRequest implements java.io.Serializable
Replaces the set of policies associated with the specified port on which the back-end server is listening with a new set of policies. At this time, only the back-end server authentication policy type can be applied to the back-end 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 back-end server.
Constructor and Description |
---|
SetLoadBalancerPoliciesForBackendServerRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.Integer |
getInstancePort()
The port number associated with the back-end server.
|
java.lang.String |
getLoadBalancerName()
The name of the load balancer.
|
java.util.List<java.lang.String> |
getPolicyNames()
The names of the policies.
|
int |
hashCode() |
void |
setInstancePort(java.lang.Integer instancePort)
The port number associated with the back-end server.
|
void |
setLoadBalancerName(java.lang.String loadBalancerName)
The name of the load balancer.
|
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.
|
SetLoadBalancerPoliciesForBackendServerRequest |
withInstancePort(java.lang.Integer instancePort)
The port number associated with the back-end server.
|
SetLoadBalancerPoliciesForBackendServerRequest |
withLoadBalancerName(java.lang.String loadBalancerName)
The name of the load balancer.
|
SetLoadBalancerPoliciesForBackendServerRequest |
withPolicyNames(java.util.Collection<java.lang.String> policyNames)
The names of the policies.
|
SetLoadBalancerPoliciesForBackendServerRequest |
withPolicyNames(java.lang.String... policyNames)
The names of the policies.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public SetLoadBalancerPoliciesForBackendServerRequest()
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 SetLoadBalancerPoliciesForBackendServerRequest 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 getInstancePort()
The port number associated with the back-end server.
The port number associated with the back-end server.
public void setInstancePort(java.lang.Integer instancePort)
The port number associated with the back-end server.
instancePort
- The port number associated with the back-end server.
public SetLoadBalancerPoliciesForBackendServerRequest withInstancePort(java.lang.Integer instancePort)
The port number associated with the back-end server.
Returns a reference to this object so that method calls can be chained together.
instancePort
- The port number associated with the back-end server.
public java.util.List<java.lang.String> getPolicyNames()
The names of the policies. If the list is empty, then all current polices are removed from the back-end server.
The names of the policies. If the list is empty, then all current polices are removed from the back-end server.
public void setPolicyNames(java.util.Collection<java.lang.String> policyNames)
The names of the policies. If the list is empty, then all current polices are removed from the back-end server.
policyNames
- The names of the policies. If the list is empty, then all current polices are removed from the back-end server.
public SetLoadBalancerPoliciesForBackendServerRequest withPolicyNames(java.lang.String... policyNames)
The names of the policies. If the list is empty, then all current polices are removed from the back-end server.
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 back-end server.
public SetLoadBalancerPoliciesForBackendServerRequest withPolicyNames(java.util.Collection<java.lang.String> policyNames)
The names of the policies. If the list is empty, then all current polices are removed from the back-end server.
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 back-end server.
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.