public MonitorErrorDetails withCode(String code) {
        setCode(code);
        return this;
    }
<p>
The error code.
</p>

@param code
       The error code.
@return Returns a reference to this object so that method calls can be chained together.
@see MonitorErrorCode
aws-java-sdk-iotsitewise/src/main/java/com/amazonaws/services/iotsitewise/model/MonitorErrorDetails.java