@Override public ActivityTaskStartedEventAttributes build() { return new ActivityTaskStartedEventAttributes(this); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof ActivityTaskStartedEventAttributes)) { return false; } ActivityTaskStartedEventAttributes other = (ActivityTaskStartedEventAttributes) obj; return Objects.equals(identity(), other.identity()) && Objects.equals(scheduledEventId(), other.scheduledEventId()); }
public final ActivityTaskStartedEventAttributes.Builder getActivityTaskStartedEventAttributes() { return activityTaskStartedEventAttributes != null ? activityTaskStartedEventAttributes.toBuilder() : null; }
/** * <p> * If the event is of type <code>ActivityTaskStarted</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 ActivityTaskStartedEventAttributes.Builder} * avoiding the need to create one manually via {@link ActivityTaskStartedEventAttributes#builder()}. * * When the {@link Consumer} completes, {@link ActivityTaskStartedEventAttributes.Builder#build()} is called * immediately and its result is passed to * {@link #activityTaskStartedEventAttributes(ActivityTaskStartedEventAttributes)}. * * @param activityTaskStartedEventAttributes * a consumer that will call methods on {@link ActivityTaskStartedEventAttributes.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #activityTaskStartedEventAttributes(ActivityTaskStartedEventAttributes) */ default Builder activityTaskStartedEventAttributes( Consumer<ActivityTaskStartedEventAttributes.Builder> activityTaskStartedEventAttributes) { return activityTaskStartedEventAttributes(ActivityTaskStartedEventAttributes.builder() .applyMutation(activityTaskStartedEventAttributes).build()); }
/** * <p> * If the event is of type <code>ActivityTaskStarted</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 ActivityTaskStartedEventAttributes.Builder} * avoiding the need to create one manually via {@link ActivityTaskStartedEventAttributes#builder()}. * * When the {@link Consumer} completes, {@link ActivityTaskStartedEventAttributes.Builder#build()} is called * immediately and its result is passed to * {@link #activityTaskStartedEventAttributes(ActivityTaskStartedEventAttributes)}. * * @param activityTaskStartedEventAttributes * a consumer that will call methods on {@link ActivityTaskStartedEventAttributes.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #activityTaskStartedEventAttributes(ActivityTaskStartedEventAttributes) */ default Builder activityTaskStartedEventAttributes( Consumer<ActivityTaskStartedEventAttributes.Builder> activityTaskStartedEventAttributes) { return activityTaskStartedEventAttributes(ActivityTaskStartedEventAttributes.builder() .applyMutation(activityTaskStartedEventAttributes).build()); }
@Override public int hashCode() { int hashCode = 1; hashCode = 31 * hashCode + Objects.hashCode(identity()); hashCode = 31 * hashCode + Objects.hashCode(scheduledEventId()); return hashCode; }
/** * <p> * If the event is of type <code>ActivityTaskStarted</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 ActivityTaskStartedEventAttributes.Builder} * avoiding the need to create one manually via {@link ActivityTaskStartedEventAttributes#builder()}. * * When the {@link Consumer} completes, {@link ActivityTaskStartedEventAttributes.Builder#build()} is called * immediately and its result is passed to * {@link #activityTaskStartedEventAttributes(ActivityTaskStartedEventAttributes)}. * * @param activityTaskStartedEventAttributes * a consumer that will call methods on {@link ActivityTaskStartedEventAttributes.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #activityTaskStartedEventAttributes(ActivityTaskStartedEventAttributes) */ default Builder activityTaskStartedEventAttributes( Consumer<ActivityTaskStartedEventAttributes.Builder> activityTaskStartedEventAttributes) { return activityTaskStartedEventAttributes(ActivityTaskStartedEventAttributes.builder() .applyMutation(activityTaskStartedEventAttributes).build()); }
@Override public ActivityTaskStartedEventAttributes build() { return new ActivityTaskStartedEventAttributes(this); } }
public final ActivityTaskStartedEventAttributes.Builder getActivityTaskStartedEventAttributes() { return activityTaskStartedEventAttributes != null ? activityTaskStartedEventAttributes.toBuilder() : null; }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof ActivityTaskStartedEventAttributes)) { return false; } ActivityTaskStartedEventAttributes other = (ActivityTaskStartedEventAttributes) obj; return Objects.equals(identity(), other.identity()) && Objects.equals(scheduledEventId(), other.scheduledEventId()); }
public ActivityTaskStartedEventAttributes unmarshall(JsonUnmarshallerContext context) throws Exception { ActivityTaskStartedEventAttributes.Builder activityTaskStartedEventAttributesBuilder = ActivityTaskStartedEventAttributes .builder();
@Override public ActivityTaskStartedEventAttributes build() { return new ActivityTaskStartedEventAttributes(this); }
public final ActivityTaskStartedEventAttributes.Builder getActivityTaskStartedEventAttributes() { return activityTaskStartedEventAttributes != null ? activityTaskStartedEventAttributes.toBuilder() : null; }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof ActivityTaskStartedEventAttributes)) { return false; } ActivityTaskStartedEventAttributes other = (ActivityTaskStartedEventAttributes) obj; return Objects.equals(identity(), other.identity()) && Objects.equals(scheduledEventId(), other.scheduledEventId()); }
@Override public int hashCode() { int hashCode = 1; hashCode = 31 * hashCode + Objects.hashCode(identity()); hashCode = 31 * hashCode + Objects.hashCode(scheduledEventId()); return hashCode; }
@Override public int hashCode() { int hashCode = 1; hashCode = 31 * hashCode + Objects.hashCode(identity()); hashCode = 31 * hashCode + Objects.hashCode(scheduledEventId()); return hashCode; }
@Override public String toString() { return ToString.builder("ActivityTaskStartedEventAttributes").add("Identity", identity()) .add("ScheduledEventId", scheduledEventId()).build(); }
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) { switch (fieldName) { case "identity": return Optional.ofNullable(clazz.cast(identity())); case "scheduledEventId": return Optional.ofNullable(clazz.cast(scheduledEventId())); default: return Optional.empty(); } }
/** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. */ @Override public String toString() { return ToString.builder("ActivityTaskStartedEventAttributes").add("Identity", identity()) .add("ScheduledEventId", scheduledEventId()).build(); }
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) { switch (fieldName) { case "identity": return Optional.ofNullable(clazz.cast(identity())); case "scheduledEventId": return Optional.ofNullable(clazz.cast(scheduledEventId())); default: return Optional.empty(); } }