/** * <p> * If the event is of type <code>FailWorkflowExecutionFailed</code> then this member is set and provides * detailed information about the event. It isn't set for other event types. * </p> * This is a convenience that creates an instance of the * {@link FailWorkflowExecutionFailedEventAttributes.Builder} avoiding the need to create one manually via * {@link FailWorkflowExecutionFailedEventAttributes#builder()}. * * When the {@link Consumer} completes, {@link FailWorkflowExecutionFailedEventAttributes.Builder#build()} is * called immediately and its result is passed to * {@link #failWorkflowExecutionFailedEventAttributes(FailWorkflowExecutionFailedEventAttributes)}. * * @param failWorkflowExecutionFailedEventAttributes * a consumer that will call methods on {@link FailWorkflowExecutionFailedEventAttributes.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #failWorkflowExecutionFailedEventAttributes(FailWorkflowExecutionFailedEventAttributes) */ default Builder failWorkflowExecutionFailedEventAttributes( Consumer<FailWorkflowExecutionFailedEventAttributes.Builder> failWorkflowExecutionFailedEventAttributes) { return failWorkflowExecutionFailedEventAttributes(FailWorkflowExecutionFailedEventAttributes.builder() .applyMutation(failWorkflowExecutionFailedEventAttributes).build()); }
/** * <p> * If the event is of type <code>FailWorkflowExecutionFailed</code> then this member is set and provides * detailed information about the event. It isn't set for other event types. * </p> * This is a convenience that creates an instance of the * {@link FailWorkflowExecutionFailedEventAttributes.Builder} avoiding the need to create one manually via * {@link FailWorkflowExecutionFailedEventAttributes#builder()}. * * When the {@link Consumer} completes, {@link FailWorkflowExecutionFailedEventAttributes.Builder#build()} is * called immediately and its result is passed to * {@link #failWorkflowExecutionFailedEventAttributes(FailWorkflowExecutionFailedEventAttributes)}. * * @param failWorkflowExecutionFailedEventAttributes * a consumer that will call methods on {@link FailWorkflowExecutionFailedEventAttributes.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #failWorkflowExecutionFailedEventAttributes(FailWorkflowExecutionFailedEventAttributes) */ default Builder failWorkflowExecutionFailedEventAttributes( Consumer<FailWorkflowExecutionFailedEventAttributes.Builder> failWorkflowExecutionFailedEventAttributes) { return failWorkflowExecutionFailedEventAttributes(FailWorkflowExecutionFailedEventAttributes.builder() .applyMutation(failWorkflowExecutionFailedEventAttributes).build()); }
/** * <p> * If the event is of type <code>FailWorkflowExecutionFailed</code> then this member is set and provides * detailed information about the event. It isn't set for other event types. * </p> * This is a convenience that creates an instance of the * {@link FailWorkflowExecutionFailedEventAttributes.Builder} avoiding the need to create one manually via * {@link FailWorkflowExecutionFailedEventAttributes#builder()}. * * When the {@link Consumer} completes, {@link FailWorkflowExecutionFailedEventAttributes.Builder#build()} is * called immediately and its result is passed to * {@link #failWorkflowExecutionFailedEventAttributes(FailWorkflowExecutionFailedEventAttributes)}. * * @param failWorkflowExecutionFailedEventAttributes * a consumer that will call methods on {@link FailWorkflowExecutionFailedEventAttributes.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #failWorkflowExecutionFailedEventAttributes(FailWorkflowExecutionFailedEventAttributes) */ default Builder failWorkflowExecutionFailedEventAttributes( Consumer<FailWorkflowExecutionFailedEventAttributes.Builder> failWorkflowExecutionFailedEventAttributes) { return failWorkflowExecutionFailedEventAttributes(FailWorkflowExecutionFailedEventAttributes.builder() .applyMutation(failWorkflowExecutionFailedEventAttributes).build()); }