AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
TemplateActionDocument.h
1
6#pragma once
7#include <aws/mgn/Mgn_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/mgn/model/ActionCategory.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/mgn/model/SsmExternalParameter.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/mgn/model/SsmParameterStoreParameter.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace mgn
27{
28namespace Model
29{
30
32 {
33 public:
34 AWS_MGN_API TemplateActionDocument() = default;
38
39
41
44 inline const Aws::String& GetActionID() const { return m_actionID; }
45 inline bool ActionIDHasBeenSet() const { return m_actionIDHasBeenSet; }
46 template<typename ActionIDT = Aws::String>
47 void SetActionID(ActionIDT&& value) { m_actionIDHasBeenSet = true; m_actionID = std::forward<ActionIDT>(value); }
48 template<typename ActionIDT = Aws::String>
49 TemplateActionDocument& WithActionID(ActionIDT&& value) { SetActionID(std::forward<ActionIDT>(value)); return *this;}
51
53
56 inline const Aws::String& GetActionName() const { return m_actionName; }
57 inline bool ActionNameHasBeenSet() const { return m_actionNameHasBeenSet; }
58 template<typename ActionNameT = Aws::String>
59 void SetActionName(ActionNameT&& value) { m_actionNameHasBeenSet = true; m_actionName = std::forward<ActionNameT>(value); }
60 template<typename ActionNameT = Aws::String>
61 TemplateActionDocument& WithActionName(ActionNameT&& value) { SetActionName(std::forward<ActionNameT>(value)); return *this;}
63
65
68 inline bool GetActive() const { return m_active; }
69 inline bool ActiveHasBeenSet() const { return m_activeHasBeenSet; }
70 inline void SetActive(bool value) { m_activeHasBeenSet = true; m_active = value; }
71 inline TemplateActionDocument& WithActive(bool value) { SetActive(value); return *this;}
73
75
78 inline ActionCategory GetCategory() const { return m_category; }
79 inline bool CategoryHasBeenSet() const { return m_categoryHasBeenSet; }
80 inline void SetCategory(ActionCategory value) { m_categoryHasBeenSet = true; m_category = value; }
81 inline TemplateActionDocument& WithCategory(ActionCategory value) { SetCategory(value); return *this;}
83
85
88 inline const Aws::String& GetDescription() const { return m_description; }
89 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
90 template<typename DescriptionT = Aws::String>
91 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
92 template<typename DescriptionT = Aws::String>
93 TemplateActionDocument& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
95
97
100 inline const Aws::String& GetDocumentIdentifier() const { return m_documentIdentifier; }
101 inline bool DocumentIdentifierHasBeenSet() const { return m_documentIdentifierHasBeenSet; }
102 template<typename DocumentIdentifierT = Aws::String>
103 void SetDocumentIdentifier(DocumentIdentifierT&& value) { m_documentIdentifierHasBeenSet = true; m_documentIdentifier = std::forward<DocumentIdentifierT>(value); }
104 template<typename DocumentIdentifierT = Aws::String>
105 TemplateActionDocument& WithDocumentIdentifier(DocumentIdentifierT&& value) { SetDocumentIdentifier(std::forward<DocumentIdentifierT>(value)); return *this;}
107
109
112 inline const Aws::String& GetDocumentVersion() const { return m_documentVersion; }
113 inline bool DocumentVersionHasBeenSet() const { return m_documentVersionHasBeenSet; }
114 template<typename DocumentVersionT = Aws::String>
115 void SetDocumentVersion(DocumentVersionT&& value) { m_documentVersionHasBeenSet = true; m_documentVersion = std::forward<DocumentVersionT>(value); }
116 template<typename DocumentVersionT = Aws::String>
117 TemplateActionDocument& WithDocumentVersion(DocumentVersionT&& value) { SetDocumentVersion(std::forward<DocumentVersionT>(value)); return *this;}
119
121
124 inline const Aws::Map<Aws::String, SsmExternalParameter>& GetExternalParameters() const { return m_externalParameters; }
125 inline bool ExternalParametersHasBeenSet() const { return m_externalParametersHasBeenSet; }
126 template<typename ExternalParametersT = Aws::Map<Aws::String, SsmExternalParameter>>
127 void SetExternalParameters(ExternalParametersT&& value) { m_externalParametersHasBeenSet = true; m_externalParameters = std::forward<ExternalParametersT>(value); }
128 template<typename ExternalParametersT = Aws::Map<Aws::String, SsmExternalParameter>>
129 TemplateActionDocument& WithExternalParameters(ExternalParametersT&& value) { SetExternalParameters(std::forward<ExternalParametersT>(value)); return *this;}
130 template<typename ExternalParametersKeyT = Aws::String, typename ExternalParametersValueT = SsmExternalParameter>
131 TemplateActionDocument& AddExternalParameters(ExternalParametersKeyT&& key, ExternalParametersValueT&& value) {
132 m_externalParametersHasBeenSet = true; m_externalParameters.emplace(std::forward<ExternalParametersKeyT>(key), std::forward<ExternalParametersValueT>(value)); return *this;
133 }
135
137
140 inline bool GetMustSucceedForCutover() const { return m_mustSucceedForCutover; }
141 inline bool MustSucceedForCutoverHasBeenSet() const { return m_mustSucceedForCutoverHasBeenSet; }
142 inline void SetMustSucceedForCutover(bool value) { m_mustSucceedForCutoverHasBeenSet = true; m_mustSucceedForCutover = value; }
145
147
150 inline const Aws::String& GetOperatingSystem() const { return m_operatingSystem; }
151 inline bool OperatingSystemHasBeenSet() const { return m_operatingSystemHasBeenSet; }
152 template<typename OperatingSystemT = Aws::String>
153 void SetOperatingSystem(OperatingSystemT&& value) { m_operatingSystemHasBeenSet = true; m_operatingSystem = std::forward<OperatingSystemT>(value); }
154 template<typename OperatingSystemT = Aws::String>
155 TemplateActionDocument& WithOperatingSystem(OperatingSystemT&& value) { SetOperatingSystem(std::forward<OperatingSystemT>(value)); return *this;}
157
159
162 inline int GetOrder() const { return m_order; }
163 inline bool OrderHasBeenSet() const { return m_orderHasBeenSet; }
164 inline void SetOrder(int value) { m_orderHasBeenSet = true; m_order = value; }
165 inline TemplateActionDocument& WithOrder(int value) { SetOrder(value); return *this;}
167
169
173 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
174 template<typename ParametersT = Aws::Map<Aws::String, Aws::Vector<SsmParameterStoreParameter>>>
175 void SetParameters(ParametersT&& value) { m_parametersHasBeenSet = true; m_parameters = std::forward<ParametersT>(value); }
176 template<typename ParametersT = Aws::Map<Aws::String, Aws::Vector<SsmParameterStoreParameter>>>
177 TemplateActionDocument& WithParameters(ParametersT&& value) { SetParameters(std::forward<ParametersT>(value)); return *this;}
178 template<typename ParametersKeyT = Aws::String, typename ParametersValueT = Aws::Vector<SsmParameterStoreParameter>>
179 TemplateActionDocument& AddParameters(ParametersKeyT&& key, ParametersValueT&& value) {
180 m_parametersHasBeenSet = true; m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value)); return *this;
181 }
183
185
188 inline int GetTimeoutSeconds() const { return m_timeoutSeconds; }
189 inline bool TimeoutSecondsHasBeenSet() const { return m_timeoutSecondsHasBeenSet; }
190 inline void SetTimeoutSeconds(int value) { m_timeoutSecondsHasBeenSet = true; m_timeoutSeconds = value; }
191 inline TemplateActionDocument& WithTimeoutSeconds(int value) { SetTimeoutSeconds(value); return *this;}
193
195
196 inline const Aws::String& GetRequestId() const { return m_requestId; }
197 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
198 template<typename RequestIdT = Aws::String>
199 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
200 template<typename RequestIdT = Aws::String>
201 TemplateActionDocument& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
203 private:
204
205 Aws::String m_actionID;
206 bool m_actionIDHasBeenSet = false;
207
208 Aws::String m_actionName;
209 bool m_actionNameHasBeenSet = false;
210
211 bool m_active{false};
212 bool m_activeHasBeenSet = false;
213
215 bool m_categoryHasBeenSet = false;
216
217 Aws::String m_description;
218 bool m_descriptionHasBeenSet = false;
219
220 Aws::String m_documentIdentifier;
221 bool m_documentIdentifierHasBeenSet = false;
222
223 Aws::String m_documentVersion;
224 bool m_documentVersionHasBeenSet = false;
225
227 bool m_externalParametersHasBeenSet = false;
228
229 bool m_mustSucceedForCutover{false};
230 bool m_mustSucceedForCutoverHasBeenSet = false;
231
232 Aws::String m_operatingSystem;
233 bool m_operatingSystemHasBeenSet = false;
234
235 int m_order{0};
236 bool m_orderHasBeenSet = false;
237
239 bool m_parametersHasBeenSet = false;
240
241 int m_timeoutSeconds{0};
242 bool m_timeoutSecondsHasBeenSet = false;
243
244 Aws::String m_requestId;
245 bool m_requestIdHasBeenSet = false;
246 };
247
248} // namespace Model
249} // namespace mgn
250} // namespace Aws
void SetOperatingSystem(OperatingSystemT &&value)
TemplateActionDocument & WithDescription(DescriptionT &&value)
TemplateActionDocument & WithRequestId(RequestIdT &&value)
TemplateActionDocument & WithOperatingSystem(OperatingSystemT &&value)
TemplateActionDocument & WithActive(bool value)
TemplateActionDocument & WithActionName(ActionNameT &&value)
TemplateActionDocument & WithActionID(ActionIDT &&value)
const Aws::Map< Aws::String, SsmExternalParameter > & GetExternalParameters() const
void SetDocumentVersion(DocumentVersionT &&value)
TemplateActionDocument & WithMustSucceedForCutover(bool value)
AWS_MGN_API TemplateActionDocument & operator=(Aws::Utils::Json::JsonView jsonValue)
TemplateActionDocument & WithDocumentVersion(DocumentVersionT &&value)
TemplateActionDocument & AddExternalParameters(ExternalParametersKeyT &&key, ExternalParametersValueT &&value)
TemplateActionDocument & WithParameters(ParametersT &&value)
TemplateActionDocument & WithTimeoutSeconds(int value)
const Aws::Map< Aws::String, Aws::Vector< SsmParameterStoreParameter > > & GetParameters() const
TemplateActionDocument & WithCategory(ActionCategory value)
AWS_MGN_API Aws::Utils::Json::JsonValue Jsonize() const
TemplateActionDocument & WithDocumentIdentifier(DocumentIdentifierT &&value)
const Aws::String & GetDocumentIdentifier() const
AWS_MGN_API TemplateActionDocument(Aws::Utils::Json::JsonView jsonValue)
void SetDocumentIdentifier(DocumentIdentifierT &&value)
TemplateActionDocument & WithExternalParameters(ExternalParametersT &&value)
void SetExternalParameters(ExternalParametersT &&value)
TemplateActionDocument & WithOrder(int value)
AWS_MGN_API TemplateActionDocument()=default
TemplateActionDocument & AddParameters(ParametersKeyT &&key, ParametersValueT &&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