public JoinDomainResult withActiveDirectoryStatus(ActiveDirectoryStatus activeDirectoryStatus) {
        this.activeDirectoryStatus = activeDirectoryStatus.toString();
        return this;
    }
<p>
Indicates the status of the gateway as a member of the Active Directory domain.
</p>
<ul>
<li>
<p>
<code>ACCESS_DENIED</code>: Indicates that the <code>JoinDomain</code> operation failed due to an authentication
error.
</p>
</li>
<li>
<p>
<code>DETACHED</code>: Indicates that gateway is not joined to a domain.
</p>
</li>
<li>
<p>
<code>JOINED</code>: Indicates that the gateway has successfully joined a domain.
</p>
</li>
<li>
<p>
<code>JOINING</code>: Indicates that a <code>JoinDomain</code> operation is in progress.
</p>
</li>
<li>
<p>
<code>NETWORK_ERROR</code>: Indicates that <code>JoinDomain</code> operation failed due to a network or
connectivity error.
</p>
</li>
<li>
<p>
<code>TIMEOUT</code>: Indicates that the <code>JoinDomain</code> operation failed because the operation didn't
complete within the allotted time.
</p>
</li>
<li>
<p>
<code>UNKNOWN_ERROR</code>: Indicates that the <code>JoinDomain</code> operation failed due to another type of
error.
</p>
</li>
</ul>

@param activeDirectoryStatus
       Indicates the status of the gateway as a member of the Active Directory domain.</p>
       <ul>
       <li>
       <p>
       <code>ACCESS_DENIED</code>: Indicates that the <code>JoinDomain</code> operation failed due to an
       authentication error.
       </p>
       </li>
       <li>
       <p>
       <code>DETACHED</code>: Indicates that gateway is not joined to a domain.
       </p>
       </li>
       <li>
       <p>
       <code>JOINED</code>: Indicates that the gateway has successfully joined a domain.
       </p>
       </li>
       <li>
       <p>
       <code>JOINING</code>: Indicates that a <code>JoinDomain</code> operation is in progress.
       </p>
       </li>
       <li>
       <p>
       <code>NETWORK_ERROR</code>: Indicates that <code>JoinDomain</code> operation failed due to a network or
       connectivity error.
       </p>
       </li>
       <li>
       <p>
       <code>TIMEOUT</code>: Indicates that the <code>JoinDomain</code> operation failed because the operation
       didn't complete within the allotted time.
       </p>
       </li>
       <li>
       <p>
       <code>UNKNOWN_ERROR</code>: Indicates that the <code>JoinDomain</code> operation failed due to another
       type of error.
       </p>
       </li>
@return Returns a reference to this object so that method calls can be chained together.
@see ActiveDirectoryStatus
aws-java-sdk-storagegateway/src/main/java/com/amazonaws/services/storagegateway/model/JoinDomainResult.java