本文整理匯總了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();
}
示例2: load
import com.amazonaws.services.glacier.model.DescribeVaultRequest; //導入依賴的package包/類
@Override
public boolean load(DescribeVaultRequest request) {
return load(request, null);
}
示例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);