List of usage examples for com.amazonaws.services.apigateway.model CreateRestApiRequest withName
public CreateRestApiRequest withName(String name)
[Required] The name of the RestApi.
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 }