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 HostProperties
clone()
boolean
equals(Object obj)
Integer
getCores()
The number of cores on the Dedicated host.String
getInstanceType()
The instance type size that the Dedicated host supports (for example, m3.medium).Integer
getSockets()
The number of sockets on the Dedicated host.Integer
getTotalVCpus()
The number of vCPUs on the Dedicated host.int
hashCode()
void
setCores(Integer cores)
The number of cores on the Dedicated host.void
setInstanceType(String instanceType)
The instance type size that the Dedicated host supports (for example, m3.medium).void
setSockets(Integer sockets)
The number of sockets on the Dedicated host.void
setTotalVCpus(Integer totalVCpus)
The number of vCPUs on the Dedicated host.String
toString()
Returns a string representation of this object; useful for testing and debugging.HostProperties
withCores(Integer cores)
The number of cores on the Dedicated host.HostProperties
withInstanceType(String instanceType)
The instance type size that the Dedicated host supports (for example, m3.medium).HostProperties
withSockets(Integer sockets)
The number of sockets on the Dedicated host.HostProperties
withTotalVCpus(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:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public HostProperties clone()
-
-