/** * 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("ActivityTaskScheduledEventAttributes").add("ActivityType", activityType()) .add("ActivityId", activityId()).add("Input", input()).add("Control", control()) .add("ScheduleToStartTimeout", scheduleToStartTimeout()).add("ScheduleToCloseTimeout", scheduleToCloseTimeout()) .add("StartToCloseTimeout", startToCloseTimeout()).add("TaskList", taskList()) .add("TaskPriority", taskPriority()).add("DecisionTaskCompletedEventId", decisionTaskCompletedEventId()) .add("HeartbeatTimeout", heartbeatTimeout()).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("ActivityTaskScheduledEventAttributes").add("ActivityType", activityType()) .add("ActivityId", activityId()).add("Input", input()).add("Control", control()) .add("ScheduleToStartTimeout", scheduleToStartTimeout()).add("ScheduleToCloseTimeout", scheduleToCloseTimeout()) .add("StartToCloseTimeout", startToCloseTimeout()).add("TaskList", taskList()) .add("TaskPriority", taskPriority()).add("DecisionTaskCompletedEventId", decisionTaskCompletedEventId()) .add("HeartbeatTimeout", heartbeatTimeout()).build(); }
@Override public String toString() { return ToString.builder("ActivityTaskScheduledEventAttributes").add("ActivityType", activityType()) .add("ActivityId", activityId()).add("Input", input()).add("Control", control()) .add("ScheduleToStartTimeout", scheduleToStartTimeout()).add("ScheduleToCloseTimeout", scheduleToCloseTimeout()) .add("StartToCloseTimeout", startToCloseTimeout()).add("TaskList", taskList()) .add("TaskPriority", taskPriority()).add("DecisionTaskCompletedEventId", decisionTaskCompletedEventId()) .add("HeartbeatTimeout", heartbeatTimeout()).build(); }
@Override public int hashCode() { int hashCode = 1; hashCode = 31 * hashCode + Objects.hashCode(activityType()); hashCode = 31 * hashCode + Objects.hashCode(activityId()); hashCode = 31 * hashCode + Objects.hashCode(input()); hashCode = 31 * hashCode + Objects.hashCode(control()); hashCode = 31 * hashCode + Objects.hashCode(scheduleToStartTimeout()); hashCode = 31 * hashCode + Objects.hashCode(scheduleToCloseTimeout()); hashCode = 31 * hashCode + Objects.hashCode(startToCloseTimeout()); hashCode = 31 * hashCode + Objects.hashCode(taskList()); hashCode = 31 * hashCode + Objects.hashCode(taskPriority()); hashCode = 31 * hashCode + Objects.hashCode(decisionTaskCompletedEventId()); hashCode = 31 * hashCode + Objects.hashCode(heartbeatTimeout()); return hashCode; }
@Override public int hashCode() { int hashCode = 1; hashCode = 31 * hashCode + Objects.hashCode(activityType()); hashCode = 31 * hashCode + Objects.hashCode(activityId()); hashCode = 31 * hashCode + Objects.hashCode(input()); hashCode = 31 * hashCode + Objects.hashCode(control()); hashCode = 31 * hashCode + Objects.hashCode(scheduleToStartTimeout()); hashCode = 31 * hashCode + Objects.hashCode(scheduleToCloseTimeout()); hashCode = 31 * hashCode + Objects.hashCode(startToCloseTimeout()); hashCode = 31 * hashCode + Objects.hashCode(taskList()); hashCode = 31 * hashCode + Objects.hashCode(taskPriority()); hashCode = 31 * hashCode + Objects.hashCode(decisionTaskCompletedEventId()); hashCode = 31 * hashCode + Objects.hashCode(heartbeatTimeout()); return hashCode; }
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) { switch (fieldName) { case "activityType": return Optional.ofNullable(clazz.cast(activityType())); case "activityId": return Optional.ofNullable(clazz.cast(activityId())); case "input": return Optional.ofNullable(clazz.cast(input())); case "control": return Optional.ofNullable(clazz.cast(control())); case "scheduleToStartTimeout": return Optional.ofNullable(clazz.cast(scheduleToStartTimeout())); case "scheduleToCloseTimeout": return Optional.ofNullable(clazz.cast(scheduleToCloseTimeout())); case "startToCloseTimeout": return Optional.ofNullable(clazz.cast(startToCloseTimeout())); case "taskList": return Optional.ofNullable(clazz.cast(taskList())); case "taskPriority": return Optional.ofNullable(clazz.cast(taskPriority())); case "decisionTaskCompletedEventId": return Optional.ofNullable(clazz.cast(decisionTaskCompletedEventId())); case "heartbeatTimeout": return Optional.ofNullable(clazz.cast(heartbeatTimeout())); default: return Optional.empty(); } }
@Override public int hashCode() { int hashCode = 1; hashCode = 31 * hashCode + Objects.hashCode(activityType()); hashCode = 31 * hashCode + Objects.hashCode(activityId()); hashCode = 31 * hashCode + Objects.hashCode(input()); hashCode = 31 * hashCode + Objects.hashCode(control()); hashCode = 31 * hashCode + Objects.hashCode(scheduleToStartTimeout()); hashCode = 31 * hashCode + Objects.hashCode(scheduleToCloseTimeout()); hashCode = 31 * hashCode + Objects.hashCode(startToCloseTimeout()); hashCode = 31 * hashCode + Objects.hashCode(taskList()); hashCode = 31 * hashCode + Objects.hashCode(taskPriority()); hashCode = 31 * hashCode + Objects.hashCode(decisionTaskCompletedEventId()); hashCode = 31 * hashCode + Objects.hashCode(heartbeatTimeout()); return hashCode; }
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) { switch (fieldName) { case "activityType": return Optional.ofNullable(clazz.cast(activityType())); case "activityId": return Optional.ofNullable(clazz.cast(activityId())); case "input": return Optional.ofNullable(clazz.cast(input())); case "control": return Optional.ofNullable(clazz.cast(control())); case "scheduleToStartTimeout": return Optional.ofNullable(clazz.cast(scheduleToStartTimeout())); case "scheduleToCloseTimeout": return Optional.ofNullable(clazz.cast(scheduleToCloseTimeout())); case "startToCloseTimeout": return Optional.ofNullable(clazz.cast(startToCloseTimeout())); case "taskList": return Optional.ofNullable(clazz.cast(taskList())); case "taskPriority": return Optional.ofNullable(clazz.cast(taskPriority())); case "decisionTaskCompletedEventId": return Optional.ofNullable(clazz.cast(decisionTaskCompletedEventId())); case "heartbeatTimeout": return Optional.ofNullable(clazz.cast(heartbeatTimeout())); default: return Optional.empty(); } }
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) { switch (fieldName) { case "activityType": return Optional.ofNullable(clazz.cast(activityType())); case "activityId": return Optional.ofNullable(clazz.cast(activityId())); case "input": return Optional.ofNullable(clazz.cast(input())); case "control": return Optional.ofNullable(clazz.cast(control())); case "scheduleToStartTimeout": return Optional.ofNullable(clazz.cast(scheduleToStartTimeout())); case "scheduleToCloseTimeout": return Optional.ofNullable(clazz.cast(scheduleToCloseTimeout())); case "startToCloseTimeout": return Optional.ofNullable(clazz.cast(startToCloseTimeout())); case "taskList": return Optional.ofNullable(clazz.cast(taskList())); case "taskPriority": return Optional.ofNullable(clazz.cast(taskPriority())); case "decisionTaskCompletedEventId": return Optional.ofNullable(clazz.cast(decisionTaskCompletedEventId())); case "heartbeatTimeout": return Optional.ofNullable(clazz.cast(heartbeatTimeout())); default: return Optional.empty(); } }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof ActivityTaskScheduledEventAttributes)) { return false; } ActivityTaskScheduledEventAttributes other = (ActivityTaskScheduledEventAttributes) obj; return Objects.equals(activityType(), other.activityType()) && Objects.equals(activityId(), other.activityId()) && Objects.equals(input(), other.input()) && Objects.equals(control(), other.control()) && Objects.equals(scheduleToStartTimeout(), other.scheduleToStartTimeout()) && Objects.equals(scheduleToCloseTimeout(), other.scheduleToCloseTimeout()) && Objects.equals(startToCloseTimeout(), other.startToCloseTimeout()) && Objects.equals(taskList(), other.taskList()) && Objects.equals(taskPriority(), other.taskPriority()) && Objects.equals(decisionTaskCompletedEventId(), other.decisionTaskCompletedEventId()) && Objects.equals(heartbeatTimeout(), other.heartbeatTimeout()); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof ActivityTaskScheduledEventAttributes)) { return false; } ActivityTaskScheduledEventAttributes other = (ActivityTaskScheduledEventAttributes) obj; return Objects.equals(activityType(), other.activityType()) && Objects.equals(activityId(), other.activityId()) && Objects.equals(input(), other.input()) && Objects.equals(control(), other.control()) && Objects.equals(scheduleToStartTimeout(), other.scheduleToStartTimeout()) && Objects.equals(scheduleToCloseTimeout(), other.scheduleToCloseTimeout()) && Objects.equals(startToCloseTimeout(), other.startToCloseTimeout()) && Objects.equals(taskList(), other.taskList()) && Objects.equals(taskPriority(), other.taskPriority()) && Objects.equals(decisionTaskCompletedEventId(), other.decisionTaskCompletedEventId()) && Objects.equals(heartbeatTimeout(), other.heartbeatTimeout()); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof ActivityTaskScheduledEventAttributes)) { return false; } ActivityTaskScheduledEventAttributes other = (ActivityTaskScheduledEventAttributes) obj; return Objects.equals(activityType(), other.activityType()) && Objects.equals(activityId(), other.activityId()) && Objects.equals(input(), other.input()) && Objects.equals(control(), other.control()) && Objects.equals(scheduleToStartTimeout(), other.scheduleToStartTimeout()) && Objects.equals(scheduleToCloseTimeout(), other.scheduleToCloseTimeout()) && Objects.equals(startToCloseTimeout(), other.startToCloseTimeout()) && Objects.equals(taskList(), other.taskList()) && Objects.equals(taskPriority(), other.taskPriority()) && Objects.equals(decisionTaskCompletedEventId(), other.decisionTaskCompletedEventId()) && Objects.equals(heartbeatTimeout(), other.heartbeatTimeout()); }
/** * Marshall the given parameter object */ public void marshall(ActivityTaskScheduledEventAttributes activityTaskScheduledEventAttributes, ProtocolMarshaller protocolMarshaller) { Validate.paramNotNull(activityTaskScheduledEventAttributes, "activityTaskScheduledEventAttributes"); Validate.paramNotNull(protocolMarshaller, "protocolMarshaller"); try { protocolMarshaller.marshall(activityTaskScheduledEventAttributes.activityType(), ACTIVITYTYPE_BINDING); protocolMarshaller.marshall(activityTaskScheduledEventAttributes.activityId(), ACTIVITYID_BINDING); protocolMarshaller.marshall(activityTaskScheduledEventAttributes.input(), INPUT_BINDING); protocolMarshaller.marshall(activityTaskScheduledEventAttributes.control(), CONTROL_BINDING); protocolMarshaller.marshall(activityTaskScheduledEventAttributes.scheduleToStartTimeout(), SCHEDULETOSTARTTIMEOUT_BINDING); protocolMarshaller.marshall(activityTaskScheduledEventAttributes.scheduleToCloseTimeout(), SCHEDULETOCLOSETIMEOUT_BINDING); protocolMarshaller.marshall(activityTaskScheduledEventAttributes.startToCloseTimeout(), STARTTOCLOSETIMEOUT_BINDING); protocolMarshaller.marshall(activityTaskScheduledEventAttributes.taskList(), TASKLIST_BINDING); protocolMarshaller.marshall(activityTaskScheduledEventAttributes.taskPriority(), TASKPRIORITY_BINDING); protocolMarshaller.marshall(activityTaskScheduledEventAttributes.decisionTaskCompletedEventId(), DECISIONTASKCOMPLETEDEVENTID_BINDING); protocolMarshaller.marshall(activityTaskScheduledEventAttributes.heartbeatTimeout(), HEARTBEATTIMEOUT_BINDING); } catch (Exception e) { throw SdkClientException.builder().message("Unable to marshall request to JSON: " + e.getMessage()).cause(e).build(); } } }