本文整理汇总了Java中com.amazonaws.services.ec2.model.DescribeSnapshotAttributeRequest类的典型用法代码示例。如果您正苦于以下问题:Java DescribeSnapshotAttributeRequest类的具体用法?Java DescribeSnapshotAttributeRequest怎么用?Java DescribeSnapshotAttributeRequest使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
DescribeSnapshotAttributeRequest类属于com.amazonaws.services.ec2.model包,在下文中一共展示了DescribeSnapshotAttributeRequest类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: describeAttribute
import com.amazonaws.services.ec2.model.DescribeSnapshotAttributeRequest; //导入依赖的package包/类
@Override
public DescribeSnapshotAttributeResult describeAttribute(
DescribeSnapshotAttributeRequest request,
ResultCapture<DescribeSnapshotAttributeResult> extractor) {
ActionResult result = resource.performAction("DescribeAttribute",
request, extractor);
if (result == null) return null;
return (DescribeSnapshotAttributeResult) result.getData();
}
示例2: findCreateVolumePermissions
import com.amazonaws.services.ec2.model.DescribeSnapshotAttributeRequest; //导入依赖的package包/类
@Override
public List<CreateVolumePermission> findCreateVolumePermissions(Account account, Region region, String snapshotId) {
AmazonEC2 ec2 = findClient(account, region);
DescribeSnapshotAttributeRequest req = new DescribeSnapshotAttributeRequest();
req.setAttribute("createVolumePermission");
req.setSnapshotId(snapshotId);
log.debug("start describing snapshot create volume permission for account:{} in region:{} via api", account.getId() + "=>" + account.getName(), region);
DescribeSnapshotAttributeResult res = ec2.describeSnapshotAttribute(req);
return res.getCreateVolumePermissions();
}
示例3: findSnapshotProductCodes
import com.amazonaws.services.ec2.model.DescribeSnapshotAttributeRequest; //导入依赖的package包/类
@Override
public List<ProductCode> findSnapshotProductCodes(Account account, Region region, String snapshotId) {
AmazonEC2 ec2 = findClient(account, region);
DescribeSnapshotAttributeRequest req = new DescribeSnapshotAttributeRequest();
req.setAttribute("productCodes");
req.setSnapshotId(snapshotId);
log.debug("start describing snapshot productCodes for account:{} in region:{} via api", account.getId() + "=>" + account.getName(), region);
DescribeSnapshotAttributeResult res = ec2.describeSnapshotAttribute(req);
return res.getProductCodes();
}
示例4: describeSnapshotAttribute
import com.amazonaws.services.ec2.model.DescribeSnapshotAttributeRequest; //导入依赖的package包/类
@Override
public DescribeSnapshotAttributeResult describeSnapshotAttribute(DescribeSnapshotAttributeRequest describeSnapshotAttributeRequest) throws AmazonServiceException, AmazonClientException {
throw new UnsupportedOperationException("Not supported in mock");
}
示例5: describeAttribute
import com.amazonaws.services.ec2.model.DescribeSnapshotAttributeRequest; //导入依赖的package包/类
/**
* Performs the <code>DescribeAttribute</code> action.
*
* <p>
* The following request parameters will be populated from the data of this
* <code>Snapshot</code> resource, and any conflicting parameter value set
* in the request will be overridden:
* <ul>
* <li>
* <b><code>SnapshotId</code></b>
* - mapped from the <code>Id</code> identifier.
* </li>
* </ul>
*
* <p>
*
* @return The response of the low-level client operation associated with
* this resource action.
* @see DescribeSnapshotAttributeRequest
*/
DescribeSnapshotAttributeResult describeAttribute(
DescribeSnapshotAttributeRequest request);