public FlowDefinitionSummary withFailureReason(String failureReason) {
        setFailureReason(failureReason);
        return this;
    }
<p>
The reason why the flow definition creation failed. A failure reason is returned only when the flow definition
status is <code>Failed</code>.
</p>

@param failureReason
       The reason why the flow definition creation failed. A failure reason is returned only when the flow
       definition status is <code>Failed</code>.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-sagemaker/src/main/java/com/amazonaws/services/sagemaker/model/FlowDefinitionSummary.java