Class DescribeWorkingStorageResult
- java.lang.Object
-
- com.amazonaws.services.storagegateway.model.DescribeWorkingStorageResult
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class DescribeWorkingStorageResult extends Object implements Serializable, Cloneable
A JSON object containing the following fields:
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DescribeWorkingStorageResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DescribeWorkingStorageResult
clone()
boolean
equals(Object obj)
List<String>
getDiskIds()
An array of the gateway's local disk IDs that are configured as working storage.String
getGatewayARN()
Long
getWorkingStorageAllocatedInBytes()
The total working storage in bytes allocated for the gateway.Long
getWorkingStorageUsedInBytes()
The total working storage in bytes in use by the gateway.int
hashCode()
void
setDiskIds(Collection<String> diskIds)
An array of the gateway's local disk IDs that are configured as working storage.void
setGatewayARN(String gatewayARN)
void
setWorkingStorageAllocatedInBytes(Long workingStorageAllocatedInBytes)
The total working storage in bytes allocated for the gateway.void
setWorkingStorageUsedInBytes(Long workingStorageUsedInBytes)
The total working storage in bytes in use by the gateway.String
toString()
Returns a string representation of this object; useful for testing and debugging.DescribeWorkingStorageResult
withDiskIds(String... diskIds)
An array of the gateway's local disk IDs that are configured as working storage.DescribeWorkingStorageResult
withDiskIds(Collection<String> diskIds)
An array of the gateway's local disk IDs that are configured as working storage.DescribeWorkingStorageResult
withGatewayARN(String gatewayARN)
DescribeWorkingStorageResult
withWorkingStorageAllocatedInBytes(Long workingStorageAllocatedInBytes)
The total working storage in bytes allocated for the gateway.DescribeWorkingStorageResult
withWorkingStorageUsedInBytes(Long workingStorageUsedInBytes)
The total working storage in bytes in use by the gateway.
-
-
-
Method Detail
-
setGatewayARN
public void setGatewayARN(String gatewayARN)
- Parameters:
gatewayARN
-
-
getGatewayARN
public String getGatewayARN()
- Returns:
-
withGatewayARN
public DescribeWorkingStorageResult withGatewayARN(String gatewayARN)
- Parameters:
gatewayARN
-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getDiskIds
public List<String> getDiskIds()
An array of the gateway's local disk IDs that are configured as working storage. Each local disk ID is specified as a string (minimum length of 1 and maximum length of 300). If no local disks are configured as working storage, then the DiskIds array is empty.
- Returns:
- An array of the gateway's local disk IDs that are configured as working storage. Each local disk ID is specified as a string (minimum length of 1 and maximum length of 300). If no local disks are configured as working storage, then the DiskIds array is empty.
-
setDiskIds
public void setDiskIds(Collection<String> diskIds)
An array of the gateway's local disk IDs that are configured as working storage. Each local disk ID is specified as a string (minimum length of 1 and maximum length of 300). If no local disks are configured as working storage, then the DiskIds array is empty.
- Parameters:
diskIds
- An array of the gateway's local disk IDs that are configured as working storage. Each local disk ID is specified as a string (minimum length of 1 and maximum length of 300). If no local disks are configured as working storage, then the DiskIds array is empty.
-
withDiskIds
public DescribeWorkingStorageResult withDiskIds(String... diskIds)
An array of the gateway's local disk IDs that are configured as working storage. Each local disk ID is specified as a string (minimum length of 1 and maximum length of 300). If no local disks are configured as working storage, then the DiskIds array is empty.
NOTE: This method appends the values to the existing list (if any). Use
setDiskIds(java.util.Collection)
orwithDiskIds(java.util.Collection)
if you want to override the existing values.- Parameters:
diskIds
- An array of the gateway's local disk IDs that are configured as working storage. Each local disk ID is specified as a string (minimum length of 1 and maximum length of 300). If no local disks are configured as working storage, then the DiskIds array is empty.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withDiskIds
public DescribeWorkingStorageResult withDiskIds(Collection<String> diskIds)
An array of the gateway's local disk IDs that are configured as working storage. Each local disk ID is specified as a string (minimum length of 1 and maximum length of 300). If no local disks are configured as working storage, then the DiskIds array is empty.
- Parameters:
diskIds
- An array of the gateway's local disk IDs that are configured as working storage. Each local disk ID is specified as a string (minimum length of 1 and maximum length of 300). If no local disks are configured as working storage, then the DiskIds array is empty.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setWorkingStorageUsedInBytes
public void setWorkingStorageUsedInBytes(Long workingStorageUsedInBytes)
The total working storage in bytes in use by the gateway. If no working storage is configured for the gateway, this field returns 0.
- Parameters:
workingStorageUsedInBytes
- The total working storage in bytes in use by the gateway. If no working storage is configured for the gateway, this field returns 0.
-
getWorkingStorageUsedInBytes
public Long getWorkingStorageUsedInBytes()
The total working storage in bytes in use by the gateway. If no working storage is configured for the gateway, this field returns 0.
- Returns:
- The total working storage in bytes in use by the gateway. If no working storage is configured for the gateway, this field returns 0.
-
withWorkingStorageUsedInBytes
public DescribeWorkingStorageResult withWorkingStorageUsedInBytes(Long workingStorageUsedInBytes)
The total working storage in bytes in use by the gateway. If no working storage is configured for the gateway, this field returns 0.
- Parameters:
workingStorageUsedInBytes
- The total working storage in bytes in use by the gateway. If no working storage is configured for the gateway, this field returns 0.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setWorkingStorageAllocatedInBytes
public void setWorkingStorageAllocatedInBytes(Long workingStorageAllocatedInBytes)
The total working storage in bytes allocated for the gateway. If no working storage is configured for the gateway, this field returns 0.
- Parameters:
workingStorageAllocatedInBytes
- The total working storage in bytes allocated for the gateway. If no working storage is configured for the gateway, this field returns 0.
-
getWorkingStorageAllocatedInBytes
public Long getWorkingStorageAllocatedInBytes()
The total working storage in bytes allocated for the gateway. If no working storage is configured for the gateway, this field returns 0.
- Returns:
- The total working storage in bytes allocated for the gateway. If no working storage is configured for the gateway, this field returns 0.
-
withWorkingStorageAllocatedInBytes
public DescribeWorkingStorageResult withWorkingStorageAllocatedInBytes(Long workingStorageAllocatedInBytes)
The total working storage in bytes allocated for the gateway. If no working storage is configured for the gateway, this field returns 0.
- Parameters:
workingStorageAllocatedInBytes
- The total working storage in bytes allocated for the gateway. If no working storage is configured for the gateway, this field returns 0.- Returns:
- Returns a reference to this 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 classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public DescribeWorkingStorageResult clone()
-
-