public EventBus withPolicy(String policy) {
        setPolicy(policy);
        return this;
    }
<p>
The permissions policy of the event bus, describing which other Amazon Web Services accounts can write events to
this event bus.
</p>

@param policy
       The permissions policy of the event bus, describing which other Amazon Web Services accounts can write
       events to this event bus.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-events/src/main/java/com/amazonaws/services/cloudwatchevents/model/EventBus.java