public WorkflowExecutionTerminatedEventAttributes withCause(String cause) {
        setCause(cause);
        return this;
    }
<p>
If set, indicates that the workflow execution was automatically terminated, and specifies the cause. This happens
if the parent workflow execution times out or is terminated and the child policy is set to terminate child
executions.
</p>

@param cause
       If set, indicates that the workflow execution was automatically terminated, and specifies the cause. This
       happens if the parent workflow execution times out or is terminated and the child policy is set to
       terminate child executions.
@return Returns a reference to this object so that method calls can be chained together.
@see WorkflowExecutionTerminatedCause
aws-java-sdk-simpleworkflow/src/main/java/com/amazonaws/services/simpleworkflow/model/WorkflowExecutionTerminatedEventAttributes.java