public void setWarnings(java.util.Collection<WarningDetail> warnings) {
        if (warnings == null) {
            this.warnings = null;
            return;
        }

        this.warnings = new com.amazonaws.internal.SdkInternalList<WarningDetail>(warnings);
    }
<p>
The warnings generated for this resource.
</p>

@param warnings
       The warnings generated for this resource.
aws-java-sdk-cloudformation/src/main/java/com/amazonaws/services/cloudformation/model/ResourceDetail.java