List of usage examples for com.amazonaws.services.apigateway.model PutRestApiRequest PutRestApiRequest
PutRestApiRequest
From source file:br.com.ingenieux.mojo.apigateway.CreateOrUpdateMojo.java
License:Apache License
private PutRestApiResult importDefinitions() { getLog().info("Uploading definitions update (overwrite mode?: " + overwriteDefinitions + ")"); final PutRestApiResult result = getService().putRestApi(new PutRestApiRequest().withRestApiId(restApiId) .withMode(this.overwriteDefinitions ? PutMode.Overwrite : PutMode.Merge) .withBody(ByteBuffer.wrap(body.getBytes(DEFAULT_CHARSET))).withParameters(parameters)); getLog().debug("result: " + result); return result; }