/** * 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(); }
@Override public int hashCode() { int hashCode = 1; hashCode = 31 * hashCode + Objects.hashCode(identity()); hashCode = 31 * hashCode + Objects.hashCode(scheduledEventId()); return hashCode; }
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(); } }
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(); } }
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 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("DecisionTaskStartedEventAttributes").add("Identity", identity()) .add("ScheduledEventId", scheduledEventId()).build(); }
@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()); }
/** * 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(); }
@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 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()); }
/** * Marshall the given parameter object */ public void marshall(DecisionTaskStartedEventAttributes decisionTaskStartedEventAttributes, ProtocolMarshaller protocolMarshaller) { Validate.paramNotNull(decisionTaskStartedEventAttributes, "decisionTaskStartedEventAttributes"); Validate.paramNotNull(protocolMarshaller, "protocolMarshaller"); try { protocolMarshaller.marshall(decisionTaskStartedEventAttributes.identity(), IDENTITY_BINDING); protocolMarshaller.marshall(decisionTaskStartedEventAttributes.scheduledEventId(), SCHEDULEDEVENTID_BINDING); } catch (Exception e) { throw SdkClientException.builder().message("Unable to marshall request to JSON: " + e.getMessage()).cause(e).build(); } } }