public CreateOpenZFSVolumeConfiguration withReadOnly(Boolean readOnly) {
        setReadOnly(readOnly);
        return this;
    }
<p>
A Boolean value indicating whether the volume is read-only.
</p>

@param readOnly
       A Boolean value indicating whether the volume is read-only.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-fsx/src/main/java/com/amazonaws/services/fsx/model/CreateOpenZFSVolumeConfiguration.java