AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
TaskRunSessionActionDefinition.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/deadline/Deadline_EXPORTS.h>
10#include <aws/deadline/model/TaskParameterValue.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace deadline {
22namespace Model {
23
31 public:
32 AWS_DEADLINE_API TaskRunSessionActionDefinition() = default;
35 AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetTaskId() const { return m_taskId; }
42 inline bool TaskIdHasBeenSet() const { return m_taskIdHasBeenSet; }
43 template <typename TaskIdT = Aws::String>
44 void SetTaskId(TaskIdT&& value) {
45 m_taskIdHasBeenSet = true;
46 m_taskId = std::forward<TaskIdT>(value);
47 }
48 template <typename TaskIdT = Aws::String>
50 SetTaskId(std::forward<TaskIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetStepId() const { return m_stepId; }
60 inline bool StepIdHasBeenSet() const { return m_stepIdHasBeenSet; }
61 template <typename StepIdT = Aws::String>
62 void SetStepId(StepIdT&& value) {
63 m_stepIdHasBeenSet = true;
64 m_stepId = std::forward<StepIdT>(value);
65 }
66 template <typename StepIdT = Aws::String>
68 SetStepId(std::forward<StepIdT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::Map<Aws::String, TaskParameterValue>& GetParameters() const { return m_parameters; }
78 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
79 template <typename ParametersT = Aws::Map<Aws::String, TaskParameterValue>>
80 void SetParameters(ParametersT&& value) {
81 m_parametersHasBeenSet = true;
82 m_parameters = std::forward<ParametersT>(value);
83 }
84 template <typename ParametersT = Aws::Map<Aws::String, TaskParameterValue>>
86 SetParameters(std::forward<ParametersT>(value));
87 return *this;
88 }
89 template <typename ParametersKeyT = Aws::String, typename ParametersValueT = TaskParameterValue>
90 TaskRunSessionActionDefinition& AddParameters(ParametersKeyT&& key, ParametersValueT&& value) {
91 m_parametersHasBeenSet = true;
92 m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value));
93 return *this;
94 }
96 private:
97 Aws::String m_taskId;
98
99 Aws::String m_stepId;
100
102 bool m_taskIdHasBeenSet = false;
103 bool m_stepIdHasBeenSet = false;
104 bool m_parametersHasBeenSet = false;
105};
106
107} // namespace Model
108} // namespace deadline
109} // namespace Aws
TaskRunSessionActionDefinition & WithTaskId(TaskIdT &&value)
TaskRunSessionActionDefinition & WithParameters(ParametersT &&value)
AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const
TaskRunSessionActionDefinition & WithStepId(StepIdT &&value)
const Aws::Map< Aws::String, TaskParameterValue > & GetParameters() const
AWS_DEADLINE_API TaskRunSessionActionDefinition & operator=(Aws::Utils::Json::JsonView jsonValue)
TaskRunSessionActionDefinition & AddParameters(ParametersKeyT &&key, ParametersValueT &&value)
AWS_DEADLINE_API TaskRunSessionActionDefinition()=default
AWS_DEADLINE_API TaskRunSessionActionDefinition(Aws::Utils::Json::JsonView jsonValue)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue