当前位置: 首页>>代码示例>>Java>>正文


Java DescribeVolumeAttributeRequest类代码示例

本文整理汇总了Java中com.amazonaws.services.ec2.model.DescribeVolumeAttributeRequest的典型用法代码示例。如果您正苦于以下问题:Java DescribeVolumeAttributeRequest类的具体用法?Java DescribeVolumeAttributeRequest怎么用?Java DescribeVolumeAttributeRequest使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


DescribeVolumeAttributeRequest类属于com.amazonaws.services.ec2.model包,在下文中一共展示了DescribeVolumeAttributeRequest类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: describeAttribute

import com.amazonaws.services.ec2.model.DescribeVolumeAttributeRequest; //导入依赖的package包/类
@Override
public DescribeVolumeAttributeResult describeAttribute(
        DescribeVolumeAttributeRequest request,
        ResultCapture<DescribeVolumeAttributeResult> extractor) {

    ActionResult result = resource.performAction("DescribeAttribute",
            request, extractor);

    if (result == null) return null;
    return (DescribeVolumeAttributeResult) result.getData();
}
 
开发者ID:awslabs,项目名称:aws-sdk-java-resources,代码行数:12,代码来源:VolumeImpl.java

示例2: findAutoEnableIO

import com.amazonaws.services.ec2.model.DescribeVolumeAttributeRequest; //导入依赖的package包/类
@Override
public Boolean findAutoEnableIO(Account account, Region region, String volumeId) {
    AmazonEC2 ec2 = findClient(account, region);

    DescribeVolumeAttributeRequest req = new DescribeVolumeAttributeRequest();
    req.setVolumeId(volumeId);
    req.setAttribute("autoEnableIO");

    log.debug("start describing volume attribute auto enable io for account:{} in region:{} via api", account.getId() + "=>" + account.getName(), region);
    return ec2.describeVolumeAttribute(req).getAutoEnableIO();
}
 
开发者ID:veyronfei,项目名称:clouck,代码行数:12,代码来源:Ec2WrapperImpl.java

示例3: findProductCodes

import com.amazonaws.services.ec2.model.DescribeVolumeAttributeRequest; //导入依赖的package包/类
@Override
public List<ProductCode> findProductCodes(Account account, Region region, String volumeId) {
    AmazonEC2 ec2 = findClient(account, region);

    DescribeVolumeAttributeRequest req = new DescribeVolumeAttributeRequest();
    req.setVolumeId(volumeId);
    req.setAttribute("productCodes");

    log.debug("start describing volume attribute product codes for account:{} in region:{} via api", account.getId() + "=>" + account.getName(), region);
    return ec2.describeVolumeAttribute(req).getProductCodes();
}
 
开发者ID:veyronfei,项目名称:clouck,代码行数:12,代码来源:Ec2WrapperImpl.java

示例4: describeVolumeAttribute

import com.amazonaws.services.ec2.model.DescribeVolumeAttributeRequest; //导入依赖的package包/类
@Override
public DescribeVolumeAttributeResult describeVolumeAttribute(DescribeVolumeAttributeRequest describeVolumeAttributeRequest) throws AmazonServiceException, AmazonClientException {
    throw new UnsupportedOperationException("Not supported in mock");
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:5,代码来源:AmazonEC2Mock.java

示例5: describeAttribute

import com.amazonaws.services.ec2.model.DescribeVolumeAttributeRequest; //导入依赖的package包/类
/**
 * Performs the <code>DescribeAttribute</code> action.
 *
 * <p>
 * The following request parameters will be populated from the data of this
 * <code>Volume</code> resource, and any conflicting parameter value set in
 * the request will be overridden:
 * <ul>
 *   <li>
 *     <b><code>VolumeId</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 DescribeVolumeAttributeRequest
 */
DescribeVolumeAttributeResult describeAttribute(
        DescribeVolumeAttributeRequest request);
 
开发者ID:awslabs,项目名称:aws-sdk-java-resources,代码行数:23,代码来源:Volume.java


注:本文中的com.amazonaws.services.ec2.model.DescribeVolumeAttributeRequest类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。