@Override public ActivityTaskCompletedEventAttributes build() { return new ActivityTaskCompletedEventAttributes(this); } }
@Override public int hashCode() { int hashCode = 1; hashCode = 31 * hashCode + Objects.hashCode(result()); hashCode = 31 * hashCode + Objects.hashCode(scheduledEventId()); hashCode = 31 * hashCode + Objects.hashCode(startedEventId()); return hashCode; }
public final ActivityTaskCompletedEventAttributes.Builder getActivityTaskCompletedEventAttributes() { return activityTaskCompletedEventAttributes != null ? activityTaskCompletedEventAttributes.toBuilder() : null; }
/** * <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()); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof ActivityTaskCompletedEventAttributes)) { return false; } ActivityTaskCompletedEventAttributes other = (ActivityTaskCompletedEventAttributes) obj; return Objects.equals(result(), other.result()) && Objects.equals(scheduledEventId(), other.scheduledEventId()) && Objects.equals(startedEventId(), other.startedEventId()); }
/** * <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()); }
@Override public ActivityTaskCompletedEventAttributes build() { return new ActivityTaskCompletedEventAttributes(this); }
public final ActivityTaskCompletedEventAttributes.Builder getActivityTaskCompletedEventAttributes() { return activityTaskCompletedEventAttributes != null ? activityTaskCompletedEventAttributes.toBuilder() : null; }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof ActivityTaskCompletedEventAttributes)) { return false; } ActivityTaskCompletedEventAttributes other = (ActivityTaskCompletedEventAttributes) obj; return Objects.equals(result(), other.result()) && Objects.equals(scheduledEventId(), other.scheduledEventId()) && Objects.equals(startedEventId(), other.startedEventId()); }
public ActivityTaskCompletedEventAttributes unmarshall(JsonUnmarshallerContext context) throws Exception { ActivityTaskCompletedEventAttributes.Builder activityTaskCompletedEventAttributesBuilder = ActivityTaskCompletedEventAttributes .builder();
@Override public ActivityTaskCompletedEventAttributes build() { return new ActivityTaskCompletedEventAttributes(this); }
public final ActivityTaskCompletedEventAttributes.Builder getActivityTaskCompletedEventAttributes() { return activityTaskCompletedEventAttributes != null ? activityTaskCompletedEventAttributes.toBuilder() : null; }
@Override public int hashCode() { int hashCode = 1; hashCode = 31 * hashCode + Objects.hashCode(result()); hashCode = 31 * hashCode + Objects.hashCode(scheduledEventId()); hashCode = 31 * hashCode + Objects.hashCode(startedEventId()); return hashCode; }
@Override public int hashCode() { int hashCode = 1; hashCode = 31 * hashCode + Objects.hashCode(result()); hashCode = 31 * hashCode + Objects.hashCode(scheduledEventId()); hashCode = 31 * hashCode + Objects.hashCode(startedEventId()); return hashCode; }
/** * 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("ActivityTaskCompletedEventAttributes").add("Result", result()) .add("ScheduledEventId", scheduledEventId()).add("StartedEventId", startedEventId()).build(); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof ActivityTaskCompletedEventAttributes)) { return false; } ActivityTaskCompletedEventAttributes other = (ActivityTaskCompletedEventAttributes) obj; return Objects.equals(result(), other.result()) && Objects.equals(scheduledEventId(), other.scheduledEventId()) && Objects.equals(startedEventId(), other.startedEventId()); }
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) { switch (fieldName) { case "result": return Optional.ofNullable(clazz.cast(result())); case "scheduledEventId": return Optional.ofNullable(clazz.cast(scheduledEventId())); case "startedEventId": return Optional.ofNullable(clazz.cast(startedEventId())); 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("ActivityTaskCompletedEventAttributes").add("Result", result()) .add("ScheduledEventId", scheduledEventId()).add("StartedEventId", startedEventId()).build(); }
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) { switch (fieldName) { case "result": return Optional.ofNullable(clazz.cast(result())); case "scheduledEventId": return Optional.ofNullable(clazz.cast(scheduledEventId())); case "startedEventId": return Optional.ofNullable(clazz.cast(startedEventId())); default: return Optional.empty(); } }