public ImportRestApiResult withWarnings(String... warnings) {
        if (this.warnings == null) {
            setWarnings(new java.util.ArrayList<String>(warnings.length));
        }
        for (String ele : warnings) {
            this.warnings.add(ele);
        }
        return this;
    }
<p>
The warning messages reported when <code>failonwarnings</code> is turned on during API import.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setWarnings(java.util.Collection)} or {@link #withWarnings(java.util.Collection)} if you want to override
the existing values.
</p>

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