public LustreLogConfiguration withLevel(String level) {
        setLevel(level);
        return this;
    }
<p>
The data repository events that are logged by Amazon FSx.
</p>
<ul>
<li>
<p>
<code>WARN_ONLY</code> - only warning events are logged.
</p>
</li>
<li>
<p>
<code>ERROR_ONLY</code> - only error events are logged.
</p>
</li>
<li>
<p>
<code>WARN_ERROR</code> - both warning events and error events are logged.
</p>
</li>
<li>
<p>
<code>DISABLED</code> - logging of data repository events is turned off.
</p>
</li>
</ul>
<p>
Note that Amazon File Cache uses a default setting of <code>WARN_ERROR</code>, which can't be changed.
</p>

@param level
       The data repository events that are logged by Amazon FSx.</p>
       <ul>
       <li>
       <p>
       <code>WARN_ONLY</code> - only warning events are logged.
       </p>
       </li>
       <li>
       <p>
       <code>ERROR_ONLY</code> - only error events are logged.
       </p>
       </li>
       <li>
       <p>
       <code>WARN_ERROR</code> - both warning events and error events are logged.
       </p>
       </li>
       <li>
       <p>
       <code>DISABLED</code> - logging of data repository events is turned off.
       </p>
       </li>
       </ul>
       <p>
       Note that Amazon File Cache uses a default setting of <code>WARN_ERROR</code>, which can't be changed.
@return Returns a reference to this object so that method calls can be chained together.
@see LustreAccessAuditLogLevel
aws-java-sdk-fsx/src/main/java/com/amazonaws/services/fsx/model/LustreLogConfiguration.java