public DataLakeUpdateException withCode(String code) {
        setCode(code);
        return this;
    }
<p>
The reason code for the exception of the last <code>UpdateDataLake</code> or <code>DeleteDataLake</code> API
request.
</p>

@param code
       The reason code for the exception of the last <code>UpdateDataLake</code> or <code>DeleteDataLake</code>
       API request.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-securitylake/src/main/java/com/amazonaws/services/securitylake/model/DataLakeUpdateException.java