@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class BackendServerDescription extends Object implements Serializable, Cloneable
Information about the configuration of an EC2 instance.
Constructor and Description |
---|
BackendServerDescription() |
Modifier and Type | Method and Description |
---|---|
BackendServerDescription |
clone() |
boolean |
equals(Object obj) |
Integer |
getInstancePort()
The port on which the EC2 instance is listening.
|
List<String> |
getPolicyNames()
The names of the policies enabled for the EC2 instance.
|
int |
hashCode() |
void |
setInstancePort(Integer instancePort)
The port on which the EC2 instance is listening.
|
void |
setPolicyNames(Collection<String> policyNames)
The names of the policies enabled for the EC2 instance.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
BackendServerDescription |
withInstancePort(Integer instancePort)
The port on which the EC2 instance is listening.
|
BackendServerDescription |
withPolicyNames(Collection<String> policyNames)
The names of the policies enabled for the EC2 instance.
|
BackendServerDescription |
withPolicyNames(String... policyNames)
The names of the policies enabled for the EC2 instance.
|
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 BackendServerDescription 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 enabled for the EC2 instance.
public void setPolicyNames(Collection<String> policyNames)
The names of the policies enabled for the EC2 instance.
policyNames
- The names of the policies enabled for the EC2 instance.public BackendServerDescription withPolicyNames(String... policyNames)
The names of the policies 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 enabled for the EC2 instance.public BackendServerDescription withPolicyNames(Collection<String> policyNames)
The names of the policies enabled for the EC2 instance.
policyNames
- The names of the policies enabled for the EC2 instance.public String toString()
toString
in class Object
Object.toString()
public BackendServerDescription clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.