if (context.testExpression("result", targetDepth)) { context.nextToken(); activityTaskCompletedEventAttributesBuilder.result(context.getUnmarshaller(String.class).unmarshall(context)); activityTaskCompletedEventAttributesBuilder.scheduledEventId(context.getUnmarshaller(Long.class).unmarshall( context)); activityTaskCompletedEventAttributesBuilder.startedEventId(context.getUnmarshaller(Long.class).unmarshall( context)); return activityTaskCompletedEventAttributesBuilder.build();
/** * <p> * If the event is of type <code>ActivityTaskCompleted</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 ActivityTaskCompletedEventAttributes.Builder} * avoiding the need to create one manually via {@link ActivityTaskCompletedEventAttributes#builder()}. * * When the {@link Consumer} completes, {@link ActivityTaskCompletedEventAttributes.Builder#build()} is called * immediately and its result is passed to * {@link #activityTaskCompletedEventAttributes(ActivityTaskCompletedEventAttributes)}. * * @param activityTaskCompletedEventAttributes * a consumer that will call methods on {@link ActivityTaskCompletedEventAttributes.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #activityTaskCompletedEventAttributes(ActivityTaskCompletedEventAttributes) */ default Builder activityTaskCompletedEventAttributes( Consumer<ActivityTaskCompletedEventAttributes.Builder> activityTaskCompletedEventAttributes) { return activityTaskCompletedEventAttributes(ActivityTaskCompletedEventAttributes.builder() .applyMutation(activityTaskCompletedEventAttributes).build()); }
/** * <p> * If the event is of type <code>ActivityTaskCompleted</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 ActivityTaskCompletedEventAttributes.Builder} * avoiding the need to create one manually via {@link ActivityTaskCompletedEventAttributes#builder()}. * * When the {@link Consumer} completes, {@link ActivityTaskCompletedEventAttributes.Builder#build()} is called * immediately and its result is passed to * {@link #activityTaskCompletedEventAttributes(ActivityTaskCompletedEventAttributes)}. * * @param activityTaskCompletedEventAttributes * a consumer that will call methods on {@link ActivityTaskCompletedEventAttributes.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #activityTaskCompletedEventAttributes(ActivityTaskCompletedEventAttributes) */ default Builder activityTaskCompletedEventAttributes( Consumer<ActivityTaskCompletedEventAttributes.Builder> activityTaskCompletedEventAttributes) { return activityTaskCompletedEventAttributes(ActivityTaskCompletedEventAttributes.builder() .applyMutation(activityTaskCompletedEventAttributes).build()); }
/** * <p> * If the event is of type <code>ActivityTaskCompleted</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 ActivityTaskCompletedEventAttributes.Builder} * avoiding the need to create one manually via {@link ActivityTaskCompletedEventAttributes#builder()}. * * When the {@link Consumer} completes, {@link ActivityTaskCompletedEventAttributes.Builder#build()} is called * immediately and its result is passed to * {@link #activityTaskCompletedEventAttributes(ActivityTaskCompletedEventAttributes)}. * * @param activityTaskCompletedEventAttributes * a consumer that will call methods on {@link ActivityTaskCompletedEventAttributes.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #activityTaskCompletedEventAttributes(ActivityTaskCompletedEventAttributes) */ default Builder activityTaskCompletedEventAttributes( Consumer<ActivityTaskCompletedEventAttributes.Builder> activityTaskCompletedEventAttributes) { return activityTaskCompletedEventAttributes(ActivityTaskCompletedEventAttributes.builder() .applyMutation(activityTaskCompletedEventAttributes).build()); }