List of usage examples for com.amazonaws.services.glacier.model DescribeVaultOutput getVaultARN
public String getVaultARN()
The Amazon Resource Name (ARN) of the vault.
From source file:englishcoffeedrinker.corpse.Vault.java
License:Open Source License
/** * Creates a Vault instance from the description returned as part * of a ListVault command. Note that this won't contain a breakdown * of the archives contained with the vault as this information * isn't returned as part of a vault listing; you need to request * a vault inventory if you need to find out the details of each * archive in the vault.//from w w w. ja v a 2s . co m * @param vault */ public Vault(DescribeVaultOutput vault) { this.arn = vault.getVaultARN(); this.name = vault.getVaultName(); this.creationDate = vault.getCreationDate(); this.inventoryDate = vault.getLastInventoryDate(); this.numArchives = vault.getNumberOfArchives(); this.sizeInBytes = vault.getSizeInBytes(); //a simple vault description doesn't contain the list //of archives, you have to request a vault inventory //to get the full list, which is why you should be //maintaining a local index of your glacier vaults archives = new ArrayList<Archive>(); }
From source file:opendap.aws.glacier.NoaaResourceIngester.java
License:Open Source License
public String describeVault(DescribeVaultOutput dvo) { StringBuilder sb = new StringBuilder(); sb.append("================================================================================\n"); sb.append("Found Vault: ").append(dvo.getVaultName()).append("\n"); sb.append(" getCreationDateString(): ").append(dvo.getCreationDate()).append("\n"); sb.append(" getLastInventoryDate(): ").append(dvo.getLastInventoryDate()).append("\n"); sb.append(" getNumberOfArchives(): ").append(dvo.getNumberOfArchives()).append("\n"); sb.append(" getSizeInBytes(): ").append(dvo.getSizeInBytes()).append("\n"); sb.append(" getVaultARN(): ").append(dvo.getVaultARN()).append("\n"); sb.append(" toString(): ").append(dvo.toString()).append("\n"); sb.append(" toString(): ").append(dvo.getVaultName()).append("\n"); return sb.toString(); }