AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PutLaunchActionRequest.h
1
6#pragma once
7#include <aws/drs/Drs_EXPORTS.h>
8#include <aws/drs/DrsRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/drs/model/LaunchActionCategory.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/drs/model/LaunchActionParameter.h>
13#include <utility>
14
15namespace Aws
16{
17namespace drs
18{
19namespace Model
20{
21
25 {
26 public:
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "PutLaunchAction"; }
34
35 AWS_DRS_API Aws::String SerializePayload() const override;
36
37
39
42 inline const Aws::String& GetActionCode() const{ return m_actionCode; }
43 inline bool ActionCodeHasBeenSet() const { return m_actionCodeHasBeenSet; }
44 inline void SetActionCode(const Aws::String& value) { m_actionCodeHasBeenSet = true; m_actionCode = value; }
45 inline void SetActionCode(Aws::String&& value) { m_actionCodeHasBeenSet = true; m_actionCode = std::move(value); }
46 inline void SetActionCode(const char* value) { m_actionCodeHasBeenSet = true; m_actionCode.assign(value); }
47 inline PutLaunchActionRequest& WithActionCode(const Aws::String& value) { SetActionCode(value); return *this;}
48 inline PutLaunchActionRequest& WithActionCode(Aws::String&& value) { SetActionCode(std::move(value)); return *this;}
49 inline PutLaunchActionRequest& WithActionCode(const char* value) { SetActionCode(value); return *this;}
51
53
54 inline const Aws::String& GetActionId() const{ return m_actionId; }
55 inline bool ActionIdHasBeenSet() const { return m_actionIdHasBeenSet; }
56 inline void SetActionId(const Aws::String& value) { m_actionIdHasBeenSet = true; m_actionId = value; }
57 inline void SetActionId(Aws::String&& value) { m_actionIdHasBeenSet = true; m_actionId = std::move(value); }
58 inline void SetActionId(const char* value) { m_actionIdHasBeenSet = true; m_actionId.assign(value); }
59 inline PutLaunchActionRequest& WithActionId(const Aws::String& value) { SetActionId(value); return *this;}
60 inline PutLaunchActionRequest& WithActionId(Aws::String&& value) { SetActionId(std::move(value)); return *this;}
61 inline PutLaunchActionRequest& WithActionId(const char* value) { SetActionId(value); return *this;}
63
65
66 inline const Aws::String& GetActionVersion() const{ return m_actionVersion; }
67 inline bool ActionVersionHasBeenSet() const { return m_actionVersionHasBeenSet; }
68 inline void SetActionVersion(const Aws::String& value) { m_actionVersionHasBeenSet = true; m_actionVersion = value; }
69 inline void SetActionVersion(Aws::String&& value) { m_actionVersionHasBeenSet = true; m_actionVersion = std::move(value); }
70 inline void SetActionVersion(const char* value) { m_actionVersionHasBeenSet = true; m_actionVersion.assign(value); }
71 inline PutLaunchActionRequest& WithActionVersion(const Aws::String& value) { SetActionVersion(value); return *this;}
72 inline PutLaunchActionRequest& WithActionVersion(Aws::String&& value) { SetActionVersion(std::move(value)); return *this;}
73 inline PutLaunchActionRequest& WithActionVersion(const char* value) { SetActionVersion(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 PutLaunchActionRequest& WithActive(bool value) { SetActive(value); return *this;}
85
87
88 inline const LaunchActionCategory& GetCategory() const{ return m_category; }
89 inline bool CategoryHasBeenSet() const { return m_categoryHasBeenSet; }
90 inline void SetCategory(const LaunchActionCategory& value) { m_categoryHasBeenSet = true; m_category = value; }
91 inline void SetCategory(LaunchActionCategory&& value) { m_categoryHasBeenSet = true; m_category = std::move(value); }
92 inline PutLaunchActionRequest& WithCategory(const LaunchActionCategory& value) { SetCategory(value); return *this;}
93 inline PutLaunchActionRequest& WithCategory(LaunchActionCategory&& value) { SetCategory(std::move(value)); return *this;}
95
97
98 inline const Aws::String& GetDescription() const{ return m_description; }
99 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
100 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
101 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
102 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
103 inline PutLaunchActionRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
104 inline PutLaunchActionRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
105 inline PutLaunchActionRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
107
109
110 inline const Aws::String& GetName() const{ return m_name; }
111 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
112 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
113 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
114 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
115 inline PutLaunchActionRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
116 inline PutLaunchActionRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
117 inline PutLaunchActionRequest& WithName(const char* value) { SetName(value); return *this;}
119
121
124 inline bool GetOptional() const{ return m_optional; }
125 inline bool OptionalHasBeenSet() const { return m_optionalHasBeenSet; }
126 inline void SetOptional(bool value) { m_optionalHasBeenSet = true; m_optional = value; }
127 inline PutLaunchActionRequest& WithOptional(bool value) { SetOptional(value); return *this;}
129
131
132 inline int GetOrder() const{ return m_order; }
133 inline bool OrderHasBeenSet() const { return m_orderHasBeenSet; }
134 inline void SetOrder(int value) { m_orderHasBeenSet = true; m_order = value; }
135 inline PutLaunchActionRequest& WithOrder(int value) { SetOrder(value); return *this;}
137
139
140 inline const Aws::Map<Aws::String, LaunchActionParameter>& GetParameters() const{ return m_parameters; }
141 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
142 inline void SetParameters(const Aws::Map<Aws::String, LaunchActionParameter>& value) { m_parametersHasBeenSet = true; m_parameters = value; }
143 inline void SetParameters(Aws::Map<Aws::String, LaunchActionParameter>&& value) { m_parametersHasBeenSet = true; m_parameters = std::move(value); }
146 inline PutLaunchActionRequest& AddParameters(const Aws::String& key, const LaunchActionParameter& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; }
147 inline PutLaunchActionRequest& AddParameters(Aws::String&& key, const LaunchActionParameter& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), value); return *this; }
148 inline PutLaunchActionRequest& AddParameters(const Aws::String& key, LaunchActionParameter&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; }
149 inline PutLaunchActionRequest& AddParameters(Aws::String&& key, LaunchActionParameter&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), std::move(value)); return *this; }
150 inline PutLaunchActionRequest& AddParameters(const char* key, LaunchActionParameter&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; }
151 inline PutLaunchActionRequest& AddParameters(const char* key, const LaunchActionParameter& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; }
153
155
156 inline const Aws::String& GetResourceId() const{ return m_resourceId; }
157 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
158 inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
159 inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
160 inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
161 inline PutLaunchActionRequest& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
162 inline PutLaunchActionRequest& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
163 inline PutLaunchActionRequest& WithResourceId(const char* value) { SetResourceId(value); return *this;}
165 private:
166
167 Aws::String m_actionCode;
168 bool m_actionCodeHasBeenSet = false;
169
170 Aws::String m_actionId;
171 bool m_actionIdHasBeenSet = false;
172
173 Aws::String m_actionVersion;
174 bool m_actionVersionHasBeenSet = false;
175
176 bool m_active;
177 bool m_activeHasBeenSet = false;
178
179 LaunchActionCategory m_category;
180 bool m_categoryHasBeenSet = false;
181
182 Aws::String m_description;
183 bool m_descriptionHasBeenSet = false;
184
185 Aws::String m_name;
186 bool m_nameHasBeenSet = false;
187
188 bool m_optional;
189 bool m_optionalHasBeenSet = false;
190
191 int m_order;
192 bool m_orderHasBeenSet = false;
193
195 bool m_parametersHasBeenSet = false;
196
197 Aws::String m_resourceId;
198 bool m_resourceIdHasBeenSet = false;
199 };
200
201} // namespace Model
202} // namespace drs
203} // namespace Aws
void SetActionCode(const Aws::String &value)
PutLaunchActionRequest & WithResourceId(const char *value)
PutLaunchActionRequest & WithActionCode(Aws::String &&value)
void SetCategory(const LaunchActionCategory &value)
void SetActionId(const Aws::String &value)
void SetResourceId(const Aws::String &value)
PutLaunchActionRequest & WithActionVersion(Aws::String &&value)
const LaunchActionCategory & GetCategory() const
PutLaunchActionRequest & WithActive(bool value)
PutLaunchActionRequest & WithOrder(int value)
PutLaunchActionRequest & WithActionVersion(const Aws::String &value)
PutLaunchActionRequest & WithOptional(bool value)
PutLaunchActionRequest & WithDescription(const Aws::String &value)
PutLaunchActionRequest & WithName(Aws::String &&value)
PutLaunchActionRequest & WithDescription(const char *value)
virtual const char * GetServiceRequestName() const override
PutLaunchActionRequest & WithActionId(const Aws::String &value)
PutLaunchActionRequest & WithParameters(const Aws::Map< Aws::String, LaunchActionParameter > &value)
void SetDescription(const Aws::String &value)
AWS_DRS_API Aws::String SerializePayload() const override
void SetParameters(Aws::Map< Aws::String, LaunchActionParameter > &&value)
void SetParameters(const Aws::Map< Aws::String, LaunchActionParameter > &value)
PutLaunchActionRequest & WithParameters(Aws::Map< Aws::String, LaunchActionParameter > &&value)
PutLaunchActionRequest & AddParameters(const char *key, const LaunchActionParameter &value)
PutLaunchActionRequest & AddParameters(Aws::String &&key, LaunchActionParameter &&value)
PutLaunchActionRequest & AddParameters(const Aws::String &key, const LaunchActionParameter &value)
PutLaunchActionRequest & WithDescription(Aws::String &&value)
PutLaunchActionRequest & WithResourceId(Aws::String &&value)
PutLaunchActionRequest & WithCategory(const LaunchActionCategory &value)
void SetActionVersion(const Aws::String &value)
PutLaunchActionRequest & WithName(const char *value)
const Aws::Map< Aws::String, LaunchActionParameter > & GetParameters() const
PutLaunchActionRequest & AddParameters(const Aws::String &key, LaunchActionParameter &&value)
PutLaunchActionRequest & WithCategory(LaunchActionCategory &&value)
PutLaunchActionRequest & WithName(const Aws::String &value)
PutLaunchActionRequest & AddParameters(const char *key, LaunchActionParameter &&value)
PutLaunchActionRequest & WithActionCode(const Aws::String &value)
PutLaunchActionRequest & WithActionVersion(const char *value)
PutLaunchActionRequest & WithActionCode(const char *value)
void SetCategory(LaunchActionCategory &&value)
PutLaunchActionRequest & WithResourceId(const Aws::String &value)
PutLaunchActionRequest & AddParameters(Aws::String &&key, const LaunchActionParameter &value)
PutLaunchActionRequest & WithActionId(Aws::String &&value)
PutLaunchActionRequest & WithActionId(const char *value)
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