public class BackendServerDescription extends Object implements Serializable
Information about the configuration of an EC2 instance.
| Constructor and Description |
|---|
BackendServerDescription() |
| Modifier and Type | Method and Description |
|---|---|
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 Integer getInstancePort()
The port on which the EC2 instance is listening.
Constraints:
Range: 1 - 65535
The port on which the EC2 instance is listening.
public void setInstancePort(Integer instancePort)
The port on which the EC2 instance is listening.
Constraints:
Range: 1 - 65535
instancePort - The port on which the EC2 instance is listening.
public BackendServerDescription withInstancePort(Integer instancePort)
The port on which the EC2 instance is listening.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Range: 1 - 65535
instancePort - The port on which the EC2 instance is listening.
public List<String> getPolicyNames()
The names of the policies enabled for the EC2 instance.
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.
Returns a reference to this object so that method calls can be chained together.
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.
Returns a reference to this object so that method calls can be chained together.
policyNames - The names of the policies enabled for the EC2 instance.
public String toString()
toString in class ObjectObject.toString()Copyright © 2018. All rights reserved.