@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AwsElbLoadBalancerBackendServerDescription extends Object implements Serializable, Cloneable, StructuredPojo
Provides information about the configuration of an EC2 instance for the load balancer.
Constructor and Description |
---|
AwsElbLoadBalancerBackendServerDescription() |
Modifier and Type | Method and Description |
---|---|
AwsElbLoadBalancerBackendServerDescription |
clone() |
boolean |
equals(Object obj) |
Integer |
getInstancePort()
The port on which the EC2 instance is listening.
|
List<String> |
getPolicyNames()
The names of the policies that are enabled for the EC2 instance.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setInstancePort(Integer instancePort)
The port on which the EC2 instance is listening.
|
void |
setPolicyNames(Collection<String> policyNames)
The names of the policies that are enabled for the EC2 instance.
|
String |
toString()
Returns a string representation of this object.
|
AwsElbLoadBalancerBackendServerDescription |
withInstancePort(Integer instancePort)
The port on which the EC2 instance is listening.
|
AwsElbLoadBalancerBackendServerDescription |
withPolicyNames(Collection<String> policyNames)
The names of the policies that are enabled for the EC2 instance.
|
AwsElbLoadBalancerBackendServerDescription |
withPolicyNames(String... policyNames)
The names of the policies that are enabled for the EC2 instance.
|
public AwsElbLoadBalancerBackendServerDescription()
public void setInstancePort(Integer instancePort)
The port on which the EC2 instance is listening.
instancePort
- The port on which the EC2 instance is listening.public Integer getInstancePort()
The port on which the EC2 instance is listening.
public AwsElbLoadBalancerBackendServerDescription withInstancePort(Integer instancePort)
The port on which the EC2 instance is listening.
instancePort
- The port on which the EC2 instance is listening.public List<String> getPolicyNames()
The names of the policies that are enabled for the EC2 instance.
public void setPolicyNames(Collection<String> policyNames)
The names of the policies that are enabled for the EC2 instance.
policyNames
- The names of the policies that are enabled for the EC2 instance.public AwsElbLoadBalancerBackendServerDescription withPolicyNames(String... policyNames)
The names of the policies that are enabled for the EC2 instance.
NOTE: This method appends the values to the existing list (if any). Use
setPolicyNames(java.util.Collection)
or withPolicyNames(java.util.Collection)
if you want to
override the existing values.
policyNames
- The names of the policies that are enabled for the EC2 instance.public AwsElbLoadBalancerBackendServerDescription withPolicyNames(Collection<String> policyNames)
The names of the policies that are enabled for the EC2 instance.
policyNames
- The names of the policies that are enabled for the EC2 instance.public String toString()
toString
in class Object
Object.toString()
public AwsElbLoadBalancerBackendServerDescription clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.