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 DescribeWorkingStorageResultclone()booleanequals(Object obj)List<String>getDiskIds()An array of the gateway's local disk IDs that are configured as working storage.StringgetGatewayARN()LonggetWorkingStorageAllocatedInBytes()The total working storage in bytes allocated for the gateway.LonggetWorkingStorageUsedInBytes()The total working storage in bytes in use by the gateway.inthashCode()voidsetDiskIds(Collection<String> diskIds)An array of the gateway's local disk IDs that are configured as working storage.voidsetGatewayARN(String gatewayARN)voidsetWorkingStorageAllocatedInBytes(Long workingStorageAllocatedInBytes)The total working storage in bytes allocated for the gateway.voidsetWorkingStorageUsedInBytes(Long workingStorageUsedInBytes)The total working storage in bytes in use by the gateway.StringtoString()Returns a string representation of this object; useful for testing and debugging.DescribeWorkingStorageResultwithDiskIds(String... diskIds)An array of the gateway's local disk IDs that are configured as working storage.DescribeWorkingStorageResultwithDiskIds(Collection<String> diskIds)An array of the gateway's local disk IDs that are configured as working storage.DescribeWorkingStorageResultwithGatewayARN(String gatewayARN)DescribeWorkingStorageResultwithWorkingStorageAllocatedInBytes(Long workingStorageAllocatedInBytes)The total working storage in bytes allocated for the gateway.DescribeWorkingStorageResultwithWorkingStorageUsedInBytes(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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public DescribeWorkingStorageResult clone()
-
-