@Override public ActivityTaskFailedEventAttributes build() { return new ActivityTaskFailedEventAttributes(this); }
@Override public int hashCode() { int hashCode = 1; hashCode = 31 * hashCode + Objects.hashCode(reason()); hashCode = 31 * hashCode + Objects.hashCode(details()); hashCode = 31 * hashCode + Objects.hashCode(scheduledEventId()); hashCode = 31 * hashCode + Objects.hashCode(startedEventId()); return hashCode; }
public final ActivityTaskFailedEventAttributes.Builder getActivityTaskFailedEventAttributes() { return activityTaskFailedEventAttributes != null ? activityTaskFailedEventAttributes.toBuilder() : null; }
/** * <p> * If the event is of type <code>ActivityTaskFailed</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 ActivityTaskFailedEventAttributes.Builder} * avoiding the need to create one manually via {@link ActivityTaskFailedEventAttributes#builder()}. * * When the {@link Consumer} completes, {@link ActivityTaskFailedEventAttributes.Builder#build()} is called * immediately and its result is passed to * {@link #activityTaskFailedEventAttributes(ActivityTaskFailedEventAttributes)}. * * @param activityTaskFailedEventAttributes * a consumer that will call methods on {@link ActivityTaskFailedEventAttributes.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #activityTaskFailedEventAttributes(ActivityTaskFailedEventAttributes) */ default Builder activityTaskFailedEventAttributes( Consumer<ActivityTaskFailedEventAttributes.Builder> activityTaskFailedEventAttributes) { return activityTaskFailedEventAttributes(ActivityTaskFailedEventAttributes.builder() .applyMutation(activityTaskFailedEventAttributes).build()); }
/** * <p> * If the event is of type <code>ActivityTaskFailed</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 ActivityTaskFailedEventAttributes.Builder} * avoiding the need to create one manually via {@link ActivityTaskFailedEventAttributes#builder()}. * * When the {@link Consumer} completes, {@link ActivityTaskFailedEventAttributes.Builder#build()} is called * immediately and its result is passed to * {@link #activityTaskFailedEventAttributes(ActivityTaskFailedEventAttributes)}. * * @param activityTaskFailedEventAttributes * a consumer that will call methods on {@link ActivityTaskFailedEventAttributes.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #activityTaskFailedEventAttributes(ActivityTaskFailedEventAttributes) */ default Builder activityTaskFailedEventAttributes( Consumer<ActivityTaskFailedEventAttributes.Builder> activityTaskFailedEventAttributes) { return activityTaskFailedEventAttributes(ActivityTaskFailedEventAttributes.builder() .applyMutation(activityTaskFailedEventAttributes).build()); }
@Override public int hashCode() { int hashCode = 1; hashCode = 31 * hashCode + Objects.hashCode(reason()); hashCode = 31 * hashCode + Objects.hashCode(details()); hashCode = 31 * hashCode + Objects.hashCode(scheduledEventId()); hashCode = 31 * hashCode + Objects.hashCode(startedEventId()); return hashCode; }
/** * <p> * If the event is of type <code>ActivityTaskFailed</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 ActivityTaskFailedEventAttributes.Builder} * avoiding the need to create one manually via {@link ActivityTaskFailedEventAttributes#builder()}. * * When the {@link Consumer} completes, {@link ActivityTaskFailedEventAttributes.Builder#build()} is called * immediately and its result is passed to * {@link #activityTaskFailedEventAttributes(ActivityTaskFailedEventAttributes)}. * * @param activityTaskFailedEventAttributes * a consumer that will call methods on {@link ActivityTaskFailedEventAttributes.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #activityTaskFailedEventAttributes(ActivityTaskFailedEventAttributes) */ default Builder activityTaskFailedEventAttributes( Consumer<ActivityTaskFailedEventAttributes.Builder> activityTaskFailedEventAttributes) { return activityTaskFailedEventAttributes(ActivityTaskFailedEventAttributes.builder() .applyMutation(activityTaskFailedEventAttributes).build()); }
@Override public ActivityTaskFailedEventAttributes build() { return new ActivityTaskFailedEventAttributes(this); } }
public final ActivityTaskFailedEventAttributes.Builder getActivityTaskFailedEventAttributes() { return activityTaskFailedEventAttributes != null ? activityTaskFailedEventAttributes.toBuilder() : null; }
@Override public int hashCode() { int hashCode = 1; hashCode = 31 * hashCode + Objects.hashCode(reason()); hashCode = 31 * hashCode + Objects.hashCode(details()); hashCode = 31 * hashCode + Objects.hashCode(scheduledEventId()); hashCode = 31 * hashCode + Objects.hashCode(startedEventId()); return hashCode; }
public ActivityTaskFailedEventAttributes unmarshall(JsonUnmarshallerContext context) throws Exception { ActivityTaskFailedEventAttributes.Builder activityTaskFailedEventAttributesBuilder = ActivityTaskFailedEventAttributes .builder();
@Override public ActivityTaskFailedEventAttributes build() { return new ActivityTaskFailedEventAttributes(this); }
public final ActivityTaskFailedEventAttributes.Builder getActivityTaskFailedEventAttributes() { return activityTaskFailedEventAttributes != null ? activityTaskFailedEventAttributes.toBuilder() : null; }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof ActivityTaskFailedEventAttributes)) { return false; } ActivityTaskFailedEventAttributes other = (ActivityTaskFailedEventAttributes) obj; return Objects.equals(reason(), other.reason()) && Objects.equals(details(), other.details()) && Objects.equals(scheduledEventId(), other.scheduledEventId()) && Objects.equals(startedEventId(), other.startedEventId()); }
@Override public String toString() { return ToString.builder("ActivityTaskFailedEventAttributes").add("Reason", reason()).add("Details", details()) .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 ActivityTaskFailedEventAttributes)) { return false; } ActivityTaskFailedEventAttributes other = (ActivityTaskFailedEventAttributes) obj; return Objects.equals(reason(), other.reason()) && Objects.equals(details(), other.details()) && Objects.equals(scheduledEventId(), other.scheduledEventId()) && Objects.equals(startedEventId(), other.startedEventId()); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof ActivityTaskFailedEventAttributes)) { return false; } ActivityTaskFailedEventAttributes other = (ActivityTaskFailedEventAttributes) obj; return Objects.equals(reason(), other.reason()) && Objects.equals(details(), other.details()) && Objects.equals(scheduledEventId(), other.scheduledEventId()) && Objects.equals(startedEventId(), other.startedEventId()); }
/** * 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("ActivityTaskFailedEventAttributes").add("Reason", reason()).add("Details", details()) .add("ScheduledEventId", scheduledEventId()).add("StartedEventId", startedEventId()).build(); }
/** * 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("ActivityTaskFailedEventAttributes").add("Reason", reason()).add("Details", details()) .add("ScheduledEventId", scheduledEventId()).add("StartedEventId", startedEventId()).build(); }
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) { switch (fieldName) { case "reason": return Optional.ofNullable(clazz.cast(reason())); case "details": return Optional.ofNullable(clazz.cast(details())); case "scheduledEventId": return Optional.ofNullable(clazz.cast(scheduledEventId())); case "startedEventId": return Optional.ofNullable(clazz.cast(startedEventId())); default: return Optional.empty(); } }