Package com.amazonaws.services.ec2.model
Class HostInstance
- java.lang.Object
-
- com.amazonaws.services.ec2.model.HostInstance
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class HostInstance extends Object implements Serializable, Cloneable
Describes an instance running on a Dedicated host.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description HostInstance()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HostInstance
clone()
boolean
equals(Object obj)
String
getInstanceId()
the IDs of instances that are running on the Dedicated host.String
getInstanceType()
The instance type size (for example, m3.medium) of the running instance.int
hashCode()
void
setInstanceId(String instanceId)
the IDs of instances that are running on the Dedicated host.void
setInstanceType(String instanceType)
The instance type size (for example, m3.medium) of the running instance.String
toString()
Returns a string representation of this object; useful for testing and debugging.HostInstance
withInstanceId(String instanceId)
the IDs of instances that are running on the Dedicated host.HostInstance
withInstanceType(String instanceType)
The instance type size (for example, m3.medium) of the running instance.
-
-
-
Method Detail
-
setInstanceId
public void setInstanceId(String instanceId)
the IDs of instances that are running on the Dedicated host.
- Parameters:
instanceId
- the IDs of instances that are running on the Dedicated host.
-
getInstanceId
public String getInstanceId()
the IDs of instances that are running on the Dedicated host.
- Returns:
- the IDs of instances that are running on the Dedicated host.
-
withInstanceId
public HostInstance withInstanceId(String instanceId)
the IDs of instances that are running on the Dedicated host.
- Parameters:
instanceId
- the IDs of instances that are running on the Dedicated host.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setInstanceType
public void setInstanceType(String instanceType)
The instance type size (for example, m3.medium) of the running instance.
- Parameters:
instanceType
- The instance type size (for example, m3.medium) of the running instance.
-
getInstanceType
public String getInstanceType()
The instance type size (for example, m3.medium) of the running instance.
- Returns:
- The instance type size (for example, m3.medium) of the running instance.
-
withInstanceType
public HostInstance withInstanceType(String instanceType)
The instance type size (for example, m3.medium) of the running instance.
- Parameters:
instanceType
- The instance type size (for example, m3.medium) of the running instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public HostInstance clone()
-
-