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 HostInstanceclone()booleanequals(Object obj)StringgetInstanceId()the IDs of instances that are running on the Dedicated host.StringgetInstanceType()The instance type size (for example, m3.medium) of the running instance.inthashCode()voidsetInstanceId(String instanceId)the IDs of instances that are running on the Dedicated host.voidsetInstanceType(String instanceType)The instance type size (for example, m3.medium) of the running instance.StringtoString()Returns a string representation of this object; useful for testing and debugging.HostInstancewithInstanceId(String instanceId)the IDs of instances that are running on the Dedicated host.HostInstancewithInstanceType(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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public HostInstance clone()
-
-