Class DescribeVaultResult
- java.lang.Object
-
- com.amazonaws.services.glacier.model.DescribeVaultResult
-
- All Implemented Interfaces:
Serializable,Cloneable
public class DescribeVaultResult extends Object implements Serializable, Cloneable
Contains the Amazon Glacier response to your request.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DescribeVaultResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DescribeVaultResultclone()booleanequals(Object obj)StringgetCreationDate()The UTC date when the vault was created.StringgetLastInventoryDate()The UTC date when Amazon Glacier completed the last vault inventory.LonggetNumberOfArchives()The number of archives in the vault as of the last inventory date.LonggetSizeInBytes()Total size, in bytes, of the archives in the vault as of the last inventory date.StringgetVaultARN()The Amazon Resource Name (ARN) of the vault.StringgetVaultName()The name of the vault.inthashCode()voidsetCreationDate(String creationDate)The UTC date when the vault was created.voidsetLastInventoryDate(String lastInventoryDate)The UTC date when Amazon Glacier completed the last vault inventory.voidsetNumberOfArchives(Long numberOfArchives)The number of archives in the vault as of the last inventory date.voidsetSizeInBytes(Long sizeInBytes)Total size, in bytes, of the archives in the vault as of the last inventory date.voidsetVaultARN(String vaultARN)The Amazon Resource Name (ARN) of the vault.voidsetVaultName(String vaultName)The name of the vault.StringtoString()Returns a string representation of this object; useful for testing and debugging.DescribeVaultResultwithCreationDate(String creationDate)The UTC date when the vault was created.DescribeVaultResultwithLastInventoryDate(String lastInventoryDate)The UTC date when Amazon Glacier completed the last vault inventory.DescribeVaultResultwithNumberOfArchives(Long numberOfArchives)The number of archives in the vault as of the last inventory date.DescribeVaultResultwithSizeInBytes(Long sizeInBytes)Total size, in bytes, of the archives in the vault as of the last inventory date.DescribeVaultResultwithVaultARN(String vaultARN)The Amazon Resource Name (ARN) of the vault.DescribeVaultResultwithVaultName(String vaultName)The name of the vault.
-
-
-
Method Detail
-
setVaultARN
public void setVaultARN(String vaultARN)
The Amazon Resource Name (ARN) of the vault.
- Parameters:
vaultARN- The Amazon Resource Name (ARN) of the vault.
-
getVaultARN
public String getVaultARN()
The Amazon Resource Name (ARN) of the vault.
- Returns:
- The Amazon Resource Name (ARN) of the vault.
-
withVaultARN
public DescribeVaultResult withVaultARN(String vaultARN)
The Amazon Resource Name (ARN) of the vault.
- Parameters:
vaultARN- The Amazon Resource Name (ARN) of the vault.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setVaultName
public void setVaultName(String vaultName)
The name of the vault.
- Parameters:
vaultName- The name of the vault.
-
getVaultName
public String getVaultName()
The name of the vault.
- Returns:
- The name of the vault.
-
withVaultName
public DescribeVaultResult withVaultName(String vaultName)
The name of the vault.
- Parameters:
vaultName- The name of the vault.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setCreationDate
public void setCreationDate(String creationDate)
The UTC date when the vault was created. A string representation of ISO 8601 date format, for example, "2012-03-20T17:03:43.221Z".
- Parameters:
creationDate- The UTC date when the vault was created. A string representation of ISO 8601 date format, for example, "2012-03-20T17:03:43.221Z".
-
getCreationDate
public String getCreationDate()
The UTC date when the vault was created. A string representation of ISO 8601 date format, for example, "2012-03-20T17:03:43.221Z".
- Returns:
- The UTC date when the vault was created. A string representation of ISO 8601 date format, for example, "2012-03-20T17:03:43.221Z".
-
withCreationDate
public DescribeVaultResult withCreationDate(String creationDate)
The UTC date when the vault was created. A string representation of ISO 8601 date format, for example, "2012-03-20T17:03:43.221Z".
- Parameters:
creationDate- The UTC date when the vault was created. A string representation of ISO 8601 date format, for example, "2012-03-20T17:03:43.221Z".- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setLastInventoryDate
public void setLastInventoryDate(String lastInventoryDate)
The UTC date when Amazon Glacier completed the last vault inventory. A string representation of ISO 8601 date format, for example, "2012-03-20T17:03:43.221Z".
- Parameters:
lastInventoryDate- The UTC date when Amazon Glacier completed the last vault inventory. A string representation of ISO 8601 date format, for example, "2012-03-20T17:03:43.221Z".
-
getLastInventoryDate
public String getLastInventoryDate()
The UTC date when Amazon Glacier completed the last vault inventory. A string representation of ISO 8601 date format, for example, "2012-03-20T17:03:43.221Z".
- Returns:
- The UTC date when Amazon Glacier completed the last vault inventory. A string representation of ISO 8601 date format, for example, "2012-03-20T17:03:43.221Z".
-
withLastInventoryDate
public DescribeVaultResult withLastInventoryDate(String lastInventoryDate)
The UTC date when Amazon Glacier completed the last vault inventory. A string representation of ISO 8601 date format, for example, "2012-03-20T17:03:43.221Z".
- Parameters:
lastInventoryDate- The UTC date when Amazon Glacier completed the last vault inventory. A string representation of ISO 8601 date format, for example, "2012-03-20T17:03:43.221Z".- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setNumberOfArchives
public void setNumberOfArchives(Long numberOfArchives)
The number of archives in the vault as of the last inventory date. This field will return
nullif an inventory has not yet run on the vault, for example, if you just created the vault.- Parameters:
numberOfArchives- The number of archives in the vault as of the last inventory date. This field will returnnullif an inventory has not yet run on the vault, for example, if you just created the vault.
-
getNumberOfArchives
public Long getNumberOfArchives()
The number of archives in the vault as of the last inventory date. This field will return
nullif an inventory has not yet run on the vault, for example, if you just created the vault.- Returns:
- The number of archives in the vault as of the last inventory
date. This field will return
nullif an inventory has not yet run on the vault, for example, if you just created the vault.
-
withNumberOfArchives
public DescribeVaultResult withNumberOfArchives(Long numberOfArchives)
The number of archives in the vault as of the last inventory date. This field will return
nullif an inventory has not yet run on the vault, for example, if you just created the vault.- Parameters:
numberOfArchives- The number of archives in the vault as of the last inventory date. This field will returnnullif an inventory has not yet run on the vault, for example, if you just created the vault.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setSizeInBytes
public void setSizeInBytes(Long sizeInBytes)
Total size, in bytes, of the archives in the vault as of the last inventory date. This field will return null if an inventory has not yet run on the vault, for example, if you just created the vault.
- Parameters:
sizeInBytes- Total size, in bytes, of the archives in the vault as of the last inventory date. This field will return null if an inventory has not yet run on the vault, for example, if you just created the vault.
-
getSizeInBytes
public Long getSizeInBytes()
Total size, in bytes, of the archives in the vault as of the last inventory date. This field will return null if an inventory has not yet run on the vault, for example, if you just created the vault.
- Returns:
- Total size, in bytes, of the archives in the vault as of the last inventory date. This field will return null if an inventory has not yet run on the vault, for example, if you just created the vault.
-
withSizeInBytes
public DescribeVaultResult withSizeInBytes(Long sizeInBytes)
Total size, in bytes, of the archives in the vault as of the last inventory date. This field will return null if an inventory has not yet run on the vault, for example, if you just created the vault.
- Parameters:
sizeInBytes- Total size, in bytes, of the archives in the vault as of the last inventory date. This field will return null if an inventory has not yet run on the vault, for example, if you just created the vault.- 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 DescribeVaultResult clone()
-
-