@Override public DecisionTaskStartedEventAttributes build() { return new DecisionTaskStartedEventAttributes(this); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof DecisionTaskStartedEventAttributes)) { return false; } DecisionTaskStartedEventAttributes other = (DecisionTaskStartedEventAttributes) obj; return Objects.equals(identity(), other.identity()) && Objects.equals(scheduledEventId(), other.scheduledEventId()); }
public final DecisionTaskStartedEventAttributes.Builder getDecisionTaskStartedEventAttributes() { return decisionTaskStartedEventAttributes != null ? decisionTaskStartedEventAttributes.toBuilder() : null; }
/** * <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()); }
@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>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()); }
@Override public DecisionTaskStartedEventAttributes build() { return new DecisionTaskStartedEventAttributes(this); } }
public final DecisionTaskStartedEventAttributes.Builder getDecisionTaskStartedEventAttributes() { return decisionTaskStartedEventAttributes != null ? decisionTaskStartedEventAttributes.toBuilder() : null; }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof DecisionTaskStartedEventAttributes)) { return false; } DecisionTaskStartedEventAttributes other = (DecisionTaskStartedEventAttributes) obj; return Objects.equals(identity(), other.identity()) && Objects.equals(scheduledEventId(), other.scheduledEventId()); }
public DecisionTaskStartedEventAttributes unmarshall(JsonUnmarshallerContext context) throws Exception { DecisionTaskStartedEventAttributes.Builder decisionTaskStartedEventAttributesBuilder = DecisionTaskStartedEventAttributes .builder();
@Override public DecisionTaskStartedEventAttributes build() { return new DecisionTaskStartedEventAttributes(this); }
public final DecisionTaskStartedEventAttributes.Builder getDecisionTaskStartedEventAttributes() { return decisionTaskStartedEventAttributes != null ? decisionTaskStartedEventAttributes.toBuilder() : null; }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof DecisionTaskStartedEventAttributes)) { return false; } DecisionTaskStartedEventAttributes other = (DecisionTaskStartedEventAttributes) 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; }
/** * 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("DecisionTaskStartedEventAttributes").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(); } }
@Override public String toString() { return ToString.builder("DecisionTaskStartedEventAttributes").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(); } }