Example usage for com.amazonaws.services.apigateway.model CreateRestApiRequest withDescription

List of usage examples for com.amazonaws.services.apigateway.model CreateRestApiRequest withDescription

Introduction

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

Prototype


public CreateRestApiRequest withDescription(String description) 

Source Link

Document

The description of the RestApi.

Usage

From source file:br.com.ingenieux.mojo.apigateway.CreateOrUpdateMojo.java

License:Apache License

private void createOrUpdateRestApi() throws Exception {
    super.lookupIds();

    if (isBlank(restApiId)) {
        CreateRestApiRequest req = new CreateRestApiRequest();

        req.withName(restApiName);//from ww w  . j  a v  a2  s  .  com
        req.withDescription(defaultString(restApiDescription));

        final CreateRestApiResult result = getService().createRestApi(req);

        getLog().info("Created restApi " + req + ": " + result);

        super.lookupIds();
    }
}