@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Disk extends Object implements Serializable, Cloneable, StructuredPojo
An object representing a data storage device on a server.
Constructor and Description |
---|
Disk() |
Modifier and Type | Method and Description |
---|---|
Disk |
clone() |
boolean |
equals(Object obj) |
Long |
getBytes()
The amount of storage on the disk in bytes.
|
String |
getDeviceName()
The disk or device name.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setBytes(Long bytes)
The amount of storage on the disk in bytes.
|
void |
setDeviceName(String deviceName)
The disk or device name.
|
String |
toString()
Returns a string representation of this object.
|
Disk |
withBytes(Long bytes)
The amount of storage on the disk in bytes.
|
Disk |
withDeviceName(String deviceName)
The disk or device name.
|
public void setBytes(Long bytes)
The amount of storage on the disk in bytes.
bytes
- The amount of storage on the disk in bytes.public Long getBytes()
The amount of storage on the disk in bytes.
public Disk withBytes(Long bytes)
The amount of storage on the disk in bytes.
bytes
- The amount of storage on the disk in bytes.public void setDeviceName(String deviceName)
The disk or device name.
deviceName
- The disk or device name.public String getDeviceName()
The disk or device name.
public Disk withDeviceName(String deviceName)
The disk or device name.
deviceName
- The disk or device name.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.