@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(); } }
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(); } }
/** * 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(); } }
@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; }
@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; }
@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; }
@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()); }
@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()); }
/** * Marshall the given parameter object */ public void marshall(ActivityTaskFailedEventAttributes activityTaskFailedEventAttributes, ProtocolMarshaller protocolMarshaller) { Validate.paramNotNull(activityTaskFailedEventAttributes, "activityTaskFailedEventAttributes"); Validate.paramNotNull(protocolMarshaller, "protocolMarshaller"); try { protocolMarshaller.marshall(activityTaskFailedEventAttributes.reason(), REASON_BINDING); protocolMarshaller.marshall(activityTaskFailedEventAttributes.details(), DETAILS_BINDING); protocolMarshaller.marshall(activityTaskFailedEventAttributes.scheduledEventId(), SCHEDULEDEVENTID_BINDING); protocolMarshaller.marshall(activityTaskFailedEventAttributes.startedEventId(), STARTEDEVENTID_BINDING); } catch (Exception e) { throw SdkClientException.builder().message("Unable to marshall request to JSON: " + e.getMessage()).cause(e).build(); } } }