Java 类com.amazonaws.services.ec2.model.DescribeNetworkInterfacesResult 实例源码

项目:clouck    文件:Ec2WrapperImpl.java   
@Override
public List<AbstractResource<?>> describeNetworkInterfaces(Account account, Region region, DateTime dt, Ec2Filter... filters) {
    AmazonEC2 ec2 = findClient(account, region);

    DescribeNetworkInterfacesRequest req = new DescribeNetworkInterfacesRequest();
    for (Ec2Filter filter : filters) {
        Filter f = new Filter().withName(filter.getName()).withValues(filter.getValues());
        req.withFilters(f);
    }

    log.debug("start describing network interfaces for account:{} in region:{} via api", account.getId() + "=>" + account.getName(), region);
    DescribeNetworkInterfacesResult res = ec2.describeNetworkInterfaces(req);

    return converter.toEc2NetworkInterfaces(res.getNetworkInterfaces(), account.getId(), region, dt);
}
项目:elasticsearch_my    文件:AmazonEC2Mock.java   
@Override
public DescribeNetworkInterfacesResult describeNetworkInterfaces(DescribeNetworkInterfacesRequest describeNetworkInterfacesRequest) throws AmazonServiceException, AmazonClientException {
    throw new UnsupportedOperationException("Not supported in mock");
}
项目:elasticsearch_my    文件:AmazonEC2Mock.java   
@Override
public DescribeNetworkInterfacesResult describeNetworkInterfaces() throws AmazonServiceException, AmazonClientException {
    throw new UnsupportedOperationException("Not supported in mock");
}
项目:aws-sdk-java-resources    文件:NetworkInterfaceImpl.java   
@Override
public boolean load(DescribeNetworkInterfacesRequest request,
        ResultCapture<DescribeNetworkInterfacesResult> extractor) {

    return resource.load(request, extractor);
}
项目:aws-sdk-java-resources    文件:NetworkInterface.java   
/**
 * Makes a call to the service to load this resource's attributes if they
 * are not loaded yet, and use a ResultCapture to retrieve the low-level
 * client response
 * The following request parameters will be populated from the data of this
 * <code>NetworkInterface</code> resource, and any conflicting parameter
 * value set in the request will be overridden:
 * <ul>
 *   <li>
 *     <b><code>NetworkInterfaceIds.0</code></b>
 *         - mapped from the <code>Id</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 DescribeNetworkInterfacesRequest
 */
boolean load(DescribeNetworkInterfacesRequest request,
        ResultCapture<DescribeNetworkInterfacesResult> extractor);