public class HostProperties
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes properties of a Dedicated host.
Modifier and Type | Field and Description |
---|---|
private java.lang.Integer |
cores
The number of cores on the Dedicated host.
|
private java.lang.String |
instanceType
The instance type size that the Dedicated host supports (for example,
m3.medium).
|
private java.lang.Integer |
sockets
The number of sockets on the Dedicated host.
|
private java.lang.Integer |
totalVCpus
The number of vCPUs on the Dedicated host.
|
Constructor and Description |
---|
HostProperties() |
Modifier and Type | Method and Description |
---|---|
HostProperties |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.Integer |
getCores()
The number of cores on the Dedicated host.
|
java.lang.String |
getInstanceType()
The instance type size that the Dedicated host supports (for example,
m3.medium).
|
java.lang.Integer |
getSockets()
The number of sockets on the Dedicated host.
|
java.lang.Integer |
getTotalVCpus()
The number of vCPUs on the Dedicated host.
|
int |
hashCode() |
void |
setCores(java.lang.Integer cores)
The number of cores on the Dedicated host.
|
void |
setInstanceType(java.lang.String instanceType)
The instance type size that the Dedicated host supports (for example,
m3.medium).
|
void |
setSockets(java.lang.Integer sockets)
The number of sockets on the Dedicated host.
|
void |
setTotalVCpus(java.lang.Integer totalVCpus)
The number of vCPUs on the Dedicated host.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
HostProperties |
withCores(java.lang.Integer cores)
The number of cores on the Dedicated host.
|
HostProperties |
withInstanceType(java.lang.String instanceType)
The instance type size that the Dedicated host supports (for example,
m3.medium).
|
HostProperties |
withSockets(java.lang.Integer sockets)
The number of sockets on the Dedicated host.
|
HostProperties |
withTotalVCpus(java.lang.Integer totalVCpus)
The number of vCPUs on the Dedicated host.
|
private java.lang.Integer sockets
The number of sockets on the Dedicated host.
private java.lang.Integer cores
The number of cores on the Dedicated host.
private java.lang.Integer totalVCpus
The number of vCPUs on the Dedicated host.
private java.lang.String instanceType
The instance type size that the Dedicated host supports (for example, m3.medium).
public void setSockets(java.lang.Integer sockets)
The number of sockets on the Dedicated host.
sockets
- The number of sockets on the Dedicated host.public java.lang.Integer getSockets()
The number of sockets on the Dedicated host.
public HostProperties withSockets(java.lang.Integer sockets)
The number of sockets on the Dedicated host.
sockets
- The number of sockets on the Dedicated host.public void setCores(java.lang.Integer cores)
The number of cores on the Dedicated host.
cores
- The number of cores on the Dedicated host.public java.lang.Integer getCores()
The number of cores on the Dedicated host.
public HostProperties withCores(java.lang.Integer cores)
The number of cores on the Dedicated host.
cores
- The number of cores on the Dedicated host.public void setTotalVCpus(java.lang.Integer totalVCpus)
The number of vCPUs on the Dedicated host.
totalVCpus
- The number of vCPUs on the Dedicated host.public java.lang.Integer getTotalVCpus()
The number of vCPUs on the Dedicated host.
public HostProperties withTotalVCpus(java.lang.Integer totalVCpus)
The number of vCPUs on the Dedicated host.
totalVCpus
- The number of vCPUs on the Dedicated host.public void setInstanceType(java.lang.String instanceType)
The instance type size that the Dedicated host supports (for example, m3.medium).
instanceType
- The instance type size that the Dedicated host supports (for
example, m3.medium).public java.lang.String getInstanceType()
The instance type size that the Dedicated host supports (for example, m3.medium).
public HostProperties withInstanceType(java.lang.String instanceType)
The instance type size that the Dedicated host supports (for example, m3.medium).
instanceType
- The instance type size that the Dedicated host supports (for
example, m3.medium).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 HostProperties clone()
clone
in class java.lang.Object