Package com.amazonaws.services.ec2.model
Class HostProperties
- java.lang.Object
-
- com.amazonaws.services.ec2.model.HostProperties
-
- All Implemented Interfaces:
Serializable,Cloneable
public class HostProperties extends Object implements Serializable, Cloneable
Describes properties of a Dedicated host.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description HostProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HostPropertiesclone()booleanequals(Object obj)IntegergetCores()The number of cores on the Dedicated host.StringgetInstanceType()The instance type size that the Dedicated host supports (for example, m3.medium).IntegergetSockets()The number of sockets on the Dedicated host.IntegergetTotalVCpus()The number of vCPUs on the Dedicated host.inthashCode()voidsetCores(Integer cores)The number of cores on the Dedicated host.voidsetInstanceType(String instanceType)The instance type size that the Dedicated host supports (for example, m3.medium).voidsetSockets(Integer sockets)The number of sockets on the Dedicated host.voidsetTotalVCpus(Integer totalVCpus)The number of vCPUs on the Dedicated host.StringtoString()Returns a string representation of this object; useful for testing and debugging.HostPropertieswithCores(Integer cores)The number of cores on the Dedicated host.HostPropertieswithInstanceType(String instanceType)The instance type size that the Dedicated host supports (for example, m3.medium).HostPropertieswithSockets(Integer sockets)The number of sockets on the Dedicated host.HostPropertieswithTotalVCpus(Integer totalVCpus)The number of vCPUs on the Dedicated host.
-
-
-
Method Detail
-
setSockets
public void setSockets(Integer sockets)
The number of sockets on the Dedicated host.
- Parameters:
sockets- The number of sockets on the Dedicated host.
-
getSockets
public Integer getSockets()
The number of sockets on the Dedicated host.
- Returns:
- The number of sockets on the Dedicated host.
-
withSockets
public HostProperties withSockets(Integer sockets)
The number of sockets on the Dedicated host.
- Parameters:
sockets- The number of sockets on the Dedicated host.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setCores
public void setCores(Integer cores)
The number of cores on the Dedicated host.
- Parameters:
cores- The number of cores on the Dedicated host.
-
getCores
public Integer getCores()
The number of cores on the Dedicated host.
- Returns:
- The number of cores on the Dedicated host.
-
withCores
public HostProperties withCores(Integer cores)
The number of cores on the Dedicated host.
- Parameters:
cores- The number of cores on the Dedicated host.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setTotalVCpus
public void setTotalVCpus(Integer totalVCpus)
The number of vCPUs on the Dedicated host.
- Parameters:
totalVCpus- The number of vCPUs on the Dedicated host.
-
getTotalVCpus
public Integer getTotalVCpus()
The number of vCPUs on the Dedicated host.
- Returns:
- The number of vCPUs on the Dedicated host.
-
withTotalVCpus
public HostProperties withTotalVCpus(Integer totalVCpus)
The number of vCPUs on the Dedicated host.
- Parameters:
totalVCpus- The number of vCPUs 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 that the Dedicated host supports (for example, m3.medium).
- Parameters:
instanceType- The instance type size that the Dedicated host supports (for example, m3.medium).
-
getInstanceType
public String getInstanceType()
The instance type size that the Dedicated host supports (for example, m3.medium).
- Returns:
- The instance type size that the Dedicated host supports (for example, m3.medium).
-
withInstanceType
public HostProperties withInstanceType(String instanceType)
The instance type size that the Dedicated host supports (for example, m3.medium).
- Parameters:
instanceType- The instance type size that the Dedicated host supports (for example, m3.medium).- 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 HostProperties clone()
-
-