public UserDefined withUnit(Unit unit) {
        this.unit = unit.toString();
        return this;
    }
<p>
The units for output resolution of the result.
</p>

@param unit
       The units for output resolution of the result.
@return Returns a reference to this object so that method calls can be chained together.
@see Unit
aws-java-sdk-sagemakergeospatial/src/main/java/com/amazonaws/services/sagemakergeospatial/model/UserDefined.java