public class Disk extends Object implements Serializable
Describes a gateway local disk.
Constructor and Description |
---|
Disk() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getDiskAllocationResource()
The iSCSI Qualified Name (IQN) that is defined for the disk.
|
String |
getDiskAllocationType()
One of the DiskAllocationType enumeration values that
identifies how the local disk is used.
|
String |
getDiskId()
The unique device ID or other distinguishing data that identify the
local disk.
|
String |
getDiskNode()
The device node of the local disk as assigned by the virtualization
environment.
|
String |
getDiskPath()
The path of the local disk in the gateway virtual machine (VM).
|
Long |
getDiskSizeInBytes()
The local disk size in bytes.
|
int |
hashCode() |
void |
setDiskAllocationResource(String diskAllocationResource)
The iSCSI Qualified Name (IQN) that is defined for the disk.
|
void |
setDiskAllocationType(DiskAllocationType diskAllocationType)
One of the DiskAllocationType enumeration values that
identifies how the local disk is used.
|
void |
setDiskAllocationType(String diskAllocationType)
One of the DiskAllocationType enumeration values that
identifies how the local disk is used.
|
void |
setDiskId(String diskId)
The unique device ID or other distinguishing data that identify the
local disk.
|
void |
setDiskNode(String diskNode)
The device node of the local disk as assigned by the virtualization
environment.
|
void |
setDiskPath(String diskPath)
The path of the local disk in the gateway virtual machine (VM).
|
void |
setDiskSizeInBytes(Long diskSizeInBytes)
The local disk size in bytes.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Disk |
withDiskAllocationResource(String diskAllocationResource)
The iSCSI Qualified Name (IQN) that is defined for the disk.
|
Disk |
withDiskAllocationType(DiskAllocationType diskAllocationType)
One of the DiskAllocationType enumeration values that
identifies how the local disk is used.
|
Disk |
withDiskAllocationType(String diskAllocationType)
One of the DiskAllocationType enumeration values that
identifies how the local disk is used.
|
Disk |
withDiskId(String diskId)
The unique device ID or other distinguishing data that identify the
local disk.
|
Disk |
withDiskNode(String diskNode)
The device node of the local disk as assigned by the virtualization
environment.
|
Disk |
withDiskPath(String diskPath)
The path of the local disk in the gateway virtual machine (VM).
|
Disk |
withDiskSizeInBytes(Long diskSizeInBytes)
The local disk size in bytes.
|
public String getDiskId()
Constraints:
Length: 1 - 300
public void setDiskId(String diskId)
Constraints:
Length: 1 - 300
diskId
- The unique device ID or other distinguishing data that identify the
local disk.public Disk withDiskId(String diskId)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 300
diskId
- The unique device ID or other distinguishing data that identify the
local disk.public String getDiskPath()
public void setDiskPath(String diskPath)
diskPath
- The path of the local disk in the gateway virtual machine (VM).public Disk withDiskPath(String diskPath)
Returns a reference to this object so that method calls can be chained together.
diskPath
- The path of the local disk in the gateway virtual machine (VM).public String getDiskNode()
public void setDiskNode(String diskNode)
diskNode
- The device node of the local disk as assigned by the virtualization
environment.public Disk withDiskNode(String diskNode)
Returns a reference to this object so that method calls can be chained together.
diskNode
- The device node of the local disk as assigned by the virtualization
environment.public Long getDiskSizeInBytes()
public void setDiskSizeInBytes(Long diskSizeInBytes)
diskSizeInBytes
- The local disk size in bytes.public Disk withDiskSizeInBytes(Long diskSizeInBytes)
Returns a reference to this object so that method calls can be chained together.
diskSizeInBytes
- The local disk size in bytes.public String getDiskAllocationType()
Constraints:
Allowed Values: AVAILABLE, CACHE STORAGE, STORED iSCSI VOLUME, UPLOAD BUFFER, WORKING STORAGE
DiskAllocationType
public void setDiskAllocationType(String diskAllocationType)
Constraints:
Allowed Values: AVAILABLE, CACHE STORAGE, STORED iSCSI VOLUME, UPLOAD BUFFER, WORKING STORAGE
diskAllocationType
- One of the DiskAllocationType enumeration values that
identifies how the local disk is used.DiskAllocationType
public Disk withDiskAllocationType(String diskAllocationType)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: AVAILABLE, CACHE STORAGE, STORED iSCSI VOLUME, UPLOAD BUFFER, WORKING STORAGE
diskAllocationType
- One of the DiskAllocationType enumeration values that
identifies how the local disk is used.DiskAllocationType
public void setDiskAllocationType(DiskAllocationType diskAllocationType)
Constraints:
Allowed Values: AVAILABLE, CACHE STORAGE, STORED iSCSI VOLUME, UPLOAD BUFFER, WORKING STORAGE
diskAllocationType
- One of the DiskAllocationType enumeration values that
identifies how the local disk is used.DiskAllocationType
public Disk withDiskAllocationType(DiskAllocationType diskAllocationType)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: AVAILABLE, CACHE STORAGE, STORED iSCSI VOLUME, UPLOAD BUFFER, WORKING STORAGE
diskAllocationType
- One of the DiskAllocationType enumeration values that
identifies how the local disk is used.DiskAllocationType
public String getDiskAllocationResource()
public void setDiskAllocationResource(String diskAllocationResource)
diskAllocationResource
- The iSCSI Qualified Name (IQN) that is defined for the disk. This
field is not included in the response if the local disk is not defined
as an iSCSI target. The format of this field is
targetIqn::LUNNumber::region-volumeId.public Disk withDiskAllocationResource(String diskAllocationResource)
Returns a reference to this object so that method calls can be chained together.
diskAllocationResource
- The iSCSI Qualified Name (IQN) that is defined for the disk. This
field is not included in the response if the local disk is not defined
as an iSCSI target. The format of this field is
targetIqn::LUNNumber::region-volumeId.public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.