/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Provides the details of the ActivityTaskScheduled
* event.See Also:
AWS
* API Reference
The type of the activity task.
*/ inline const ActivityType& GetActivityType() const{ return m_activityType; } /** *The type of the activity task.
*/ inline bool ActivityTypeHasBeenSet() const { return m_activityTypeHasBeenSet; } /** *The type of the activity task.
*/ inline void SetActivityType(const ActivityType& value) { m_activityTypeHasBeenSet = true; m_activityType = value; } /** *The type of the activity task.
*/ inline void SetActivityType(ActivityType&& value) { m_activityTypeHasBeenSet = true; m_activityType = std::move(value); } /** *The type of the activity task.
*/ inline ActivityTaskScheduledEventAttributes& WithActivityType(const ActivityType& value) { SetActivityType(value); return *this;} /** *The type of the activity task.
*/ inline ActivityTaskScheduledEventAttributes& WithActivityType(ActivityType&& value) { SetActivityType(std::move(value)); return *this;} /** *The unique ID of the activity task.
*/ inline const Aws::String& GetActivityId() const{ return m_activityId; } /** *The unique ID of the activity task.
*/ inline bool ActivityIdHasBeenSet() const { return m_activityIdHasBeenSet; } /** *The unique ID of the activity task.
*/ inline void SetActivityId(const Aws::String& value) { m_activityIdHasBeenSet = true; m_activityId = value; } /** *The unique ID of the activity task.
*/ inline void SetActivityId(Aws::String&& value) { m_activityIdHasBeenSet = true; m_activityId = std::move(value); } /** *The unique ID of the activity task.
*/ inline void SetActivityId(const char* value) { m_activityIdHasBeenSet = true; m_activityId.assign(value); } /** *The unique ID of the activity task.
*/ inline ActivityTaskScheduledEventAttributes& WithActivityId(const Aws::String& value) { SetActivityId(value); return *this;} /** *The unique ID of the activity task.
*/ inline ActivityTaskScheduledEventAttributes& WithActivityId(Aws::String&& value) { SetActivityId(std::move(value)); return *this;} /** *The unique ID of the activity task.
*/ inline ActivityTaskScheduledEventAttributes& WithActivityId(const char* value) { SetActivityId(value); return *this;} /** *The input provided to the activity task.
*/ inline const Aws::String& GetInput() const{ return m_input; } /** *The input provided to the activity task.
*/ inline bool InputHasBeenSet() const { return m_inputHasBeenSet; } /** *The input provided to the activity task.
*/ inline void SetInput(const Aws::String& value) { m_inputHasBeenSet = true; m_input = value; } /** *The input provided to the activity task.
*/ inline void SetInput(Aws::String&& value) { m_inputHasBeenSet = true; m_input = std::move(value); } /** *The input provided to the activity task.
*/ inline void SetInput(const char* value) { m_inputHasBeenSet = true; m_input.assign(value); } /** *The input provided to the activity task.
*/ inline ActivityTaskScheduledEventAttributes& WithInput(const Aws::String& value) { SetInput(value); return *this;} /** *The input provided to the activity task.
*/ inline ActivityTaskScheduledEventAttributes& WithInput(Aws::String&& value) { SetInput(std::move(value)); return *this;} /** *The input provided to the activity task.
*/ inline ActivityTaskScheduledEventAttributes& WithInput(const char* value) { SetInput(value); return *this;} /** *Data attached to the event that can be used by the decider in subsequent * workflow tasks. This data isn't sent to the activity.
*/ inline const Aws::String& GetControl() const{ return m_control; } /** *Data attached to the event that can be used by the decider in subsequent * workflow tasks. This data isn't sent to the activity.
*/ inline bool ControlHasBeenSet() const { return m_controlHasBeenSet; } /** *Data attached to the event that can be used by the decider in subsequent * workflow tasks. This data isn't sent to the activity.
*/ inline void SetControl(const Aws::String& value) { m_controlHasBeenSet = true; m_control = value; } /** *Data attached to the event that can be used by the decider in subsequent * workflow tasks. This data isn't sent to the activity.
*/ inline void SetControl(Aws::String&& value) { m_controlHasBeenSet = true; m_control = std::move(value); } /** *Data attached to the event that can be used by the decider in subsequent * workflow tasks. This data isn't sent to the activity.
*/ inline void SetControl(const char* value) { m_controlHasBeenSet = true; m_control.assign(value); } /** *Data attached to the event that can be used by the decider in subsequent * workflow tasks. This data isn't sent to the activity.
*/ inline ActivityTaskScheduledEventAttributes& WithControl(const Aws::String& value) { SetControl(value); return *this;} /** *Data attached to the event that can be used by the decider in subsequent * workflow tasks. This data isn't sent to the activity.
*/ inline ActivityTaskScheduledEventAttributes& WithControl(Aws::String&& value) { SetControl(std::move(value)); return *this;} /** *Data attached to the event that can be used by the decider in subsequent * workflow tasks. This data isn't sent to the activity.
*/ inline ActivityTaskScheduledEventAttributes& WithControl(const char* value) { SetControl(value); return *this;} /** *The maximum amount of time the activity task can wait to be assigned to a * worker.
*/ inline const Aws::String& GetScheduleToStartTimeout() const{ return m_scheduleToStartTimeout; } /** *The maximum amount of time the activity task can wait to be assigned to a * worker.
*/ inline bool ScheduleToStartTimeoutHasBeenSet() const { return m_scheduleToStartTimeoutHasBeenSet; } /** *The maximum amount of time the activity task can wait to be assigned to a * worker.
*/ inline void SetScheduleToStartTimeout(const Aws::String& value) { m_scheduleToStartTimeoutHasBeenSet = true; m_scheduleToStartTimeout = value; } /** *The maximum amount of time the activity task can wait to be assigned to a * worker.
*/ inline void SetScheduleToStartTimeout(Aws::String&& value) { m_scheduleToStartTimeoutHasBeenSet = true; m_scheduleToStartTimeout = std::move(value); } /** *The maximum amount of time the activity task can wait to be assigned to a * worker.
*/ inline void SetScheduleToStartTimeout(const char* value) { m_scheduleToStartTimeoutHasBeenSet = true; m_scheduleToStartTimeout.assign(value); } /** *The maximum amount of time the activity task can wait to be assigned to a * worker.
*/ inline ActivityTaskScheduledEventAttributes& WithScheduleToStartTimeout(const Aws::String& value) { SetScheduleToStartTimeout(value); return *this;} /** *The maximum amount of time the activity task can wait to be assigned to a * worker.
*/ inline ActivityTaskScheduledEventAttributes& WithScheduleToStartTimeout(Aws::String&& value) { SetScheduleToStartTimeout(std::move(value)); return *this;} /** *The maximum amount of time the activity task can wait to be assigned to a * worker.
*/ inline ActivityTaskScheduledEventAttributes& WithScheduleToStartTimeout(const char* value) { SetScheduleToStartTimeout(value); return *this;} /** *The maximum amount of time for this activity task.
*/ inline const Aws::String& GetScheduleToCloseTimeout() const{ return m_scheduleToCloseTimeout; } /** *The maximum amount of time for this activity task.
*/ inline bool ScheduleToCloseTimeoutHasBeenSet() const { return m_scheduleToCloseTimeoutHasBeenSet; } /** *The maximum amount of time for this activity task.
*/ inline void SetScheduleToCloseTimeout(const Aws::String& value) { m_scheduleToCloseTimeoutHasBeenSet = true; m_scheduleToCloseTimeout = value; } /** *The maximum amount of time for this activity task.
*/ inline void SetScheduleToCloseTimeout(Aws::String&& value) { m_scheduleToCloseTimeoutHasBeenSet = true; m_scheduleToCloseTimeout = std::move(value); } /** *The maximum amount of time for this activity task.
*/ inline void SetScheduleToCloseTimeout(const char* value) { m_scheduleToCloseTimeoutHasBeenSet = true; m_scheduleToCloseTimeout.assign(value); } /** *The maximum amount of time for this activity task.
*/ inline ActivityTaskScheduledEventAttributes& WithScheduleToCloseTimeout(const Aws::String& value) { SetScheduleToCloseTimeout(value); return *this;} /** *The maximum amount of time for this activity task.
*/ inline ActivityTaskScheduledEventAttributes& WithScheduleToCloseTimeout(Aws::String&& value) { SetScheduleToCloseTimeout(std::move(value)); return *this;} /** *The maximum amount of time for this activity task.
*/ inline ActivityTaskScheduledEventAttributes& WithScheduleToCloseTimeout(const char* value) { SetScheduleToCloseTimeout(value); return *this;} /** *The maximum amount of time a worker may take to process the activity * task.
*/ inline const Aws::String& GetStartToCloseTimeout() const{ return m_startToCloseTimeout; } /** *The maximum amount of time a worker may take to process the activity * task.
*/ inline bool StartToCloseTimeoutHasBeenSet() const { return m_startToCloseTimeoutHasBeenSet; } /** *The maximum amount of time a worker may take to process the activity * task.
*/ inline void SetStartToCloseTimeout(const Aws::String& value) { m_startToCloseTimeoutHasBeenSet = true; m_startToCloseTimeout = value; } /** *The maximum amount of time a worker may take to process the activity * task.
*/ inline void SetStartToCloseTimeout(Aws::String&& value) { m_startToCloseTimeoutHasBeenSet = true; m_startToCloseTimeout = std::move(value); } /** *The maximum amount of time a worker may take to process the activity * task.
*/ inline void SetStartToCloseTimeout(const char* value) { m_startToCloseTimeoutHasBeenSet = true; m_startToCloseTimeout.assign(value); } /** *The maximum amount of time a worker may take to process the activity * task.
*/ inline ActivityTaskScheduledEventAttributes& WithStartToCloseTimeout(const Aws::String& value) { SetStartToCloseTimeout(value); return *this;} /** *The maximum amount of time a worker may take to process the activity * task.
*/ inline ActivityTaskScheduledEventAttributes& WithStartToCloseTimeout(Aws::String&& value) { SetStartToCloseTimeout(std::move(value)); return *this;} /** *The maximum amount of time a worker may take to process the activity * task.
*/ inline ActivityTaskScheduledEventAttributes& WithStartToCloseTimeout(const char* value) { SetStartToCloseTimeout(value); return *this;} /** *The task list in which the activity task has been scheduled.
*/ inline const TaskList& GetTaskList() const{ return m_taskList; } /** *The task list in which the activity task has been scheduled.
*/ inline bool TaskListHasBeenSet() const { return m_taskListHasBeenSet; } /** *The task list in which the activity task has been scheduled.
*/ inline void SetTaskList(const TaskList& value) { m_taskListHasBeenSet = true; m_taskList = value; } /** *The task list in which the activity task has been scheduled.
*/ inline void SetTaskList(TaskList&& value) { m_taskListHasBeenSet = true; m_taskList = std::move(value); } /** *The task list in which the activity task has been scheduled.
*/ inline ActivityTaskScheduledEventAttributes& WithTaskList(const TaskList& value) { SetTaskList(value); return *this;} /** *The task list in which the activity task has been scheduled.
*/ inline ActivityTaskScheduledEventAttributes& WithTaskList(TaskList&& value) { SetTaskList(std::move(value)); return *this;} /** *The priority to assign to the scheduled activity task. If set, this * overrides any default priority value that was assigned when the activity type * was registered.
Valid values are integers that range from Java's
* Integer.MIN_VALUE
(-2147483648) to Integer.MAX_VALUE
* (2147483647). Higher numbers indicate higher priority.
For more * information about setting task priority, see Setting * Task Priority in the Amazon SWF Developer Guide.
*/ inline const Aws::String& GetTaskPriority() const{ return m_taskPriority; } /** *The priority to assign to the scheduled activity task. If set, this * overrides any default priority value that was assigned when the activity type * was registered.
Valid values are integers that range from Java's
* Integer.MIN_VALUE
(-2147483648) to Integer.MAX_VALUE
* (2147483647). Higher numbers indicate higher priority.
For more * information about setting task priority, see Setting * Task Priority in the Amazon SWF Developer Guide.
*/ inline bool TaskPriorityHasBeenSet() const { return m_taskPriorityHasBeenSet; } /** *The priority to assign to the scheduled activity task. If set, this * overrides any default priority value that was assigned when the activity type * was registered.
Valid values are integers that range from Java's
* Integer.MIN_VALUE
(-2147483648) to Integer.MAX_VALUE
* (2147483647). Higher numbers indicate higher priority.
For more * information about setting task priority, see Setting * Task Priority in the Amazon SWF Developer Guide.
*/ inline void SetTaskPriority(const Aws::String& value) { m_taskPriorityHasBeenSet = true; m_taskPriority = value; } /** *The priority to assign to the scheduled activity task. If set, this * overrides any default priority value that was assigned when the activity type * was registered.
Valid values are integers that range from Java's
* Integer.MIN_VALUE
(-2147483648) to Integer.MAX_VALUE
* (2147483647). Higher numbers indicate higher priority.
For more * information about setting task priority, see Setting * Task Priority in the Amazon SWF Developer Guide.
*/ inline void SetTaskPriority(Aws::String&& value) { m_taskPriorityHasBeenSet = true; m_taskPriority = std::move(value); } /** *The priority to assign to the scheduled activity task. If set, this * overrides any default priority value that was assigned when the activity type * was registered.
Valid values are integers that range from Java's
* Integer.MIN_VALUE
(-2147483648) to Integer.MAX_VALUE
* (2147483647). Higher numbers indicate higher priority.
For more * information about setting task priority, see Setting * Task Priority in the Amazon SWF Developer Guide.
*/ inline void SetTaskPriority(const char* value) { m_taskPriorityHasBeenSet = true; m_taskPriority.assign(value); } /** *The priority to assign to the scheduled activity task. If set, this * overrides any default priority value that was assigned when the activity type * was registered.
Valid values are integers that range from Java's
* Integer.MIN_VALUE
(-2147483648) to Integer.MAX_VALUE
* (2147483647). Higher numbers indicate higher priority.
For more * information about setting task priority, see Setting * Task Priority in the Amazon SWF Developer Guide.
*/ inline ActivityTaskScheduledEventAttributes& WithTaskPriority(const Aws::String& value) { SetTaskPriority(value); return *this;} /** *The priority to assign to the scheduled activity task. If set, this * overrides any default priority value that was assigned when the activity type * was registered.
Valid values are integers that range from Java's
* Integer.MIN_VALUE
(-2147483648) to Integer.MAX_VALUE
* (2147483647). Higher numbers indicate higher priority.
For more * information about setting task priority, see Setting * Task Priority in the Amazon SWF Developer Guide.
*/ inline ActivityTaskScheduledEventAttributes& WithTaskPriority(Aws::String&& value) { SetTaskPriority(std::move(value)); return *this;} /** *The priority to assign to the scheduled activity task. If set, this * overrides any default priority value that was assigned when the activity type * was registered.
Valid values are integers that range from Java's
* Integer.MIN_VALUE
(-2147483648) to Integer.MAX_VALUE
* (2147483647). Higher numbers indicate higher priority.
For more * information about setting task priority, see Setting * Task Priority in the Amazon SWF Developer Guide.
*/ inline ActivityTaskScheduledEventAttributes& WithTaskPriority(const char* value) { SetTaskPriority(value); return *this;} /** *The ID of the DecisionTaskCompleted
event corresponding to the
* decision that resulted in the scheduling of this activity task. This information
* can be useful for diagnosing problems by tracing back the chain of events
* leading up to this event.
The ID of the DecisionTaskCompleted
event corresponding to the
* decision that resulted in the scheduling of this activity task. This information
* can be useful for diagnosing problems by tracing back the chain of events
* leading up to this event.
The ID of the DecisionTaskCompleted
event corresponding to the
* decision that resulted in the scheduling of this activity task. This information
* can be useful for diagnosing problems by tracing back the chain of events
* leading up to this event.
The ID of the DecisionTaskCompleted
event corresponding to the
* decision that resulted in the scheduling of this activity task. This information
* can be useful for diagnosing problems by tracing back the chain of events
* leading up to this event.
The maximum time before which the worker processing this task must report * progress by calling RecordActivityTaskHeartbeat. If the timeout is * exceeded, the activity task is automatically timed out. If the worker * subsequently attempts to record a heartbeat or return a result, it is * ignored.
*/ inline const Aws::String& GetHeartbeatTimeout() const{ return m_heartbeatTimeout; } /** *The maximum time before which the worker processing this task must report * progress by calling RecordActivityTaskHeartbeat. If the timeout is * exceeded, the activity task is automatically timed out. If the worker * subsequently attempts to record a heartbeat or return a result, it is * ignored.
*/ inline bool HeartbeatTimeoutHasBeenSet() const { return m_heartbeatTimeoutHasBeenSet; } /** *The maximum time before which the worker processing this task must report * progress by calling RecordActivityTaskHeartbeat. If the timeout is * exceeded, the activity task is automatically timed out. If the worker * subsequently attempts to record a heartbeat or return a result, it is * ignored.
*/ inline void SetHeartbeatTimeout(const Aws::String& value) { m_heartbeatTimeoutHasBeenSet = true; m_heartbeatTimeout = value; } /** *The maximum time before which the worker processing this task must report * progress by calling RecordActivityTaskHeartbeat. If the timeout is * exceeded, the activity task is automatically timed out. If the worker * subsequently attempts to record a heartbeat or return a result, it is * ignored.
*/ inline void SetHeartbeatTimeout(Aws::String&& value) { m_heartbeatTimeoutHasBeenSet = true; m_heartbeatTimeout = std::move(value); } /** *The maximum time before which the worker processing this task must report * progress by calling RecordActivityTaskHeartbeat. If the timeout is * exceeded, the activity task is automatically timed out. If the worker * subsequently attempts to record a heartbeat or return a result, it is * ignored.
*/ inline void SetHeartbeatTimeout(const char* value) { m_heartbeatTimeoutHasBeenSet = true; m_heartbeatTimeout.assign(value); } /** *The maximum time before which the worker processing this task must report * progress by calling RecordActivityTaskHeartbeat. If the timeout is * exceeded, the activity task is automatically timed out. If the worker * subsequently attempts to record a heartbeat or return a result, it is * ignored.
*/ inline ActivityTaskScheduledEventAttributes& WithHeartbeatTimeout(const Aws::String& value) { SetHeartbeatTimeout(value); return *this;} /** *The maximum time before which the worker processing this task must report * progress by calling RecordActivityTaskHeartbeat. If the timeout is * exceeded, the activity task is automatically timed out. If the worker * subsequently attempts to record a heartbeat or return a result, it is * ignored.
*/ inline ActivityTaskScheduledEventAttributes& WithHeartbeatTimeout(Aws::String&& value) { SetHeartbeatTimeout(std::move(value)); return *this;} /** *The maximum time before which the worker processing this task must report * progress by calling RecordActivityTaskHeartbeat. If the timeout is * exceeded, the activity task is automatically timed out. If the worker * subsequently attempts to record a heartbeat or return a result, it is * ignored.
*/ inline ActivityTaskScheduledEventAttributes& WithHeartbeatTimeout(const char* value) { SetHeartbeatTimeout(value); return *this;} private: ActivityType m_activityType; bool m_activityTypeHasBeenSet = false; Aws::String m_activityId; bool m_activityIdHasBeenSet = false; Aws::String m_input; bool m_inputHasBeenSet = false; Aws::String m_control; bool m_controlHasBeenSet = false; Aws::String m_scheduleToStartTimeout; bool m_scheduleToStartTimeoutHasBeenSet = false; Aws::String m_scheduleToCloseTimeout; bool m_scheduleToCloseTimeoutHasBeenSet = false; Aws::String m_startToCloseTimeout; bool m_startToCloseTimeoutHasBeenSet = false; TaskList m_taskList; bool m_taskListHasBeenSet = false; Aws::String m_taskPriority; bool m_taskPriorityHasBeenSet = false; long long m_decisionTaskCompletedEventId; bool m_decisionTaskCompletedEventIdHasBeenSet = false; Aws::String m_heartbeatTimeout; bool m_heartbeatTimeoutHasBeenSet = false; }; } // namespace Model } // namespace SWF } // namespace Aws