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

项目: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");
}
项目:elasticsearch_my    文件:AmazonEC2Mock.java   
@Override
public CreateInternetGatewayResult createInternetGateway() throws AmazonServiceException, AmazonClientException {
    throw new UnsupportedOperationException("Not supported in mock");
}
项目:photon-model    文件:AWSNetworkClient.java   
public String createInternetGateway() {
    CreateInternetGatewayResult res = this.client.createInternetGateway();
    return res.getInternetGateway().getInternetGatewayId();
}
项目: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);