當前位置: 首頁>>代碼示例>>Java>>正文


Java DescribeVaultRequest類代碼示例

本文整理匯總了Java中com.amazonaws.services.glacier.model.DescribeVaultRequest的典型用法代碼示例。如果您正苦於以下問題:Java DescribeVaultRequest類的具體用法?Java DescribeVaultRequest怎麽用?Java DescribeVaultRequest使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


DescribeVaultRequest類屬於com.amazonaws.services.glacier.model包,在下文中一共展示了DescribeVaultRequest類的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: describeVault

import com.amazonaws.services.glacier.model.DescribeVaultRequest; //導入依賴的package包/類
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();
    }
 
開發者ID:OPENDAP,項目名稱:olfs,代碼行數:23,代碼來源:Vault.java

示例2: load

import com.amazonaws.services.glacier.model.DescribeVaultRequest; //導入依賴的package包/類
@Override
public boolean load(DescribeVaultRequest request) {
    return load(request, null);
}
 
開發者ID:awslabs,項目名稱:aws-sdk-java-resources,代碼行數:5,代碼來源:VaultImpl.java

示例3: load

import com.amazonaws.services.glacier.model.DescribeVaultRequest; //導入依賴的package包/類
/**
 * 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);
 
開發者ID:awslabs,項目名稱:aws-sdk-java-resources,代碼行數:26,代碼來源:Vault.java


注:本文中的com.amazonaws.services.glacier.model.DescribeVaultRequest類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。