AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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:
27 AWS_DRS_API PutLaunchActionRequest() = default;
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 template<typename ActionCodeT = Aws::String>
45 void SetActionCode(ActionCodeT&& value) { m_actionCodeHasBeenSet = true; m_actionCode = std::forward<ActionCodeT>(value); }
46 template<typename ActionCodeT = Aws::String>
47 PutLaunchActionRequest& WithActionCode(ActionCodeT&& value) { SetActionCode(std::forward<ActionCodeT>(value)); return *this;}
49
51
52 inline const Aws::String& GetActionId() const { return m_actionId; }
53 inline bool ActionIdHasBeenSet() const { return m_actionIdHasBeenSet; }
54 template<typename ActionIdT = Aws::String>
55 void SetActionId(ActionIdT&& value) { m_actionIdHasBeenSet = true; m_actionId = std::forward<ActionIdT>(value); }
56 template<typename ActionIdT = Aws::String>
57 PutLaunchActionRequest& WithActionId(ActionIdT&& value) { SetActionId(std::forward<ActionIdT>(value)); return *this;}
59
61
62 inline const Aws::String& GetActionVersion() const { return m_actionVersion; }
63 inline bool ActionVersionHasBeenSet() const { return m_actionVersionHasBeenSet; }
64 template<typename ActionVersionT = Aws::String>
65 void SetActionVersion(ActionVersionT&& value) { m_actionVersionHasBeenSet = true; m_actionVersion = std::forward<ActionVersionT>(value); }
66 template<typename ActionVersionT = Aws::String>
67 PutLaunchActionRequest& WithActionVersion(ActionVersionT&& value) { SetActionVersion(std::forward<ActionVersionT>(value)); return *this;}
69
71
74 inline bool GetActive() const { return m_active; }
75 inline bool ActiveHasBeenSet() const { return m_activeHasBeenSet; }
76 inline void SetActive(bool value) { m_activeHasBeenSet = true; m_active = value; }
77 inline PutLaunchActionRequest& WithActive(bool value) { SetActive(value); return *this;}
79
81
82 inline LaunchActionCategory GetCategory() const { return m_category; }
83 inline bool CategoryHasBeenSet() const { return m_categoryHasBeenSet; }
84 inline void SetCategory(LaunchActionCategory value) { m_categoryHasBeenSet = true; m_category = value; }
87
89
90 inline const Aws::String& GetDescription() const { return m_description; }
91 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
92 template<typename DescriptionT = Aws::String>
93 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
94 template<typename DescriptionT = Aws::String>
95 PutLaunchActionRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
97
99
100 inline const Aws::String& GetName() const { return m_name; }
101 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
102 template<typename NameT = Aws::String>
103 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
104 template<typename NameT = Aws::String>
105 PutLaunchActionRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
107
109
112 inline bool GetOptional() const { return m_optional; }
113 inline bool OptionalHasBeenSet() const { return m_optionalHasBeenSet; }
114 inline void SetOptional(bool value) { m_optionalHasBeenSet = true; m_optional = value; }
115 inline PutLaunchActionRequest& WithOptional(bool value) { SetOptional(value); return *this;}
117
119
120 inline int GetOrder() const { return m_order; }
121 inline bool OrderHasBeenSet() const { return m_orderHasBeenSet; }
122 inline void SetOrder(int value) { m_orderHasBeenSet = true; m_order = value; }
123 inline PutLaunchActionRequest& WithOrder(int value) { SetOrder(value); return *this;}
125
127
128 inline const Aws::Map<Aws::String, LaunchActionParameter>& GetParameters() const { return m_parameters; }
129 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
130 template<typename ParametersT = Aws::Map<Aws::String, LaunchActionParameter>>
131 void SetParameters(ParametersT&& value) { m_parametersHasBeenSet = true; m_parameters = std::forward<ParametersT>(value); }
132 template<typename ParametersT = Aws::Map<Aws::String, LaunchActionParameter>>
133 PutLaunchActionRequest& WithParameters(ParametersT&& value) { SetParameters(std::forward<ParametersT>(value)); return *this;}
134 template<typename ParametersKeyT = Aws::String, typename ParametersValueT = LaunchActionParameter>
135 PutLaunchActionRequest& AddParameters(ParametersKeyT&& key, ParametersValueT&& value) {
136 m_parametersHasBeenSet = true; m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value)); return *this;
137 }
139
141
142 inline const Aws::String& GetResourceId() const { return m_resourceId; }
143 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
144 template<typename ResourceIdT = Aws::String>
145 void SetResourceId(ResourceIdT&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::forward<ResourceIdT>(value); }
146 template<typename ResourceIdT = Aws::String>
147 PutLaunchActionRequest& WithResourceId(ResourceIdT&& value) { SetResourceId(std::forward<ResourceIdT>(value)); return *this;}
149 private:
150
151 Aws::String m_actionCode;
152 bool m_actionCodeHasBeenSet = false;
153
154 Aws::String m_actionId;
155 bool m_actionIdHasBeenSet = false;
156
157 Aws::String m_actionVersion;
158 bool m_actionVersionHasBeenSet = false;
159
160 bool m_active{false};
161 bool m_activeHasBeenSet = false;
162
164 bool m_categoryHasBeenSet = false;
165
166 Aws::String m_description;
167 bool m_descriptionHasBeenSet = false;
168
169 Aws::String m_name;
170 bool m_nameHasBeenSet = false;
171
172 bool m_optional{false};
173 bool m_optionalHasBeenSet = false;
174
175 int m_order{0};
176 bool m_orderHasBeenSet = false;
177
179 bool m_parametersHasBeenSet = false;
180
181 Aws::String m_resourceId;
182 bool m_resourceIdHasBeenSet = false;
183 };
184
185} // namespace Model
186} // namespace drs
187} // namespace Aws
PutLaunchActionRequest & WithDescription(DescriptionT &&value)
PutLaunchActionRequest & WithActionId(ActionIdT &&value)
PutLaunchActionRequest & WithActive(bool value)
PutLaunchActionRequest & WithOrder(int value)
AWS_DRS_API PutLaunchActionRequest()=default
PutLaunchActionRequest & WithOptional(bool value)
PutLaunchActionRequest & WithName(NameT &&value)
virtual const char * GetServiceRequestName() const override
PutLaunchActionRequest & WithResourceId(ResourceIdT &&value)
PutLaunchActionRequest & AddParameters(ParametersKeyT &&key, ParametersValueT &&value)
AWS_DRS_API Aws::String SerializePayload() const override
void SetActionVersion(ActionVersionT &&value)
void SetCategory(LaunchActionCategory value)
PutLaunchActionRequest & WithCategory(LaunchActionCategory value)
const Aws::Map< Aws::String, LaunchActionParameter > & GetParameters() const
PutLaunchActionRequest & WithActionCode(ActionCodeT &&value)
PutLaunchActionRequest & WithParameters(ParametersT &&value)
PutLaunchActionRequest & WithActionVersion(ActionVersionT &&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