當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。