public MountPoint withReadOnly(Boolean readOnly) {
        setReadOnly(readOnly);
        return this;
    }
<p>
If this value is <code>true</code>, the container has read-only access to the volume. Otherwise, the container
can write to the volume. The default value is <code>false</code>.
</p>

@param readOnly
       If this value is <code>true</code>, the container has read-only access to the volume. Otherwise, the
       container can write to the volume. The default value is <code>false</code>.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-batch/src/main/java/com/amazonaws/services/batch/model/MountPoint.java