AWS SDK for C++

AWS SDK for C++ Version 1.11.763

Loading...
Searching...
No Matches
GetCommandResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/iot/IoT_EXPORTS.h>
12#include <aws/iot/model/CommandNamespace.h>
13#include <aws/iot/model/CommandParameter.h>
14#include <aws/iot/model/CommandPayload.h>
15#include <aws/iot/model/CommandPreprocessor.h>
16
17#include <utility>
18
19namespace Aws {
20template <typename RESULT_TYPE>
21class AmazonWebServiceResult;
22
23namespace Utils {
24namespace Json {
25class JsonValue;
26} // namespace Json
27} // namespace Utils
28namespace IoT {
29namespace Model {
31 public:
32 AWS_IOT_API GetCommandResult() = default;
35
37
40 inline const Aws::String& GetCommandId() const { return m_commandId; }
41 template <typename CommandIdT = Aws::String>
42 void SetCommandId(CommandIdT&& value) {
43 m_commandIdHasBeenSet = true;
44 m_commandId = std::forward<CommandIdT>(value);
45 }
46 template <typename CommandIdT = Aws::String>
47 GetCommandResult& WithCommandId(CommandIdT&& value) {
48 SetCommandId(std::forward<CommandIdT>(value));
49 return *this;
50 }
52
54
59 inline const Aws::String& GetCommandArn() const { return m_commandArn; }
60 template <typename CommandArnT = Aws::String>
61 void SetCommandArn(CommandArnT&& value) {
62 m_commandArnHasBeenSet = true;
63 m_commandArn = std::forward<CommandArnT>(value);
64 }
65 template <typename CommandArnT = Aws::String>
66 GetCommandResult& WithCommandArn(CommandArnT&& value) {
67 SetCommandArn(std::forward<CommandArnT>(value));
68 return *this;
69 }
71
73
76 inline CommandNamespace GetNamespace() const { return m_namespace; }
77 inline void SetNamespace(CommandNamespace value) {
78 m_namespaceHasBeenSet = true;
79 m_namespace = value;
80 }
82 SetNamespace(value);
83 return *this;
84 }
86
88
91 inline const Aws::String& GetDisplayName() const { return m_displayName; }
92 template <typename DisplayNameT = Aws::String>
93 void SetDisplayName(DisplayNameT&& value) {
94 m_displayNameHasBeenSet = true;
95 m_displayName = std::forward<DisplayNameT>(value);
96 }
97 template <typename DisplayNameT = Aws::String>
98 GetCommandResult& WithDisplayName(DisplayNameT&& value) {
99 SetDisplayName(std::forward<DisplayNameT>(value));
100 return *this;
101 }
103
105
108 inline const Aws::String& GetDescription() const { return m_description; }
109 template <typename DescriptionT = Aws::String>
110 void SetDescription(DescriptionT&& value) {
111 m_descriptionHasBeenSet = true;
112 m_description = std::forward<DescriptionT>(value);
113 }
114 template <typename DescriptionT = Aws::String>
115 GetCommandResult& WithDescription(DescriptionT&& value) {
116 SetDescription(std::forward<DescriptionT>(value));
117 return *this;
118 }
120
122
125 inline const Aws::Vector<CommandParameter>& GetMandatoryParameters() const { return m_mandatoryParameters; }
126 template <typename MandatoryParametersT = Aws::Vector<CommandParameter>>
127 void SetMandatoryParameters(MandatoryParametersT&& value) {
128 m_mandatoryParametersHasBeenSet = true;
129 m_mandatoryParameters = std::forward<MandatoryParametersT>(value);
130 }
131 template <typename MandatoryParametersT = Aws::Vector<CommandParameter>>
132 GetCommandResult& WithMandatoryParameters(MandatoryParametersT&& value) {
133 SetMandatoryParameters(std::forward<MandatoryParametersT>(value));
134 return *this;
135 }
136 template <typename MandatoryParametersT = CommandParameter>
137 GetCommandResult& AddMandatoryParameters(MandatoryParametersT&& value) {
138 m_mandatoryParametersHasBeenSet = true;
139 m_mandatoryParameters.emplace_back(std::forward<MandatoryParametersT>(value));
140 return *this;
141 }
143
145
148 inline const CommandPayload& GetPayload() const { return m_payload; }
149 template <typename PayloadT = CommandPayload>
150 void SetPayload(PayloadT&& value) {
151 m_payloadHasBeenSet = true;
152 m_payload = std::forward<PayloadT>(value);
153 }
154 template <typename PayloadT = CommandPayload>
155 GetCommandResult& WithPayload(PayloadT&& value) {
156 SetPayload(std::forward<PayloadT>(value));
157 return *this;
158 }
160
162
165 inline const Aws::String& GetPayloadTemplate() const { return m_payloadTemplate; }
166 template <typename PayloadTemplateT = Aws::String>
167 void SetPayloadTemplate(PayloadTemplateT&& value) {
168 m_payloadTemplateHasBeenSet = true;
169 m_payloadTemplate = std::forward<PayloadTemplateT>(value);
170 }
171 template <typename PayloadTemplateT = Aws::String>
172 GetCommandResult& WithPayloadTemplate(PayloadTemplateT&& value) {
173 SetPayloadTemplate(std::forward<PayloadTemplateT>(value));
174 return *this;
175 }
177
179
183 inline const CommandPreprocessor& GetPreprocessor() const { return m_preprocessor; }
184 template <typename PreprocessorT = CommandPreprocessor>
185 void SetPreprocessor(PreprocessorT&& value) {
186 m_preprocessorHasBeenSet = true;
187 m_preprocessor = std::forward<PreprocessorT>(value);
188 }
189 template <typename PreprocessorT = CommandPreprocessor>
190 GetCommandResult& WithPreprocessor(PreprocessorT&& value) {
191 SetPreprocessor(std::forward<PreprocessorT>(value));
192 return *this;
193 }
195
197
201 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
202 template <typename RoleArnT = Aws::String>
203 void SetRoleArn(RoleArnT&& value) {
204 m_roleArnHasBeenSet = true;
205 m_roleArn = std::forward<RoleArnT>(value);
206 }
207 template <typename RoleArnT = Aws::String>
208 GetCommandResult& WithRoleArn(RoleArnT&& value) {
209 SetRoleArn(std::forward<RoleArnT>(value));
210 return *this;
211 }
213
215
218 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
219 template <typename CreatedAtT = Aws::Utils::DateTime>
220 void SetCreatedAt(CreatedAtT&& value) {
221 m_createdAtHasBeenSet = true;
222 m_createdAt = std::forward<CreatedAtT>(value);
223 }
224 template <typename CreatedAtT = Aws::Utils::DateTime>
225 GetCommandResult& WithCreatedAt(CreatedAtT&& value) {
226 SetCreatedAt(std::forward<CreatedAtT>(value));
227 return *this;
228 }
230
232
235 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
236 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
237 void SetLastUpdatedAt(LastUpdatedAtT&& value) {
238 m_lastUpdatedAtHasBeenSet = true;
239 m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value);
240 }
241 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
242 GetCommandResult& WithLastUpdatedAt(LastUpdatedAtT&& value) {
243 SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value));
244 return *this;
245 }
247
249
252 inline bool GetDeprecated() const { return m_deprecated; }
253 inline void SetDeprecated(bool value) {
254 m_deprecatedHasBeenSet = true;
255 m_deprecated = value;
256 }
257 inline GetCommandResult& WithDeprecated(bool value) {
258 SetDeprecated(value);
259 return *this;
260 }
262
264
267 inline bool GetPendingDeletion() const { return m_pendingDeletion; }
268 inline void SetPendingDeletion(bool value) {
269 m_pendingDeletionHasBeenSet = true;
270 m_pendingDeletion = value;
271 }
273 SetPendingDeletion(value);
274 return *this;
275 }
277
279
280 inline const Aws::String& GetRequestId() const { return m_requestId; }
281 template <typename RequestIdT = Aws::String>
282 void SetRequestId(RequestIdT&& value) {
283 m_requestIdHasBeenSet = true;
284 m_requestId = std::forward<RequestIdT>(value);
285 }
286 template <typename RequestIdT = Aws::String>
287 GetCommandResult& WithRequestId(RequestIdT&& value) {
288 SetRequestId(std::forward<RequestIdT>(value));
289 return *this;
290 }
292 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
293
294 private:
295 Aws::String m_commandId;
296
297 Aws::String m_commandArn;
298
300
301 Aws::String m_displayName;
302
303 Aws::String m_description;
304
305 Aws::Vector<CommandParameter> m_mandatoryParameters;
306
307 CommandPayload m_payload;
308
309 Aws::String m_payloadTemplate;
310
311 CommandPreprocessor m_preprocessor;
312
313 Aws::String m_roleArn;
314
315 Aws::Utils::DateTime m_createdAt{};
316
317 Aws::Utils::DateTime m_lastUpdatedAt{};
318
319 bool m_deprecated{false};
320
321 bool m_pendingDeletion{false};
322
323 Aws::String m_requestId;
324 Aws::Http::HttpResponseCode m_HttpResponseCode;
325 bool m_commandIdHasBeenSet = false;
326 bool m_commandArnHasBeenSet = false;
327 bool m_namespaceHasBeenSet = false;
328 bool m_displayNameHasBeenSet = false;
329 bool m_descriptionHasBeenSet = false;
330 bool m_mandatoryParametersHasBeenSet = false;
331 bool m_payloadHasBeenSet = false;
332 bool m_payloadTemplateHasBeenSet = false;
333 bool m_preprocessorHasBeenSet = false;
334 bool m_roleArnHasBeenSet = false;
335 bool m_createdAtHasBeenSet = false;
336 bool m_lastUpdatedAtHasBeenSet = false;
337 bool m_deprecatedHasBeenSet = false;
338 bool m_pendingDeletionHasBeenSet = false;
339 bool m_requestIdHasBeenSet = false;
340};
341
342} // namespace Model
343} // namespace IoT
344} // namespace Aws
GetCommandResult & WithCreatedAt(CreatedAtT &&value)
const Aws::String & GetDisplayName() const
GetCommandResult & WithCommandArn(CommandArnT &&value)
const Aws::Vector< CommandParameter > & GetMandatoryParameters() const
GetCommandResult & AddMandatoryParameters(MandatoryParametersT &&value)
GetCommandResult & WithRoleArn(RoleArnT &&value)
const Aws::String & GetRequestId() const
GetCommandResult & WithPayloadTemplate(PayloadTemplateT &&value)
void SetRequestId(RequestIdT &&value)
const Aws::String & GetCommandId() const
AWS_IOT_API GetCommandResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetCommandResult & WithDescription(DescriptionT &&value)
const Aws::String & GetRoleArn() const
Aws::Http::HttpResponseCode GetHttpResponseCode() const
void SetCommandId(CommandIdT &&value)
CommandNamespace GetNamespace() const
GetCommandResult & WithLastUpdatedAt(LastUpdatedAtT &&value)
const Aws::String & GetDescription() const
AWS_IOT_API GetCommandResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetCommandResult & WithCommandId(CommandIdT &&value)
GetCommandResult & WithRequestId(RequestIdT &&value)
GetCommandResult & WithPendingDeletion(bool value)
void SetMandatoryParameters(MandatoryParametersT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
void SetDisplayName(DisplayNameT &&value)
void SetCommandArn(CommandArnT &&value)
void SetPreprocessor(PreprocessorT &&value)
void SetLastUpdatedAt(LastUpdatedAtT &&value)
GetCommandResult & WithNamespace(CommandNamespace value)
void SetNamespace(CommandNamespace value)
GetCommandResult & WithMandatoryParameters(MandatoryParametersT &&value)
GetCommandResult & WithPreprocessor(PreprocessorT &&value)
void SetDescription(DescriptionT &&value)
AWS_IOT_API GetCommandResult()=default
GetCommandResult & WithDisplayName(DisplayNameT &&value)
const Aws::String & GetCommandArn() const
void SetCreatedAt(CreatedAtT &&value)
GetCommandResult & WithPayload(PayloadT &&value)
const Aws::String & GetPayloadTemplate() const
const CommandPayload & GetPayload() const
void SetPayloadTemplate(PayloadTemplateT &&value)
const CommandPreprocessor & GetPreprocessor() const
const Aws::Utils::DateTime & GetLastUpdatedAt() const
GetCommandResult & WithDeprecated(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue