public DescribeIndexResult withStatus(IndexStatus status) {
        this.status = status.toString();
        return this;
    }
<p>
The current status of the index. When the value is <code>ACTIVE</code>, the index is ready for use. If the
<code>Status</code> field value is <code>FAILED</code>, the <code>ErrorMessage</code> field contains a message
that explains why.
</p>

@param status
       The current status of the index. When the value is <code>ACTIVE</code>, the index is ready for use. If the
       <code>Status</code> field value is <code>FAILED</code>, the <code>ErrorMessage</code> field contains a
       message that explains why.
@return Returns a reference to this object so that method calls can be chained together.
@see IndexStatus
aws-java-sdk-kendra/src/main/java/com/amazonaws/services/kendra/model/DescribeIndexResult.java