public OptionStatus withPendingDeletion(Boolean pendingDeletion) {
        setPendingDeletion(pendingDeletion);
        return this;
    }
<p>
Indicates whether the Elasticsearch domain is being deleted.
</p>

@param pendingDeletion
       Indicates whether the Elasticsearch domain is being deleted.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-elasticsearch/src/main/java/com/amazonaws/services/elasticsearch/model/OptionStatus.java