本文整理匯總了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();
}
示例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();
}
示例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();
}
示例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");
}
示例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);