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

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

Introduction

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

Prototype


public CreateRestApiRequest withName(String name) 

Source Link

Document

[Required] The name 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);
        req.withDescription(defaultString(restApiDescription));

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

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

        super.lookupIds();
    }//from  w  w w .  j  a  v  a 2s  .c o m
}