public APIErrorType withErrorCode(String errorCode) {
        setErrorCode(errorCode);
        return this;
    }
<p>
The error Secrets Manager encountered while retrieving an individual secret as part of
<a>BatchGetSecretValue</a>, for example <code>ResourceNotFoundException</code>,
<code>InvalidParameterException</code>, <code>InvalidRequestException</code>, <code>DecryptionFailure</code>, or
<code>AccessDeniedException</code>.
</p>

@param errorCode
       The error Secrets Manager encountered while retrieving an individual secret as part of
       <a>BatchGetSecretValue</a>, for example <code>ResourceNotFoundException</code>,
       <code>InvalidParameterException</code>, <code>InvalidRequestException</code>,
       <code>DecryptionFailure</code>, or <code>AccessDeniedException</code>.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-secretsmanager/src/main/java/com/amazonaws/services/secretsmanager/model/APIErrorType.java