public TopicRuleDestination withStatus(String status) {
        setStatus(status);
        return this;
    }
<p>
The status of the topic rule destination. Valid values are:
</p>
<dl>
<dt>IN_PROGRESS</dt>
<dd>
<p>
A topic rule destination was created but has not been confirmed. You can set <code>status</code> to
<code>IN_PROGRESS</code> by calling <code>UpdateTopicRuleDestination</code>. Calling
<code>UpdateTopicRuleDestination</code> causes a new confirmation challenge to be sent to your confirmation
endpoint.
</p>
</dd>
<dt>ENABLED</dt>
<dd>
<p>
Confirmation was completed, and traffic to this destination is allowed. You can set <code>status</code> to
<code>DISABLED</code> by calling <code>UpdateTopicRuleDestination</code>.
</p>
</dd>
<dt>DISABLED</dt>
<dd>
<p>
Confirmation was completed, and traffic to this destination is not allowed. You can set <code>status</code> to
<code>ENABLED</code> by calling <code>UpdateTopicRuleDestination</code>.
</p>
</dd>
<dt>ERROR</dt>
<dd>
<p>
Confirmation could not be completed, for example if the confirmation timed out. You can call
<code>GetTopicRuleDestination</code> for details about the error. You can set <code>status</code> to
<code>IN_PROGRESS</code> by calling <code>UpdateTopicRuleDestination</code>. Calling
<code>UpdateTopicRuleDestination</code> causes a new confirmation challenge to be sent to your confirmation
endpoint.
</p>
</dd>
</dl>

@param status
       The status of the topic rule destination. Valid values are:</p>
       <dl>
       <dt>IN_PROGRESS</dt>
       <dd>
       <p>
       A topic rule destination was created but has not been confirmed. You can set <code>status</code> to
       <code>IN_PROGRESS</code> by calling <code>UpdateTopicRuleDestination</code>. Calling
       <code>UpdateTopicRuleDestination</code> causes a new confirmation challenge to be sent to your
       confirmation endpoint.
       </p>
       </dd>
       <dt>ENABLED</dt>
       <dd>
       <p>
       Confirmation was completed, and traffic to this destination is allowed. You can set <code>status</code> to
       <code>DISABLED</code> by calling <code>UpdateTopicRuleDestination</code>.
       </p>
       </dd>
       <dt>DISABLED</dt>
       <dd>
       <p>
       Confirmation was completed, and traffic to this destination is not allowed. You can set
       <code>status</code> to <code>ENABLED</code> by calling <code>UpdateTopicRuleDestination</code>.
       </p>
       </dd>
       <dt>ERROR</dt>
       <dd>
       <p>
       Confirmation could not be completed, for example if the confirmation timed out. You can call
       <code>GetTopicRuleDestination</code> for details about the error. You can set <code>status</code> to
       <code>IN_PROGRESS</code> by calling <code>UpdateTopicRuleDestination</code>. Calling
       <code>UpdateTopicRuleDestination</code> causes a new confirmation challenge to be sent to your
       confirmation endpoint.
       </p>
       </dd>
@return Returns a reference to this object so that method calls can be chained together.
@see TopicRuleDestinationStatus
aws-java-sdk-iot/src/main/java/com/amazonaws/services/iot/model/TopicRuleDestination.java