@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class InstanceHardware extends Object implements Serializable, Cloneable, StructuredPojo
Describes the hardware for the instance.
Constructor and Description |
---|
InstanceHardware() |
Modifier and Type | Method and Description |
---|---|
InstanceHardware |
clone() |
boolean |
equals(Object obj) |
Integer |
getCpuCount()
The number of vCPUs the instance has.
|
List<Disk> |
getDisks()
The disks attached to the instance.
|
Float |
getRamSizeInGb()
The amount of RAM in GB on the instance (e.g.,
1.0 ). |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setCpuCount(Integer cpuCount)
The number of vCPUs the instance has.
|
void |
setDisks(Collection<Disk> disks)
The disks attached to the instance.
|
void |
setRamSizeInGb(Float ramSizeInGb)
The amount of RAM in GB on the instance (e.g.,
1.0 ). |
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
InstanceHardware |
withCpuCount(Integer cpuCount)
The number of vCPUs the instance has.
|
InstanceHardware |
withDisks(Collection<Disk> disks)
The disks attached to the instance.
|
InstanceHardware |
withDisks(Disk... disks)
The disks attached to the instance.
|
InstanceHardware |
withRamSizeInGb(Float ramSizeInGb)
The amount of RAM in GB on the instance (e.g.,
1.0 ). |
public void setCpuCount(Integer cpuCount)
The number of vCPUs the instance has.
cpuCount
- The number of vCPUs the instance has.public Integer getCpuCount()
The number of vCPUs the instance has.
public InstanceHardware withCpuCount(Integer cpuCount)
The number of vCPUs the instance has.
cpuCount
- The number of vCPUs the instance has.public List<Disk> getDisks()
The disks attached to the instance.
public void setDisks(Collection<Disk> disks)
The disks attached to the instance.
disks
- The disks attached to the instance.public InstanceHardware withDisks(Disk... disks)
The disks attached to the instance.
NOTE: This method appends the values to the existing list (if any). Use
setDisks(java.util.Collection)
or withDisks(java.util.Collection)
if you want to override the
existing values.
disks
- The disks attached to the instance.public InstanceHardware withDisks(Collection<Disk> disks)
The disks attached to the instance.
disks
- The disks attached to the instance.public void setRamSizeInGb(Float ramSizeInGb)
The amount of RAM in GB on the instance (e.g., 1.0
).
ramSizeInGb
- The amount of RAM in GB on the instance (e.g., 1.0
).public Float getRamSizeInGb()
The amount of RAM in GB on the instance (e.g., 1.0
).
1.0
).public InstanceHardware withRamSizeInGb(Float ramSizeInGb)
The amount of RAM in GB on the instance (e.g., 1.0
).
ramSizeInGb
- The amount of RAM in GB on the instance (e.g., 1.0
).public String toString()
toString
in class Object
Object.toString()
public InstanceHardware clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.