Java 类com.amazonaws.services.glacier.model.DescribeVaultRequest 实例源码

项目:olfs    文件:Vault.java   
public String describeVault(String vaultName, AWSCredentials credentials){

        DescribeVaultResult dvo;

        AmazonGlacierClient client = new AmazonGlacierClient(credentials);
        client.setEndpoint(getEndpoint());

        DescribeVaultRequest dvr = new DescribeVaultRequest(vaultName);

        dvo = client.describeVault(dvr);

        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");
        return sb.toString();
    }
项目:aws-sdk-java-resources    文件:VaultImpl.java   
@Override
public boolean load(DescribeVaultRequest request) {
    return load(request, null);
}
项目:aws-sdk-java-resources    文件:VaultImpl.java   
@Override
public boolean load(DescribeVaultRequest request,
        ResultCapture<DescribeVaultResult> extractor) {

    return resource.load(request, extractor);
}
项目:aws-sdk-java-resources    文件:Vault.java   
/**
 * Makes a call to the service to load this resource's attributes if they
 * are not loaded yet.
 * 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>
 *
 * @return Returns {@code true} if the resource is not yet loaded when this
 *         method was invoked, which indicates that a service call has been
 *         made to retrieve the attributes.
 * @see DescribeVaultRequest
 */
boolean load(DescribeVaultRequest request);
项目:aws-sdk-java-resources    文件:Vault.java   
/**
 * Makes a call to the service to load this resource's attributes if they
 * are not loaded yet, and use a ResultCapture to retrieve the low-level
 * client response
 * 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>
 *
 * @return Returns {@code true} if the resource is not yet loaded when this
 *         method was invoked, which indicates that a service call has been
 *         made to retrieve the attributes.
 * @see DescribeVaultRequest
 */
boolean load(DescribeVaultRequest request,
        ResultCapture<DescribeVaultResult> extractor);