@Override public ActivityTaskScheduledEventAttributes build() { return new ActivityTaskScheduledEventAttributes(this); } }
/** * 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(); }
/** * <p> * If the event is of type <code>ActivityTaskScheduled</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 ActivityTaskScheduledEventAttributes.Builder} * avoiding the need to create one manually via {@link ActivityTaskScheduledEventAttributes#builder()}. * * When the {@link Consumer} completes, {@link ActivityTaskScheduledEventAttributes.Builder#build()} is called * immediately and its result is passed to * {@link #activityTaskScheduledEventAttributes(ActivityTaskScheduledEventAttributes)}. * * @param activityTaskScheduledEventAttributes * a consumer that will call methods on {@link ActivityTaskScheduledEventAttributes.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #activityTaskScheduledEventAttributes(ActivityTaskScheduledEventAttributes) */ default Builder activityTaskScheduledEventAttributes( Consumer<ActivityTaskScheduledEventAttributes.Builder> activityTaskScheduledEventAttributes) { return activityTaskScheduledEventAttributes(ActivityTaskScheduledEventAttributes.builder() .applyMutation(activityTaskScheduledEventAttributes).build()); }
/** * <p> * If the event is of type <code>ActivityTaskScheduled</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 ActivityTaskScheduledEventAttributes.Builder} * avoiding the need to create one manually via {@link ActivityTaskScheduledEventAttributes#builder()}. * * When the {@link Consumer} completes, {@link ActivityTaskScheduledEventAttributes.Builder#build()} is called * immediately and its result is passed to * {@link #activityTaskScheduledEventAttributes(ActivityTaskScheduledEventAttributes)}. * * @param activityTaskScheduledEventAttributes * a consumer that will call methods on {@link ActivityTaskScheduledEventAttributes.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #activityTaskScheduledEventAttributes(ActivityTaskScheduledEventAttributes) */ default Builder activityTaskScheduledEventAttributes( Consumer<ActivityTaskScheduledEventAttributes.Builder> activityTaskScheduledEventAttributes) { return activityTaskScheduledEventAttributes(ActivityTaskScheduledEventAttributes.builder() .applyMutation(activityTaskScheduledEventAttributes).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(); }
/** * <p> * If the event is of type <code>ActivityTaskScheduled</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 ActivityTaskScheduledEventAttributes.Builder} * avoiding the need to create one manually via {@link ActivityTaskScheduledEventAttributes#builder()}. * * When the {@link Consumer} completes, {@link ActivityTaskScheduledEventAttributes.Builder#build()} is called * immediately and its result is passed to * {@link #activityTaskScheduledEventAttributes(ActivityTaskScheduledEventAttributes)}. * * @param activityTaskScheduledEventAttributes * a consumer that will call methods on {@link ActivityTaskScheduledEventAttributes.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #activityTaskScheduledEventAttributes(ActivityTaskScheduledEventAttributes) */ default Builder activityTaskScheduledEventAttributes( Consumer<ActivityTaskScheduledEventAttributes.Builder> activityTaskScheduledEventAttributes) { return activityTaskScheduledEventAttributes(ActivityTaskScheduledEventAttributes.builder() .applyMutation(activityTaskScheduledEventAttributes).build()); }
@Override public ActivityTaskScheduledEventAttributes build() { return new ActivityTaskScheduledEventAttributes(this); }
/** * 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(); }
public ActivityTaskScheduledEventAttributes unmarshall(JsonUnmarshallerContext context) throws Exception { ActivityTaskScheduledEventAttributes.Builder activityTaskScheduledEventAttributesBuilder = ActivityTaskScheduledEventAttributes .builder();
@Override public ActivityTaskScheduledEventAttributes build() { return new ActivityTaskScheduledEventAttributes(this); }
@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; }
@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 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 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()); }
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(); } }
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(); } }
/** * 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(); } } }