AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
PutSourceServerActionResult.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{
18template<typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils
22{
23namespace Json
24{
25 class JsonValue;
26} // namespace Json
27} // namespace Utils
28namespace mgn
29{
30namespace Model
31{
33 {
34 public:
35 AWS_MGN_API PutSourceServerActionResult() = default;
38
39
41
44 inline const Aws::String& GetActionID() const { return m_actionID; }
45 template<typename ActionIDT = Aws::String>
46 void SetActionID(ActionIDT&& value) { m_actionIDHasBeenSet = true; m_actionID = std::forward<ActionIDT>(value); }
47 template<typename ActionIDT = Aws::String>
48 PutSourceServerActionResult& WithActionID(ActionIDT&& value) { SetActionID(std::forward<ActionIDT>(value)); return *this;}
50
52
55 inline const Aws::String& GetActionName() const { return m_actionName; }
56 template<typename ActionNameT = Aws::String>
57 void SetActionName(ActionNameT&& value) { m_actionNameHasBeenSet = true; m_actionName = std::forward<ActionNameT>(value); }
58 template<typename ActionNameT = Aws::String>
59 PutSourceServerActionResult& WithActionName(ActionNameT&& value) { SetActionName(std::forward<ActionNameT>(value)); return *this;}
61
63
66 inline bool GetActive() const { return m_active; }
67 inline void SetActive(bool value) { m_activeHasBeenSet = true; m_active = value; }
68 inline PutSourceServerActionResult& WithActive(bool value) { SetActive(value); return *this;}
70
72
75 inline ActionCategory GetCategory() const { return m_category; }
76 inline void SetCategory(ActionCategory value) { m_categoryHasBeenSet = true; m_category = value; }
79
81
84 inline const Aws::String& GetDescription() const { return m_description; }
85 template<typename DescriptionT = Aws::String>
86 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
87 template<typename DescriptionT = Aws::String>
88 PutSourceServerActionResult& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
90
92
95 inline const Aws::String& GetDocumentIdentifier() const { return m_documentIdentifier; }
96 template<typename DocumentIdentifierT = Aws::String>
97 void SetDocumentIdentifier(DocumentIdentifierT&& value) { m_documentIdentifierHasBeenSet = true; m_documentIdentifier = std::forward<DocumentIdentifierT>(value); }
98 template<typename DocumentIdentifierT = Aws::String>
99 PutSourceServerActionResult& WithDocumentIdentifier(DocumentIdentifierT&& value) { SetDocumentIdentifier(std::forward<DocumentIdentifierT>(value)); return *this;}
101
103
106 inline const Aws::String& GetDocumentVersion() const { return m_documentVersion; }
107 template<typename DocumentVersionT = Aws::String>
108 void SetDocumentVersion(DocumentVersionT&& value) { m_documentVersionHasBeenSet = true; m_documentVersion = std::forward<DocumentVersionT>(value); }
109 template<typename DocumentVersionT = Aws::String>
110 PutSourceServerActionResult& WithDocumentVersion(DocumentVersionT&& value) { SetDocumentVersion(std::forward<DocumentVersionT>(value)); return *this;}
112
114
117 inline const Aws::Map<Aws::String, SsmExternalParameter>& GetExternalParameters() const { return m_externalParameters; }
118 template<typename ExternalParametersT = Aws::Map<Aws::String, SsmExternalParameter>>
119 void SetExternalParameters(ExternalParametersT&& value) { m_externalParametersHasBeenSet = true; m_externalParameters = std::forward<ExternalParametersT>(value); }
120 template<typename ExternalParametersT = Aws::Map<Aws::String, SsmExternalParameter>>
121 PutSourceServerActionResult& WithExternalParameters(ExternalParametersT&& value) { SetExternalParameters(std::forward<ExternalParametersT>(value)); return *this;}
122 template<typename ExternalParametersKeyT = Aws::String, typename ExternalParametersValueT = SsmExternalParameter>
123 PutSourceServerActionResult& AddExternalParameters(ExternalParametersKeyT&& key, ExternalParametersValueT&& value) {
124 m_externalParametersHasBeenSet = true; m_externalParameters.emplace(std::forward<ExternalParametersKeyT>(key), std::forward<ExternalParametersValueT>(value)); return *this;
125 }
127
129
132 inline bool GetMustSucceedForCutover() const { return m_mustSucceedForCutover; }
133 inline void SetMustSucceedForCutover(bool value) { m_mustSucceedForCutoverHasBeenSet = true; m_mustSucceedForCutover = value; }
136
138
141 inline int GetOrder() const { return m_order; }
142 inline void SetOrder(int value) { m_orderHasBeenSet = true; m_order = value; }
143 inline PutSourceServerActionResult& WithOrder(int value) { SetOrder(value); return *this;}
145
147
151 template<typename ParametersT = Aws::Map<Aws::String, Aws::Vector<SsmParameterStoreParameter>>>
152 void SetParameters(ParametersT&& value) { m_parametersHasBeenSet = true; m_parameters = std::forward<ParametersT>(value); }
153 template<typename ParametersT = Aws::Map<Aws::String, Aws::Vector<SsmParameterStoreParameter>>>
154 PutSourceServerActionResult& WithParameters(ParametersT&& value) { SetParameters(std::forward<ParametersT>(value)); return *this;}
155 template<typename ParametersKeyT = Aws::String, typename ParametersValueT = Aws::Vector<SsmParameterStoreParameter>>
156 PutSourceServerActionResult& AddParameters(ParametersKeyT&& key, ParametersValueT&& value) {
157 m_parametersHasBeenSet = true; m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value)); return *this;
158 }
160
162
165 inline int GetTimeoutSeconds() const { return m_timeoutSeconds; }
166 inline void SetTimeoutSeconds(int value) { m_timeoutSecondsHasBeenSet = true; m_timeoutSeconds = value; }
167 inline PutSourceServerActionResult& WithTimeoutSeconds(int value) { SetTimeoutSeconds(value); return *this;}
169
171
172 inline const Aws::String& GetRequestId() const { return m_requestId; }
173 template<typename RequestIdT = Aws::String>
174 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
175 template<typename RequestIdT = Aws::String>
176 PutSourceServerActionResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
178 private:
179
180 Aws::String m_actionID;
181 bool m_actionIDHasBeenSet = false;
182
183 Aws::String m_actionName;
184 bool m_actionNameHasBeenSet = false;
185
186 bool m_active{false};
187 bool m_activeHasBeenSet = false;
188
190 bool m_categoryHasBeenSet = false;
191
192 Aws::String m_description;
193 bool m_descriptionHasBeenSet = false;
194
195 Aws::String m_documentIdentifier;
196 bool m_documentIdentifierHasBeenSet = false;
197
198 Aws::String m_documentVersion;
199 bool m_documentVersionHasBeenSet = false;
200
202 bool m_externalParametersHasBeenSet = false;
203
204 bool m_mustSucceedForCutover{false};
205 bool m_mustSucceedForCutoverHasBeenSet = false;
206
207 int m_order{0};
208 bool m_orderHasBeenSet = false;
209
211 bool m_parametersHasBeenSet = false;
212
213 int m_timeoutSeconds{0};
214 bool m_timeoutSecondsHasBeenSet = false;
215
216 Aws::String m_requestId;
217 bool m_requestIdHasBeenSet = false;
218 };
219
220} // namespace Model
221} // namespace mgn
222} // namespace Aws
AWS_MGN_API PutSourceServerActionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
PutSourceServerActionResult & WithDescription(DescriptionT &&value)
PutSourceServerActionResult & WithExternalParameters(ExternalParametersT &&value)
PutSourceServerActionResult & WithActionName(ActionNameT &&value)
PutSourceServerActionResult & WithMustSucceedForCutover(bool value)
AWS_MGN_API PutSourceServerActionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_MGN_API PutSourceServerActionResult()=default
PutSourceServerActionResult & AddExternalParameters(ExternalParametersKeyT &&key, ExternalParametersValueT &&value)
PutSourceServerActionResult & WithRequestId(RequestIdT &&value)
void SetDocumentIdentifier(DocumentIdentifierT &&value)
PutSourceServerActionResult & WithTimeoutSeconds(int value)
PutSourceServerActionResult & WithCategory(ActionCategory value)
PutSourceServerActionResult & WithDocumentIdentifier(DocumentIdentifierT &&value)
PutSourceServerActionResult & WithActive(bool value)
PutSourceServerActionResult & WithOrder(int value)
const Aws::Map< Aws::String, SsmExternalParameter > & GetExternalParameters() const
const Aws::Map< Aws::String, Aws::Vector< SsmParameterStoreParameter > > & GetParameters() const
PutSourceServerActionResult & WithActionID(ActionIDT &&value)
PutSourceServerActionResult & WithDocumentVersion(DocumentVersionT &&value)
PutSourceServerActionResult & WithParameters(ParametersT &&value)
PutSourceServerActionResult & 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