public Api withWarnings(java.util.Collection<String> warnings) {
        setWarnings(warnings);
        return this;
    }
<p>
The warning messages reported when failonwarnings is turned on during API import.
</p>

@param warnings
       The warning messages reported when failonwarnings is turned on during API import.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-apigatewayv2/src/main/java/com/amazonaws/services/apigatewayv2/model/Api.java