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