@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class InstanceTopology extends Object implements Serializable, Cloneable
Information about the instance topology.
Constructor and Description |
---|
InstanceTopology() |
Modifier and Type | Method and Description |
---|---|
InstanceTopology |
clone() |
boolean |
equals(Object obj) |
String |
getAvailabilityZone()
The name of the Availability Zone or Local Zone that the instance is in.
|
String |
getGroupName()
The name of the placement group that the instance is in.
|
String |
getInstanceId()
The instance ID.
|
String |
getInstanceType()
The instance type.
|
List<String> |
getNetworkNodes()
The network nodes.
|
String |
getZoneId()
The ID of the Availability Zone or Local Zone that the instance is in.
|
int |
hashCode() |
void |
setAvailabilityZone(String availabilityZone)
The name of the Availability Zone or Local Zone that the instance is in.
|
void |
setGroupName(String groupName)
The name of the placement group that the instance is in.
|
void |
setInstanceId(String instanceId)
The instance ID.
|
void |
setInstanceType(String instanceType)
The instance type.
|
void |
setNetworkNodes(Collection<String> networkNodes)
The network nodes.
|
void |
setZoneId(String zoneId)
The ID of the Availability Zone or Local Zone that the instance is in.
|
String |
toString()
Returns a string representation of this object.
|
InstanceTopology |
withAvailabilityZone(String availabilityZone)
The name of the Availability Zone or Local Zone that the instance is in.
|
InstanceTopology |
withGroupName(String groupName)
The name of the placement group that the instance is in.
|
InstanceTopology |
withInstanceId(String instanceId)
The instance ID.
|
InstanceTopology |
withInstanceType(String instanceType)
The instance type.
|
InstanceTopology |
withNetworkNodes(Collection<String> networkNodes)
The network nodes.
|
InstanceTopology |
withNetworkNodes(String... networkNodes)
The network nodes.
|
InstanceTopology |
withZoneId(String zoneId)
The ID of the Availability Zone or Local Zone that the instance is in.
|
public void setInstanceId(String instanceId)
The instance ID.
instanceId
- The instance ID.public String getInstanceId()
The instance ID.
public InstanceTopology withInstanceId(String instanceId)
The instance ID.
instanceId
- The instance ID.public void setInstanceType(String instanceType)
The instance type.
instanceType
- The instance type.public String getInstanceType()
The instance type.
public InstanceTopology withInstanceType(String instanceType)
The instance type.
instanceType
- The instance type.public void setGroupName(String groupName)
The name of the placement group that the instance is in.
groupName
- The name of the placement group that the instance is in.public String getGroupName()
The name of the placement group that the instance is in.
public InstanceTopology withGroupName(String groupName)
The name of the placement group that the instance is in.
groupName
- The name of the placement group that the instance is in.public List<String> getNetworkNodes()
The network nodes. The nodes are hashed based on your account. Instances from different accounts running under the same droplet will return a different hashed list of strings.
public void setNetworkNodes(Collection<String> networkNodes)
The network nodes. The nodes are hashed based on your account. Instances from different accounts running under the same droplet will return a different hashed list of strings.
networkNodes
- The network nodes. The nodes are hashed based on your account. Instances from different accounts running
under the same droplet will return a different hashed list of strings.public InstanceTopology withNetworkNodes(String... networkNodes)
The network nodes. The nodes are hashed based on your account. Instances from different accounts running under the same droplet will return a different hashed list of strings.
NOTE: This method appends the values to the existing list (if any). Use
setNetworkNodes(java.util.Collection)
or withNetworkNodes(java.util.Collection)
if you want to
override the existing values.
networkNodes
- The network nodes. The nodes are hashed based on your account. Instances from different accounts running
under the same droplet will return a different hashed list of strings.public InstanceTopology withNetworkNodes(Collection<String> networkNodes)
The network nodes. The nodes are hashed based on your account. Instances from different accounts running under the same droplet will return a different hashed list of strings.
networkNodes
- The network nodes. The nodes are hashed based on your account. Instances from different accounts running
under the same droplet will return a different hashed list of strings.public void setAvailabilityZone(String availabilityZone)
The name of the Availability Zone or Local Zone that the instance is in.
availabilityZone
- The name of the Availability Zone or Local Zone that the instance is in.public String getAvailabilityZone()
The name of the Availability Zone or Local Zone that the instance is in.
public InstanceTopology withAvailabilityZone(String availabilityZone)
The name of the Availability Zone or Local Zone that the instance is in.
availabilityZone
- The name of the Availability Zone or Local Zone that the instance is in.public void setZoneId(String zoneId)
The ID of the Availability Zone or Local Zone that the instance is in.
zoneId
- The ID of the Availability Zone or Local Zone that the instance is in.public String getZoneId()
The ID of the Availability Zone or Local Zone that the instance is in.
public InstanceTopology withZoneId(String zoneId)
The ID of the Availability Zone or Local Zone that the instance is in.
zoneId
- The ID of the Availability Zone or Local Zone that the instance is in.public String toString()
toString
in class Object
Object.toString()
public InstanceTopology clone()