public Event withReadOnly(String readOnly) {
        setReadOnly(readOnly);
        return this;
    }
<p>
Information about whether the event is a write event or a read event.
</p>

@param readOnly
       Information about whether the event is a write event or a read event.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-cloudtrail/src/main/java/com/amazonaws/services/cloudtrail/model/Event.java