public class HostInstance
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes an instance running on a Dedicated host.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
instanceId
the IDs of instances that are running on the Dedicated host.
|
private java.lang.String |
instanceType
The instance type size (for example, m3.medium) of the running instance.
|
Constructor and Description |
---|
HostInstance() |
Modifier and Type | Method and Description |
---|---|
HostInstance |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getInstanceId()
the IDs of instances that are running on the Dedicated host.
|
java.lang.String |
getInstanceType()
The instance type size (for example, m3.medium) of the running instance.
|
int |
hashCode() |
void |
setInstanceId(java.lang.String instanceId)
the IDs of instances that are running on the Dedicated host.
|
void |
setInstanceType(java.lang.String instanceType)
The instance type size (for example, m3.medium) of the running instance.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
HostInstance |
withInstanceId(java.lang.String instanceId)
the IDs of instances that are running on the Dedicated host.
|
HostInstance |
withInstanceType(java.lang.String instanceType)
The instance type size (for example, m3.medium) of the running instance.
|
private java.lang.String instanceId
the IDs of instances that are running on the Dedicated host.
private java.lang.String instanceType
The instance type size (for example, m3.medium) of the running instance.
public void setInstanceId(java.lang.String instanceId)
the IDs of instances that are running on the Dedicated host.
instanceId
- the IDs of instances that are running on the Dedicated host.public java.lang.String getInstanceId()
the IDs of instances that are running on the Dedicated host.
public HostInstance withInstanceId(java.lang.String instanceId)
the IDs of instances that are running on the Dedicated host.
instanceId
- the IDs of instances that are running on the Dedicated host.public void setInstanceType(java.lang.String instanceType)
The instance type size (for example, m3.medium) of the running instance.
instanceType
- The instance type size (for example, m3.medium) of the running
instance.public java.lang.String getInstanceType()
The instance type size (for example, m3.medium) of the running instance.
public HostInstance withInstanceType(java.lang.String instanceType)
The instance type size (for example, m3.medium) of the running instance.
instanceType
- The instance type size (for example, m3.medium) of the running
instance.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public HostInstance clone()
clone
in class java.lang.Object