AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
LaunchAction.h
1
6#pragma once
7#include <aws/drs/Drs_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/drs/model/LaunchActionCategory.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/drs/model/LaunchActionType.h>
12#include <aws/drs/model/LaunchActionParameter.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace drs
26{
27namespace Model
28{
29
36 {
37 public:
38 AWS_DRS_API LaunchAction() = default;
42
43
45
48 inline const Aws::String& GetActionCode() const { return m_actionCode; }
49 inline bool ActionCodeHasBeenSet() const { return m_actionCodeHasBeenSet; }
50 template<typename ActionCodeT = Aws::String>
51 void SetActionCode(ActionCodeT&& value) { m_actionCodeHasBeenSet = true; m_actionCode = std::forward<ActionCodeT>(value); }
52 template<typename ActionCodeT = Aws::String>
53 LaunchAction& WithActionCode(ActionCodeT&& value) { SetActionCode(std::forward<ActionCodeT>(value)); return *this;}
55
57
58 inline const Aws::String& GetActionId() const { return m_actionId; }
59 inline bool ActionIdHasBeenSet() const { return m_actionIdHasBeenSet; }
60 template<typename ActionIdT = Aws::String>
61 void SetActionId(ActionIdT&& value) { m_actionIdHasBeenSet = true; m_actionId = std::forward<ActionIdT>(value); }
62 template<typename ActionIdT = Aws::String>
63 LaunchAction& WithActionId(ActionIdT&& value) { SetActionId(std::forward<ActionIdT>(value)); return *this;}
65
67
68 inline const Aws::String& GetActionVersion() const { return m_actionVersion; }
69 inline bool ActionVersionHasBeenSet() const { return m_actionVersionHasBeenSet; }
70 template<typename ActionVersionT = Aws::String>
71 void SetActionVersion(ActionVersionT&& value) { m_actionVersionHasBeenSet = true; m_actionVersion = std::forward<ActionVersionT>(value); }
72 template<typename ActionVersionT = Aws::String>
73 LaunchAction& WithActionVersion(ActionVersionT&& value) { SetActionVersion(std::forward<ActionVersionT>(value)); return *this;}
75
77
80 inline bool GetActive() const { return m_active; }
81 inline bool ActiveHasBeenSet() const { return m_activeHasBeenSet; }
82 inline void SetActive(bool value) { m_activeHasBeenSet = true; m_active = value; }
83 inline LaunchAction& WithActive(bool value) { SetActive(value); return *this;}
85
87
88 inline LaunchActionCategory GetCategory() const { return m_category; }
89 inline bool CategoryHasBeenSet() const { return m_categoryHasBeenSet; }
90 inline void SetCategory(LaunchActionCategory value) { m_categoryHasBeenSet = true; m_category = value; }
91 inline LaunchAction& WithCategory(LaunchActionCategory value) { SetCategory(value); return *this;}
93
95
96 inline const Aws::String& GetDescription() const { return m_description; }
97 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
98 template<typename DescriptionT = Aws::String>
99 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
100 template<typename DescriptionT = Aws::String>
101 LaunchAction& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
103
105
106 inline const Aws::String& GetName() const { return m_name; }
107 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
108 template<typename NameT = Aws::String>
109 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
110 template<typename NameT = Aws::String>
111 LaunchAction& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
113
115
118 inline bool GetOptional() const { return m_optional; }
119 inline bool OptionalHasBeenSet() const { return m_optionalHasBeenSet; }
120 inline void SetOptional(bool value) { m_optionalHasBeenSet = true; m_optional = value; }
121 inline LaunchAction& WithOptional(bool value) { SetOptional(value); return *this;}
123
125
126 inline int GetOrder() const { return m_order; }
127 inline bool OrderHasBeenSet() const { return m_orderHasBeenSet; }
128 inline void SetOrder(int value) { m_orderHasBeenSet = true; m_order = value; }
129 inline LaunchAction& WithOrder(int value) { SetOrder(value); return *this;}
131
133
134 inline const Aws::Map<Aws::String, LaunchActionParameter>& GetParameters() const { return m_parameters; }
135 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
136 template<typename ParametersT = Aws::Map<Aws::String, LaunchActionParameter>>
137 void SetParameters(ParametersT&& value) { m_parametersHasBeenSet = true; m_parameters = std::forward<ParametersT>(value); }
138 template<typename ParametersT = Aws::Map<Aws::String, LaunchActionParameter>>
139 LaunchAction& WithParameters(ParametersT&& value) { SetParameters(std::forward<ParametersT>(value)); return *this;}
140 template<typename ParametersKeyT = Aws::String, typename ParametersValueT = LaunchActionParameter>
141 LaunchAction& AddParameters(ParametersKeyT&& key, ParametersValueT&& value) {
142 m_parametersHasBeenSet = true; m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value)); return *this;
143 }
145
147
150 inline LaunchActionType GetType() const { return m_type; }
151 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
152 inline void SetType(LaunchActionType value) { m_typeHasBeenSet = true; m_type = value; }
153 inline LaunchAction& WithType(LaunchActionType value) { SetType(value); return *this;}
155 private:
156
157 Aws::String m_actionCode;
158 bool m_actionCodeHasBeenSet = false;
159
160 Aws::String m_actionId;
161 bool m_actionIdHasBeenSet = false;
162
163 Aws::String m_actionVersion;
164 bool m_actionVersionHasBeenSet = false;
165
166 bool m_active{false};
167 bool m_activeHasBeenSet = false;
168
170 bool m_categoryHasBeenSet = false;
171
172 Aws::String m_description;
173 bool m_descriptionHasBeenSet = false;
174
175 Aws::String m_name;
176 bool m_nameHasBeenSet = false;
177
178 bool m_optional{false};
179 bool m_optionalHasBeenSet = false;
180
181 int m_order{0};
182 bool m_orderHasBeenSet = false;
183
185 bool m_parametersHasBeenSet = false;
186
188 bool m_typeHasBeenSet = false;
189 };
190
191} // namespace Model
192} // namespace drs
193} // namespace Aws
const Aws::String & GetActionVersion() const
LaunchActionType GetType() const
LaunchAction & WithOrder(int value)
void SetName(NameT &&value)
LaunchActionCategory GetCategory() const
AWS_DRS_API LaunchAction()=default
const Aws::String & GetActionId() const
void SetType(LaunchActionType value)
LaunchAction & WithType(LaunchActionType value)
AWS_DRS_API Aws::Utils::Json::JsonValue Jsonize() const
LaunchAction & WithActionCode(ActionCodeT &&value)
void SetParameters(ParametersT &&value)
LaunchAction & AddParameters(ParametersKeyT &&key, ParametersValueT &&value)
const Aws::String & GetActionCode() const
AWS_DRS_API LaunchAction(Aws::Utils::Json::JsonView jsonValue)
void SetActionCode(ActionCodeT &&value)
const Aws::Map< Aws::String, LaunchActionParameter > & GetParameters() const
const Aws::String & GetName() const
LaunchAction & WithActionVersion(ActionVersionT &&value)
LaunchAction & WithName(NameT &&value)
LaunchAction & WithActive(bool value)
LaunchAction & WithCategory(LaunchActionCategory value)
void SetCategory(LaunchActionCategory value)
LaunchAction & WithOptional(bool value)
LaunchAction & WithDescription(DescriptionT &&value)
const Aws::String & GetDescription() const
void SetDescription(DescriptionT &&value)
LaunchAction & WithActionId(ActionIdT &&value)
LaunchAction & WithParameters(ParametersT &&value)
void SetActionVersion(ActionVersionT &&value)
void SetActionId(ActionIdT &&value)
AWS_DRS_API LaunchAction & operator=(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