/** * 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("ActivityTaskCancelRequestedEventAttributes") .add("DecisionTaskCompletedEventId", decisionTaskCompletedEventId()).add("ActivityId", activityId()).build(); }
@Override public int hashCode() { int hashCode = 1; hashCode = 31 * hashCode + Objects.hashCode(decisionTaskCompletedEventId()); hashCode = 31 * hashCode + Objects.hashCode(activityId()); return hashCode; }
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) { switch (fieldName) { case "decisionTaskCompletedEventId": return Optional.ofNullable(clazz.cast(decisionTaskCompletedEventId())); case "activityId": return Optional.ofNullable(clazz.cast(activityId())); default: return Optional.empty(); } }
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) { switch (fieldName) { case "decisionTaskCompletedEventId": return Optional.ofNullable(clazz.cast(decisionTaskCompletedEventId())); case "activityId": return Optional.ofNullable(clazz.cast(activityId())); 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("ActivityTaskCancelRequestedEventAttributes") .add("DecisionTaskCompletedEventId", decisionTaskCompletedEventId()).add("ActivityId", activityId()).build(); }
@Override public String toString() { return ToString.builder("ActivityTaskCancelRequestedEventAttributes") .add("DecisionTaskCompletedEventId", decisionTaskCompletedEventId()).add("ActivityId", activityId()).build(); }
@Override public int hashCode() { int hashCode = 1; hashCode = 31 * hashCode + Objects.hashCode(decisionTaskCompletedEventId()); hashCode = 31 * hashCode + Objects.hashCode(activityId()); return hashCode; }
@Override public int hashCode() { int hashCode = 1; hashCode = 31 * hashCode + Objects.hashCode(decisionTaskCompletedEventId()); hashCode = 31 * hashCode + Objects.hashCode(activityId()); return hashCode; }
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) { switch (fieldName) { case "decisionTaskCompletedEventId": return Optional.ofNullable(clazz.cast(decisionTaskCompletedEventId())); case "activityId": return Optional.ofNullable(clazz.cast(activityId())); default: return Optional.empty(); } }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof ActivityTaskCancelRequestedEventAttributes)) { return false; } ActivityTaskCancelRequestedEventAttributes other = (ActivityTaskCancelRequestedEventAttributes) obj; return Objects.equals(decisionTaskCompletedEventId(), other.decisionTaskCompletedEventId()) && Objects.equals(activityId(), other.activityId()); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof ActivityTaskCancelRequestedEventAttributes)) { return false; } ActivityTaskCancelRequestedEventAttributes other = (ActivityTaskCancelRequestedEventAttributes) obj; return Objects.equals(decisionTaskCompletedEventId(), other.decisionTaskCompletedEventId()) && Objects.equals(activityId(), other.activityId()); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof ActivityTaskCancelRequestedEventAttributes)) { return false; } ActivityTaskCancelRequestedEventAttributes other = (ActivityTaskCancelRequestedEventAttributes) obj; return Objects.equals(decisionTaskCompletedEventId(), other.decisionTaskCompletedEventId()) && Objects.equals(activityId(), other.activityId()); }
/** * Marshall the given parameter object */ public void marshall(ActivityTaskCancelRequestedEventAttributes activityTaskCancelRequestedEventAttributes, ProtocolMarshaller protocolMarshaller) { Validate.paramNotNull(activityTaskCancelRequestedEventAttributes, "activityTaskCancelRequestedEventAttributes"); Validate.paramNotNull(protocolMarshaller, "protocolMarshaller"); try { protocolMarshaller.marshall(activityTaskCancelRequestedEventAttributes.decisionTaskCompletedEventId(), DECISIONTASKCOMPLETEDEVENTID_BINDING); protocolMarshaller.marshall(activityTaskCancelRequestedEventAttributes.activityId(), ACTIVITYID_BINDING); } catch (Exception e) { throw SdkClientException.builder().message("Unable to marshall request to JSON: " + e.getMessage()).cause(e).build(); } } }