Example usage for com.amazonaws.services.apigateway.model PutMode Overwrite

List of usage examples for com.amazonaws.services.apigateway.model PutMode Overwrite

Introduction

In this page you can find the example usage for com.amazonaws.services.apigateway.model PutMode Overwrite.

Prototype

PutMode Overwrite

To view the source code for com.amazonaws.services.apigateway.model PutMode Overwrite.

Click Source Link

Usage

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;
}