public OutboundCrossClusterSearchConnectionStatus withStatusCode(OutboundCrossClusterSearchConnectionStatusCode statusCode) {
        this.statusCode = statusCode.toString();
        return this;
    }
<p>
The state code for outbound connection. This can be one of the following:
</p>
<ul>
<li>VALIDATING: The outbound connection request is being validated.</li>
<li>VALIDATION_FAILED: Validation failed for the connection request.</li>
<li>PENDING_ACCEPTANCE: Outbound connection request is validated and is not yet accepted by destination domain
owner.</li>
<li>PROVISIONING: Outbound connection request is in process.</li>
<li>ACTIVE: Outbound connection is active and ready to use.</li>
<li>REJECTED: Outbound connection request is rejected by destination domain owner.</li>
<li>DELETING: Outbound connection deletion is in progress.</li>
<li>DELETED: Outbound connection is deleted and cannot be used further.</li>
</ul>

@param statusCode
       The state code for outbound connection. This can be one of the following:</p>
       <ul>
       <li>VALIDATING: The outbound connection request is being validated.</li>
       <li>VALIDATION_FAILED: Validation failed for the connection request.</li>
       <li>PENDING_ACCEPTANCE: Outbound connection request is validated and is not yet accepted by destination
       domain owner.</li>
       <li>PROVISIONING: Outbound connection request is in process.</li>
       <li>ACTIVE: Outbound connection is active and ready to use.</li>
       <li>REJECTED: Outbound connection request is rejected by destination domain owner.</li>
       <li>DELETING: Outbound connection deletion is in progress.</li>
       <li>DELETED: Outbound connection is deleted and cannot be used further.</li>
@return Returns a reference to this object so that method calls can be chained together.
@see OutboundCrossClusterSearchConnectionStatusCode
aws-java-sdk-elasticsearch/src/main/java/com/amazonaws/services/elasticsearch/model/OutboundCrossClusterSearchConnectionStatus.java