本文整理匯總了Java中com.amazonaws.services.ec2.model.DescribeDhcpOptionsRequest類的典型用法代碼示例。如果您正苦於以下問題:Java DescribeDhcpOptionsRequest類的具體用法?Java DescribeDhcpOptionsRequest怎麽用?Java DescribeDhcpOptionsRequest使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
DescribeDhcpOptionsRequest類屬於com.amazonaws.services.ec2.model包,在下文中一共展示了DescribeDhcpOptionsRequest類的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: getDhcpOptionsSets
import com.amazonaws.services.ec2.model.DescribeDhcpOptionsRequest; //導入依賴的package包/類
@Override
public DhcpOptionsCollection getDhcpOptionsSets(DescribeDhcpOptionsRequest
request) {
ResourceCollectionImpl result = service.getCollection("DhcpOptionsSets",
request);
if (result == null) return null;
return new DhcpOptionsCollectionImpl(result);
}
示例2: describeDhcpOptions
import com.amazonaws.services.ec2.model.DescribeDhcpOptionsRequest; //導入依賴的package包/類
@Override
public List<AbstractResource<?>> describeDhcpOptions(Account account, Region region, DateTime dt, Ec2Filter... filters) {
AmazonEC2 ec2 = findClient(account, region);
DescribeDhcpOptionsRequest req = new DescribeDhcpOptionsRequest();
for (Ec2Filter filter : filters) {
Filter f = new Filter().withName(filter.getName()).withValues(filter.getValues());
req.withFilters(f);
}
log.debug("start describing dhcp options for account:{} in region:{} via api", account.getId() + "=>" + account.getName(), region);
DescribeDhcpOptionsResult res = ec2.describeDhcpOptions(req);
return converter.toVpcDhcpOptions(res.getDhcpOptions(), account.getId(), region, dt);
}
示例3: describeDhcpOptions
import com.amazonaws.services.ec2.model.DescribeDhcpOptionsRequest; //導入依賴的package包/類
@Override
public DescribeDhcpOptionsResult describeDhcpOptions(DescribeDhcpOptionsRequest describeDhcpOptionsRequest) throws AmazonServiceException, AmazonClientException {
throw new UnsupportedOperationException("Not supported in mock");
}
示例4: load
import com.amazonaws.services.ec2.model.DescribeDhcpOptionsRequest; //導入依賴的package包/類
@Override
public boolean load(DescribeDhcpOptionsRequest request) {
return load(request, null);
}
示例5: getDhcpOptionsSets
import com.amazonaws.services.ec2.model.DescribeDhcpOptionsRequest; //導入依賴的package包/類
/**
* Retrieves the DhcpOptionsSets collection referenced by this resource.
*/
DhcpOptionsCollection getDhcpOptionsSets(DescribeDhcpOptionsRequest request)
;
示例6: load
import com.amazonaws.services.ec2.model.DescribeDhcpOptionsRequest; //導入依賴的package包/類
/**
* Makes a call to the service to load this resource's attributes if they
* are not loaded yet.
* The following request parameters will be populated from the data of this
* <code>DhcpOptions</code> resource, and any conflicting parameter value
* set in the request will be overridden:
* <ul>
* <li>
* <b><code>DhcpOptionsIds.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 DescribeDhcpOptionsRequest
*/
boolean load(DescribeDhcpOptionsRequest request);