/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace SWF { namespace Model { /** *

Provides details about the DecisionTaskScheduled * event.

See Also:

AWS * API Reference

*/ class DecisionTaskScheduledEventAttributes { public: AWS_SWF_API DecisionTaskScheduledEventAttributes(); AWS_SWF_API DecisionTaskScheduledEventAttributes(Aws::Utils::Json::JsonView jsonValue); AWS_SWF_API DecisionTaskScheduledEventAttributes& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SWF_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The name of the task list in which the decision task was scheduled.

*/ inline const TaskList& GetTaskList() const{ return m_taskList; } /** *

The name of the task list in which the decision task was scheduled.

*/ inline bool TaskListHasBeenSet() const { return m_taskListHasBeenSet; } /** *

The name of the task list in which the decision task was scheduled.

*/ inline void SetTaskList(const TaskList& value) { m_taskListHasBeenSet = true; m_taskList = value; } /** *

The name of the task list in which the decision task was scheduled.

*/ inline void SetTaskList(TaskList&& value) { m_taskListHasBeenSet = true; m_taskList = std::move(value); } /** *

The name of the task list in which the decision task was scheduled.

*/ inline DecisionTaskScheduledEventAttributes& WithTaskList(const TaskList& value) { SetTaskList(value); return *this;} /** *

The name of the task list in which the decision task was scheduled.

*/ inline DecisionTaskScheduledEventAttributes& WithTaskList(TaskList&& value) { SetTaskList(std::move(value)); return *this;} /** *

A task priority that, if set, specifies the priority for this decision task. * 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; } /** *

A task priority that, if set, specifies the priority for this decision task. * 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; } /** *

A task priority that, if set, specifies the priority for this decision task. * 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; } /** *

A task priority that, if set, specifies the priority for this decision task. * 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); } /** *

A task priority that, if set, specifies the priority for this decision task. * 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); } /** *

A task priority that, if set, specifies the priority for this decision task. * 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 DecisionTaskScheduledEventAttributes& WithTaskPriority(const Aws::String& value) { SetTaskPriority(value); return *this;} /** *

A task priority that, if set, specifies the priority for this decision task. * 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 DecisionTaskScheduledEventAttributes& WithTaskPriority(Aws::String&& value) { SetTaskPriority(std::move(value)); return *this;} /** *

A task priority that, if set, specifies the priority for this decision task. * 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 DecisionTaskScheduledEventAttributes& WithTaskPriority(const char* value) { SetTaskPriority(value); return *this;} /** *

The maximum duration for this decision task. The task is considered timed out * if it doesn't completed within this duration.

The duration is specified * in seconds, an integer greater than or equal to 0. You can use * NONE to specify unlimited duration.

*/ inline const Aws::String& GetStartToCloseTimeout() const{ return m_startToCloseTimeout; } /** *

The maximum duration for this decision task. The task is considered timed out * if it doesn't completed within this duration.

The duration is specified * in seconds, an integer greater than or equal to 0. You can use * NONE to specify unlimited duration.

*/ inline bool StartToCloseTimeoutHasBeenSet() const { return m_startToCloseTimeoutHasBeenSet; } /** *

The maximum duration for this decision task. The task is considered timed out * if it doesn't completed within this duration.

The duration is specified * in seconds, an integer greater than or equal to 0. You can use * NONE to specify unlimited duration.

*/ inline void SetStartToCloseTimeout(const Aws::String& value) { m_startToCloseTimeoutHasBeenSet = true; m_startToCloseTimeout = value; } /** *

The maximum duration for this decision task. The task is considered timed out * if it doesn't completed within this duration.

The duration is specified * in seconds, an integer greater than or equal to 0. You can use * NONE to specify unlimited duration.

*/ inline void SetStartToCloseTimeout(Aws::String&& value) { m_startToCloseTimeoutHasBeenSet = true; m_startToCloseTimeout = std::move(value); } /** *

The maximum duration for this decision task. The task is considered timed out * if it doesn't completed within this duration.

The duration is specified * in seconds, an integer greater than or equal to 0. You can use * NONE to specify unlimited duration.

*/ inline void SetStartToCloseTimeout(const char* value) { m_startToCloseTimeoutHasBeenSet = true; m_startToCloseTimeout.assign(value); } /** *

The maximum duration for this decision task. The task is considered timed out * if it doesn't completed within this duration.

The duration is specified * in seconds, an integer greater than or equal to 0. You can use * NONE to specify unlimited duration.

*/ inline DecisionTaskScheduledEventAttributes& WithStartToCloseTimeout(const Aws::String& value) { SetStartToCloseTimeout(value); return *this;} /** *

The maximum duration for this decision task. The task is considered timed out * if it doesn't completed within this duration.

The duration is specified * in seconds, an integer greater than or equal to 0. You can use * NONE to specify unlimited duration.

*/ inline DecisionTaskScheduledEventAttributes& WithStartToCloseTimeout(Aws::String&& value) { SetStartToCloseTimeout(std::move(value)); return *this;} /** *

The maximum duration for this decision task. The task is considered timed out * if it doesn't completed within this duration.

The duration is specified * in seconds, an integer greater than or equal to 0. You can use * NONE to specify unlimited duration.

*/ inline DecisionTaskScheduledEventAttributes& WithStartToCloseTimeout(const char* value) { SetStartToCloseTimeout(value); return *this;} private: TaskList m_taskList; bool m_taskListHasBeenSet = false; Aws::String m_taskPriority; bool m_taskPriorityHasBeenSet = false; Aws::String m_startToCloseTimeout; bool m_startToCloseTimeoutHasBeenSet = false; }; } // namespace Model } // namespace SWF } // namespace Aws