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

项目:aws-sdk-java-resources    文件:EC2Impl.java   
@Override
public InternetGateway createInternetGateway(CreateInternetGatewayRequest
        request, ResultCapture<CreateInternetGatewayResult> extractor) {

    ActionResult result = service.performAction("CreateInternetGateway",
            request, extractor);

    if (result == null) return null;
    return new InternetGatewayImpl(result.getResource());
}
项目:aws-mock    文件:BaseTest.java   
/**
 * Create internet gateway.
 *
 * @return InternetGateway
 */
protected final InternetGateway createInternetGateway() {
    InternetGateway internetGateway = null;

    CreateInternetGatewayRequest req = new CreateInternetGatewayRequest();
    CreateInternetGatewayResult result = amazonEC2Client.createInternetGateway(req);
    if (result != null) {
        internetGateway = result.getInternetGateway();
    }

    return internetGateway;
}
项目:elasticsearch_my    文件:AmazonEC2Mock.java   
@Override
public CreateInternetGatewayResult createInternetGateway(CreateInternetGatewayRequest createInternetGatewayRequest) throws AmazonServiceException, AmazonClientException {
    throw new UnsupportedOperationException("Not supported in mock");
}
项目:aws-sdk-java-resources    文件:EC2Impl.java   
@Override
public InternetGateway createInternetGateway(CreateInternetGatewayRequest
        request) {

    return createInternetGateway(request, null);
}
项目:aws-sdk-java-resources    文件:EC2.java   
/**
 * Performs the <code>CreateInternetGateway</code> action.
 *
 * <p>
 *
 * @return The <code>InternetGateway</code> resource object associated with
 *         the result of this action.
 * @see CreateInternetGatewayRequest
 */
com.amazonaws.resources.ec2.InternetGateway createInternetGateway(
        CreateInternetGatewayRequest request);
项目:aws-sdk-java-resources    文件:EC2.java   
/**
 * Performs the <code>CreateInternetGateway</code> action and use a
 * ResultCapture to retrieve the low-level client response.
 *
 * <p>
 *
 * @return The <code>InternetGateway</code> resource object associated with
 *         the result of this action.
 * @see CreateInternetGatewayRequest
 */
com.amazonaws.resources.ec2.InternetGateway createInternetGateway(
        CreateInternetGatewayRequest request,
        ResultCapture<CreateInternetGatewayResult> extractor);