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