@Override public void delete(DeleteVaultRequest request) { delete(request, null); }
@Override public void delete(DeleteVaultRequest request, ResultCapture<Void> extractor ) { resource.performAction("Delete", request, extractor); }
@Override public void delete(ResultCapture<Void> extractor) { DeleteVaultRequest request = new DeleteVaultRequest(); delete(request, extractor); }
public void deleteVault() throws IOException{ purgeVault(); AmazonGlacierClient client = new AmazonGlacierClient(getCredentials()); client.setEndpoint(getEndpoint()); DeleteVaultRequest request = new DeleteVaultRequest() .withVaultName(getVaultName()); client.deleteVault(request); System.out.println("Deleted vault: " + getVaultName()); }
/** * Performs the <code>Delete</code> action. * * <p> * The following request parameters will be populated from the data of this * <code>Vault</code> resource, and any conflicting parameter value set in * the request will be overridden: * <ul> * <li> * <b><code>VaultName</code></b> * - mapped from the <code>Name</code> identifier. * </li> * <li> * <b><code>AccountId</code></b> * - mapped from the <code>AccountId</code> identifier. * </li> * </ul> * * <p> * * @see DeleteVaultRequest */ void delete(DeleteVaultRequest request);
/** * Performs the <code>Delete</code> action and use a ResultCapture to * retrieve the low-level client response. * * <p> * The following request parameters will be populated from the data of this * <code>Vault</code> resource, and any conflicting parameter value set in * the request will be overridden: * <ul> * <li> * <b><code>VaultName</code></b> * - mapped from the <code>Name</code> identifier. * </li> * <li> * <b><code>AccountId</code></b> * - mapped from the <code>AccountId</code> identifier. * </li> * </ul> * * <p> * * @see DeleteVaultRequest */ void delete(DeleteVaultRequest request, ResultCapture<Void> extractor);