return decisionTaskCompletedEventAttributesBuilder.build();
/** * <p> * If the event is of type <code>DecisionTaskCompleted</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 DecisionTaskCompletedEventAttributes.Builder} * avoiding the need to create one manually via {@link DecisionTaskCompletedEventAttributes#builder()}. * * When the {@link Consumer} completes, {@link DecisionTaskCompletedEventAttributes.Builder#build()} is called * immediately and its result is passed to * {@link #decisionTaskCompletedEventAttributes(DecisionTaskCompletedEventAttributes)}. * * @param decisionTaskCompletedEventAttributes * a consumer that will call methods on {@link DecisionTaskCompletedEventAttributes.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #decisionTaskCompletedEventAttributes(DecisionTaskCompletedEventAttributes) */ default Builder decisionTaskCompletedEventAttributes( Consumer<DecisionTaskCompletedEventAttributes.Builder> decisionTaskCompletedEventAttributes) { return decisionTaskCompletedEventAttributes(DecisionTaskCompletedEventAttributes.builder() .applyMutation(decisionTaskCompletedEventAttributes).build()); }
/** * <p> * If the event is of type <code>DecisionTaskCompleted</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 DecisionTaskCompletedEventAttributes.Builder} * avoiding the need to create one manually via {@link DecisionTaskCompletedEventAttributes#builder()}. * * When the {@link Consumer} completes, {@link DecisionTaskCompletedEventAttributes.Builder#build()} is called * immediately and its result is passed to * {@link #decisionTaskCompletedEventAttributes(DecisionTaskCompletedEventAttributes)}. * * @param decisionTaskCompletedEventAttributes * a consumer that will call methods on {@link DecisionTaskCompletedEventAttributes.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #decisionTaskCompletedEventAttributes(DecisionTaskCompletedEventAttributes) */ default Builder decisionTaskCompletedEventAttributes( Consumer<DecisionTaskCompletedEventAttributes.Builder> decisionTaskCompletedEventAttributes) { return decisionTaskCompletedEventAttributes(DecisionTaskCompletedEventAttributes.builder() .applyMutation(decisionTaskCompletedEventAttributes).build()); }
/** * <p> * If the event is of type <code>DecisionTaskCompleted</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 DecisionTaskCompletedEventAttributes.Builder} * avoiding the need to create one manually via {@link DecisionTaskCompletedEventAttributes#builder()}. * * When the {@link Consumer} completes, {@link DecisionTaskCompletedEventAttributes.Builder#build()} is called * immediately and its result is passed to * {@link #decisionTaskCompletedEventAttributes(DecisionTaskCompletedEventAttributes)}. * * @param decisionTaskCompletedEventAttributes * a consumer that will call methods on {@link DecisionTaskCompletedEventAttributes.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #decisionTaskCompletedEventAttributes(DecisionTaskCompletedEventAttributes) */ default Builder decisionTaskCompletedEventAttributes( Consumer<DecisionTaskCompletedEventAttributes.Builder> decisionTaskCompletedEventAttributes) { return decisionTaskCompletedEventAttributes(DecisionTaskCompletedEventAttributes.builder() .applyMutation(decisionTaskCompletedEventAttributes).build()); }