public class SetLoadBalancerPoliciesForBackendServerRequest extends AmazonWebServiceRequest implements Serializable
SetLoadBalancerPoliciesForBackendServer operation
.
Replaces the current set of policies associated with a port on which the back-end server is listening with a new set of policies. After the policies have been created using CreateLoadBalancerPolicy, they can be applied here as a list. 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.
NOTE: The SetLoadBalancerPoliciesForBackendServer replaces the current set of policies associated with the specified instance port. Every time you use this action to enable the policies, use the PolicyNames parameter to list all the policies you want to enable.
You can use DescribeLoadBalancers or DescribeLoadBalancerPolicies action to verify that the policy has been associated with the back-end server.
NOOP
Constructor and Description |
---|
SetLoadBalancerPoliciesForBackendServerRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Integer |
getInstancePort()
The port number associated with the back-end server.
|
String |
getLoadBalancerName()
The mnemonic name associated with the load balancer.
|
List<String> |
getPolicyNames()
List of policy names to be set.
|
int |
hashCode() |
void |
setInstancePort(Integer instancePort)
The port number associated with the back-end server.
|
void |
setLoadBalancerName(String loadBalancerName)
The mnemonic name associated with the load balancer.
|
void |
setPolicyNames(Collection<String> policyNames)
List of policy names to be set.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
SetLoadBalancerPoliciesForBackendServerRequest |
withInstancePort(Integer instancePort)
The port number associated with the back-end server.
|
SetLoadBalancerPoliciesForBackendServerRequest |
withLoadBalancerName(String loadBalancerName)
The mnemonic name associated with the load balancer.
|
SetLoadBalancerPoliciesForBackendServerRequest |
withPolicyNames(Collection<String> policyNames)
List of policy names to be set.
|
SetLoadBalancerPoliciesForBackendServerRequest |
withPolicyNames(String... policyNames)
List of policy names to be set.
|
copyPrivateRequestParameters, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public SetLoadBalancerPoliciesForBackendServerRequest()
public String getLoadBalancerName()
public void setLoadBalancerName(String loadBalancerName)
loadBalancerName
- The mnemonic name associated with the load balancer. This name must be
unique within the set of your load balancers.public SetLoadBalancerPoliciesForBackendServerRequest withLoadBalancerName(String loadBalancerName)
Returns a reference to this object so that method calls can be chained together.
loadBalancerName
- The mnemonic name associated with the load balancer. This name must be
unique within the set of your load balancers.public Integer getInstancePort()
public void setInstancePort(Integer instancePort)
instancePort
- The port number associated with the back-end server.public SetLoadBalancerPoliciesForBackendServerRequest withInstancePort(Integer instancePort)
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 List<String> getPolicyNames()
public void setPolicyNames(Collection<String> policyNames)
policyNames
- List of policy names to be set. If the list is empty, then all current
polices are removed from the back-end server.public SetLoadBalancerPoliciesForBackendServerRequest withPolicyNames(String... policyNames)
Returns a reference to this object so that method calls can be chained together.
policyNames
- List of policy names to be set. If the list is empty, then all current
polices are removed from the back-end server.public SetLoadBalancerPoliciesForBackendServerRequest withPolicyNames(Collection<String> policyNames)
Returns a reference to this object so that method calls can be chained together.
policyNames
- List of policy names to be set. If the list is empty, then all current
polices are removed from the back-end server.public String toString()
toString
in class Object
Object.toString()
Copyright © 2014. All rights reserved.