public EventSubscription withStatus(String status) {
        setStatus(status);
        return this;
    }
<p>
The status of the Amazon DocumentDB event notification subscription.
</p>
<p>
Constraints:
</p>
<p>
Can be one of the following: <code>creating</code>, <code>modifying</code>, <code>deleting</code>,
<code>active</code>, <code>no-permission</code>, <code>topic-not-exist</code>
</p>
<p>
The <code>no-permission</code> status indicates that Amazon DocumentDB no longer has permission to post to the
SNS topic. The <code>topic-not-exist</code> status indicates that the topic was deleted after the subscription
was created.
</p>

@param status
       The status of the Amazon DocumentDB event notification subscription.</p>
       <p>
       Constraints:
       </p>
       <p>
       Can be one of the following: <code>creating</code>, <code>modifying</code>, <code>deleting</code>,
       <code>active</code>, <code>no-permission</code>, <code>topic-not-exist</code>
       </p>
       <p>
       The <code>no-permission</code> status indicates that Amazon DocumentDB no longer has permission to post to
       the SNS topic. The <code>topic-not-exist</code> status indicates that the topic was deleted after the
       subscription was created.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-docdb/src/main/java/com/amazonaws/services/docdb/model/EventSubscription.java