List of usage examples for com.amazonaws.services.glacier.model DescribeVaultOutput getVaultName
public String getVaultName()
The name of the vault.
From source file:org.duraspace.glacier.SimpleGlacierUploader.java
License:Open Source License
public void repopulateVaults(String accessString, String secretString, int regionInt) { int newLoc = locationChoice.getSelectedIndex(); if (((accessField.getText().trim().equals("")) == true) || (secretField.getText().trim().equals("")) == true) { } else {//from w ww . ja v a 2 s . c om AmazonGlacierClient newVaultCheckClient = new AmazonGlacierClient(); newVaultCheckClient = makeClient(accessString, secretString, newLoc); BasicAWSCredentials credentials = new BasicAWSCredentials(accessString, secretString); String marker = null; do { ListVaultsRequest lv = new ListVaultsRequest().withMarker(marker); ListVaultsResult lvr = newVaultCheckClient.listVaults(lv); ArrayList<DescribeVaultOutput> vList = new ArrayList<DescribeVaultOutput>(lvr.getVaultList()); vaultSelector.removeAllItems(); vaultSelector.addItem("Select Existing:"); for (DescribeVaultOutput vault : vList) { vaultSelector.addItem(vault.getVaultName()); } } while (marker != null); } }