Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.storagegateway.model
Class Disk

java.lang.Object
  extended by com.amazonaws.services.storagegateway.model.Disk
All Implemented Interfaces:
Serializable

public class Disk
extends Object
implements Serializable

Describes a gateway local disk.

See Also:
Serialized Form

Constructor Summary
Disk()
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Disk

public Disk()
Method Detail

getDiskId

public String getDiskId()
The unique device ID or other distinguishing data that identify the local disk.

Constraints:
Length: 1 - 300

Returns:
The unique device ID or other distinguishing data that identify the local disk.

setDiskId

public void setDiskId(String diskId)
The unique device ID or other distinguishing data that identify the local disk.

Constraints:
Length: 1 - 300

Parameters:
diskId - The unique device ID or other distinguishing data that identify the local disk.

withDiskId

public Disk withDiskId(String diskId)
The unique device ID or other distinguishing data that identify the local disk.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 1 - 300

Parameters:
diskId - The unique device ID or other distinguishing data that identify the local disk.
Returns:
A reference to this updated object so that method calls can be chained together.

getDiskPath

public String getDiskPath()
The path of the local disk in the gateway virtual machine (VM).

Returns:
The path of the local disk in the gateway virtual machine (VM).

setDiskPath

public void setDiskPath(String diskPath)
The path of the local disk in the gateway virtual machine (VM).

Parameters:
diskPath - The path of the local disk in the gateway virtual machine (VM).

withDiskPath

public Disk withDiskPath(String diskPath)
The path of the local disk in the gateway virtual machine (VM).

Returns a reference to this object so that method calls can be chained together.

Parameters:
diskPath - The path of the local disk in the gateway virtual machine (VM).
Returns:
A reference to this updated object so that method calls can be chained together.

getDiskNode

public String getDiskNode()
The device node of the local disk as assigned by the virtualization environment.

Returns:
The device node of the local disk as assigned by the virtualization environment.

setDiskNode

public void setDiskNode(String diskNode)
The device node of the local disk as assigned by the virtualization environment.

Parameters:
diskNode - The device node of the local disk as assigned by the virtualization environment.

withDiskNode

public Disk withDiskNode(String diskNode)
The device node of the local disk as assigned by the virtualization environment.

Returns a reference to this object so that method calls can be chained together.

Parameters:
diskNode - The device node of the local disk as assigned by the virtualization environment.
Returns:
A reference to this updated object so that method calls can be chained together.

getDiskSizeInBytes

public Long getDiskSizeInBytes()
The local disk size in bytes.

Returns:
The local disk size in bytes.

setDiskSizeInBytes

public void setDiskSizeInBytes(Long diskSizeInBytes)
The local disk size in bytes.

Parameters:
diskSizeInBytes - The local disk size in bytes.

withDiskSizeInBytes

public Disk withDiskSizeInBytes(Long diskSizeInBytes)
The local disk size in bytes.

Returns a reference to this object so that method calls can be chained together.

Parameters:
diskSizeInBytes - The local disk size in bytes.
Returns:
A reference to this updated object so that method calls can be chained together.

getDiskAllocationType

public String getDiskAllocationType()
One of the DiskAllocationType enumeration values that identifies how the local disk is used.

Constraints:
Allowed Values: AVAILABLE, CACHE STORAGE, STORED iSCSI VOLUME, UPLOAD BUFFER, WORKING STORAGE

Returns:
One of the DiskAllocationType enumeration values that identifies how the local disk is used.
See Also:
DiskAllocationType

setDiskAllocationType

public void setDiskAllocationType(String diskAllocationType)
One of the DiskAllocationType enumeration values that identifies how the local disk is used.

Constraints:
Allowed Values: AVAILABLE, CACHE STORAGE, STORED iSCSI VOLUME, UPLOAD BUFFER, WORKING STORAGE

Parameters:
diskAllocationType - One of the DiskAllocationType enumeration values that identifies how the local disk is used.
See Also:
DiskAllocationType

withDiskAllocationType

public Disk withDiskAllocationType(String diskAllocationType)
One of the DiskAllocationType enumeration values that identifies how the local disk is used.

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

Parameters:
diskAllocationType - One of the DiskAllocationType enumeration values that identifies how the local disk is used.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
DiskAllocationType

setDiskAllocationType

public void setDiskAllocationType(DiskAllocationType diskAllocationType)
One of the DiskAllocationType enumeration values that identifies how the local disk is used.

Constraints:
Allowed Values: AVAILABLE, CACHE STORAGE, STORED iSCSI VOLUME, UPLOAD BUFFER, WORKING STORAGE

Parameters:
diskAllocationType - One of the DiskAllocationType enumeration values that identifies how the local disk is used.
See Also:
DiskAllocationType

withDiskAllocationType

public Disk withDiskAllocationType(DiskAllocationType diskAllocationType)
One of the DiskAllocationType enumeration values that identifies how the local disk is used.

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

Parameters:
diskAllocationType - One of the DiskAllocationType enumeration values that identifies how the local disk is used.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
DiskAllocationType

getDiskAllocationResource

public String getDiskAllocationResource()
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.

Returns:
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.

setDiskAllocationResource

public void setDiskAllocationResource(String 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.

Parameters:
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.

withDiskAllocationResource

public Disk withDiskAllocationResource(String 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.

Returns a reference to this object so that method calls can be chained together.

Parameters:
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.
Returns:
A reference to this updated 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 class Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.