@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()); }
/** * 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; }
@Override public CreateInternetGatewayResult createInternetGateway(CreateInternetGatewayRequest createInternetGatewayRequest) throws AmazonServiceException, AmazonClientException { throw new UnsupportedOperationException("Not supported in mock"); }
@Override public InternetGateway createInternetGateway(CreateInternetGatewayRequest request) { return createInternetGateway(request, null); }
/** * 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);
/** * 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);