Example usage for com.amazonaws.services.glacier.model ListJobsRequest withVaultName

List of usage examples for com.amazonaws.services.glacier.model ListJobsRequest withVaultName

Introduction

In this page you can find the example usage for com.amazonaws.services.glacier.model ListJobsRequest withVaultName.

Prototype


public ListJobsRequest withVaultName(String vaultName) 

Source Link

Document

The name of the vault.

Usage

From source file:com.vrane.metaGlacier.Vault.java

/**
 * Gets a list of jobs attached to this vault.
 *
 * @return a list of <code>GlacierJobDescription</code>
 *///from   ww  w. j  a  v a2 s  . c  o  m
public List<GlacierJobDescription> listJobs() {
    final ListJobsRequest ljr = new ListJobsRequest();
    final ListJobsResult ljres = GlacierFrame.getClient(region)
            .listJobs(ljr.withVaultName(name).withCompleted("true"));

    return ljres.getJobList();
}