AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
PutLaunchActionResult.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{
17template<typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace drs
28{
29namespace Model
30{
32 {
33 public:
34 AWS_DRS_API PutLaunchActionResult() = default;
37
38
40
43 inline const Aws::String& GetActionCode() const { return m_actionCode; }
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 PutLaunchActionResult& WithActionCode(ActionCodeT&& value) { SetActionCode(std::forward<ActionCodeT>(value)); return *this;}
49
51
52 inline const Aws::String& GetActionId() const { return m_actionId; }
53 template<typename ActionIdT = Aws::String>
54 void SetActionId(ActionIdT&& value) { m_actionIdHasBeenSet = true; m_actionId = std::forward<ActionIdT>(value); }
55 template<typename ActionIdT = Aws::String>
56 PutLaunchActionResult& WithActionId(ActionIdT&& value) { SetActionId(std::forward<ActionIdT>(value)); return *this;}
58
60
61 inline const Aws::String& GetActionVersion() const { return m_actionVersion; }
62 template<typename ActionVersionT = Aws::String>
63 void SetActionVersion(ActionVersionT&& value) { m_actionVersionHasBeenSet = true; m_actionVersion = std::forward<ActionVersionT>(value); }
64 template<typename ActionVersionT = Aws::String>
65 PutLaunchActionResult& WithActionVersion(ActionVersionT&& value) { SetActionVersion(std::forward<ActionVersionT>(value)); return *this;}
67
69
72 inline bool GetActive() const { return m_active; }
73 inline void SetActive(bool value) { m_activeHasBeenSet = true; m_active = value; }
74 inline PutLaunchActionResult& WithActive(bool value) { SetActive(value); return *this;}
76
78
79 inline LaunchActionCategory GetCategory() const { return m_category; }
80 inline void SetCategory(LaunchActionCategory value) { m_categoryHasBeenSet = true; m_category = value; }
83
85
86 inline const Aws::String& GetDescription() const { return m_description; }
87 template<typename DescriptionT = Aws::String>
88 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
89 template<typename DescriptionT = Aws::String>
90 PutLaunchActionResult& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
92
94
95 inline const Aws::String& GetName() const { return m_name; }
96 template<typename NameT = Aws::String>
97 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
98 template<typename NameT = Aws::String>
99 PutLaunchActionResult& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
101
103
106 inline bool GetOptional() const { return m_optional; }
107 inline void SetOptional(bool value) { m_optionalHasBeenSet = true; m_optional = value; }
108 inline PutLaunchActionResult& WithOptional(bool value) { SetOptional(value); return *this;}
110
112
113 inline int GetOrder() const { return m_order; }
114 inline void SetOrder(int value) { m_orderHasBeenSet = true; m_order = value; }
115 inline PutLaunchActionResult& WithOrder(int value) { SetOrder(value); return *this;}
117
119
120 inline const Aws::Map<Aws::String, LaunchActionParameter>& GetParameters() const { return m_parameters; }
121 template<typename ParametersT = Aws::Map<Aws::String, LaunchActionParameter>>
122 void SetParameters(ParametersT&& value) { m_parametersHasBeenSet = true; m_parameters = std::forward<ParametersT>(value); }
123 template<typename ParametersT = Aws::Map<Aws::String, LaunchActionParameter>>
124 PutLaunchActionResult& WithParameters(ParametersT&& value) { SetParameters(std::forward<ParametersT>(value)); return *this;}
125 template<typename ParametersKeyT = Aws::String, typename ParametersValueT = LaunchActionParameter>
126 PutLaunchActionResult& AddParameters(ParametersKeyT&& key, ParametersValueT&& value) {
127 m_parametersHasBeenSet = true; m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value)); return *this;
128 }
130
132
133 inline const Aws::String& GetResourceId() const { return m_resourceId; }
134 template<typename ResourceIdT = Aws::String>
135 void SetResourceId(ResourceIdT&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::forward<ResourceIdT>(value); }
136 template<typename ResourceIdT = Aws::String>
137 PutLaunchActionResult& WithResourceId(ResourceIdT&& value) { SetResourceId(std::forward<ResourceIdT>(value)); return *this;}
139
141
144 inline LaunchActionType GetType() const { return m_type; }
145 inline void SetType(LaunchActionType value) { m_typeHasBeenSet = true; m_type = value; }
146 inline PutLaunchActionResult& WithType(LaunchActionType value) { SetType(value); return *this;}
148
150
151 inline const Aws::String& GetRequestId() const { return m_requestId; }
152 template<typename RequestIdT = Aws::String>
153 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
154 template<typename RequestIdT = Aws::String>
155 PutLaunchActionResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
157 private:
158
159 Aws::String m_actionCode;
160 bool m_actionCodeHasBeenSet = false;
161
162 Aws::String m_actionId;
163 bool m_actionIdHasBeenSet = false;
164
165 Aws::String m_actionVersion;
166 bool m_actionVersionHasBeenSet = false;
167
168 bool m_active{false};
169 bool m_activeHasBeenSet = false;
170
172 bool m_categoryHasBeenSet = false;
173
174 Aws::String m_description;
175 bool m_descriptionHasBeenSet = false;
176
177 Aws::String m_name;
178 bool m_nameHasBeenSet = false;
179
180 bool m_optional{false};
181 bool m_optionalHasBeenSet = false;
182
183 int m_order{0};
184 bool m_orderHasBeenSet = false;
185
187 bool m_parametersHasBeenSet = false;
188
189 Aws::String m_resourceId;
190 bool m_resourceIdHasBeenSet = false;
191
193 bool m_typeHasBeenSet = false;
194
195 Aws::String m_requestId;
196 bool m_requestIdHasBeenSet = false;
197 };
198
199} // namespace Model
200} // namespace drs
201} // namespace Aws
PutLaunchActionResult & WithType(LaunchActionType value)
PutLaunchActionResult & AddParameters(ParametersKeyT &&key, ParametersValueT &&value)
PutLaunchActionResult & WithOrder(int value)
const Aws::Map< Aws::String, LaunchActionParameter > & GetParameters() const
AWS_DRS_API PutLaunchActionResult()=default
PutLaunchActionResult & WithCategory(LaunchActionCategory value)
PutLaunchActionResult & WithName(NameT &&value)
PutLaunchActionResult & WithResourceId(ResourceIdT &&value)
AWS_DRS_API PutLaunchActionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::String & GetActionVersion() const
void SetActionVersion(ActionVersionT &&value)
PutLaunchActionResult & WithActionId(ActionIdT &&value)
AWS_DRS_API PutLaunchActionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
PutLaunchActionResult & WithActionVersion(ActionVersionT &&value)
PutLaunchActionResult & WithOptional(bool value)
PutLaunchActionResult & WithDescription(DescriptionT &&value)
void SetCategory(LaunchActionCategory value)
PutLaunchActionResult & WithRequestId(RequestIdT &&value)
PutLaunchActionResult & WithParameters(ParametersT &&value)
PutLaunchActionResult & WithActive(bool value)
PutLaunchActionResult & WithActionCode(ActionCodeT &&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
Aws::Utils::Json::JsonValue JsonValue