public Operation withErrorCode(String errorCode) {
        setErrorCode(errorCode);
        return this;
    }
<p>
The code associated with <code>ErrorMessage</code>. Values for <code>ErrorCode</code> include the following:
</p>
<ul>
<li>
<p>
<code>ACCESS_DENIED</code>
</p>
</li>
<li>
<p>
<code>CANNOT_CREATE_HOSTED_ZONE</code>
</p>
</li>
<li>
<p>
<code>EXPIRED_TOKEN</code>
</p>
</li>
<li>
<p>
<code>HOSTED_ZONE_NOT_FOUND</code>
</p>
</li>
<li>
<p>
<code>INTERNAL_FAILURE</code>
</p>
</li>
<li>
<p>
<code>INVALID_CHANGE_BATCH</code>
</p>
</li>
<li>
<p>
<code>THROTTLED_REQUEST</code>
</p>
</li>
</ul>

@param errorCode
       The code associated with <code>ErrorMessage</code>. Values for <code>ErrorCode</code> include the
       following:</p>
       <ul>
       <li>
       <p>
       <code>ACCESS_DENIED</code>
       </p>
       </li>
       <li>
       <p>
       <code>CANNOT_CREATE_HOSTED_ZONE</code>
       </p>
       </li>
       <li>
       <p>
       <code>EXPIRED_TOKEN</code>
       </p>
       </li>
       <li>
       <p>
       <code>HOSTED_ZONE_NOT_FOUND</code>
       </p>
       </li>
       <li>
       <p>
       <code>INTERNAL_FAILURE</code>
       </p>
       </li>
       <li>
       <p>
       <code>INVALID_CHANGE_BATCH</code>
       </p>
       </li>
       <li>
       <p>
       <code>THROTTLED_REQUEST</code>
       </p>
       </li>
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-servicediscovery/src/main/java/com/amazonaws/services/servicediscovery/model/Operation.java