public NFSFileShareInfo withReadOnly(Boolean readOnly) {
        setReadOnly(readOnly);
        return this;
    }
<p>
A value that sets the write status of a file share. Set this value to <code>true</code> to set the write status
to read-only, otherwise set to <code>false</code>.
</p>
<p>
Valid Values: <code>true</code> | <code>false</code>
</p>

@param readOnly
       A value that sets the write status of a file share. Set this value to <code>true</code> to set the write
       status to read-only, otherwise set to <code>false</code>.</p>
       <p>
       Valid Values: <code>true</code> | <code>false</code>
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-storagegateway/src/main/java/com/amazonaws/services/storagegateway/model/NFSFileShareInfo.java