public Status withFailureCode(String failureCode) {
        setFailureCode(failureCode);
        return this;
    }
<p>
Indicates the source of the error.
</p>

@param failureCode
       Indicates the source of the error.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-kendra/src/main/java/com/amazonaws/services/kendra/model/Status.java