public ResourceDetail withWarnings(java.util.Collection<WarningDetail> warnings) {
        setWarnings(warnings);
        return this;
    }
<p>
The warnings generated for this resource.
</p>

@param warnings
       The warnings generated for this resource.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-cloudformation/src/main/java/com/amazonaws/services/cloudformation/model/ResourceDetail.java