AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GetCommandResult.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/iot/model/CommandNamespace.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/iot/model/CommandPayload.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/iot/model/CommandParameter.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 IoT
29{
30namespace Model
31{
33 {
34 public:
35 AWS_IOT_API GetCommandResult() = default;
38
39
41
44 inline const Aws::String& GetCommandId() const { return m_commandId; }
45 template<typename CommandIdT = Aws::String>
46 void SetCommandId(CommandIdT&& value) { m_commandIdHasBeenSet = true; m_commandId = std::forward<CommandIdT>(value); }
47 template<typename CommandIdT = Aws::String>
48 GetCommandResult& WithCommandId(CommandIdT&& value) { SetCommandId(std::forward<CommandIdT>(value)); return *this;}
50
52
57 inline const Aws::String& GetCommandArn() const { return m_commandArn; }
58 template<typename CommandArnT = Aws::String>
59 void SetCommandArn(CommandArnT&& value) { m_commandArnHasBeenSet = true; m_commandArn = std::forward<CommandArnT>(value); }
60 template<typename CommandArnT = Aws::String>
61 GetCommandResult& WithCommandArn(CommandArnT&& value) { SetCommandArn(std::forward<CommandArnT>(value)); return *this;}
63
65
68 inline CommandNamespace GetNamespace() const { return m_namespace; }
69 inline void SetNamespace(CommandNamespace value) { m_namespaceHasBeenSet = true; m_namespace = value; }
70 inline GetCommandResult& WithNamespace(CommandNamespace value) { SetNamespace(value); return *this;}
72
74
77 inline const Aws::String& GetDisplayName() const { return m_displayName; }
78 template<typename DisplayNameT = Aws::String>
79 void SetDisplayName(DisplayNameT&& value) { m_displayNameHasBeenSet = true; m_displayName = std::forward<DisplayNameT>(value); }
80 template<typename DisplayNameT = Aws::String>
81 GetCommandResult& WithDisplayName(DisplayNameT&& value) { SetDisplayName(std::forward<DisplayNameT>(value)); return *this;}
83
85
88 inline const Aws::String& GetDescription() const { return m_description; }
89 template<typename DescriptionT = Aws::String>
90 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
91 template<typename DescriptionT = Aws::String>
92 GetCommandResult& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
94
96
99 inline const Aws::Vector<CommandParameter>& GetMandatoryParameters() const { return m_mandatoryParameters; }
100 template<typename MandatoryParametersT = Aws::Vector<CommandParameter>>
101 void SetMandatoryParameters(MandatoryParametersT&& value) { m_mandatoryParametersHasBeenSet = true; m_mandatoryParameters = std::forward<MandatoryParametersT>(value); }
102 template<typename MandatoryParametersT = Aws::Vector<CommandParameter>>
103 GetCommandResult& WithMandatoryParameters(MandatoryParametersT&& value) { SetMandatoryParameters(std::forward<MandatoryParametersT>(value)); return *this;}
104 template<typename MandatoryParametersT = CommandParameter>
105 GetCommandResult& AddMandatoryParameters(MandatoryParametersT&& value) { m_mandatoryParametersHasBeenSet = true; m_mandatoryParameters.emplace_back(std::forward<MandatoryParametersT>(value)); return *this; }
107
109
112 inline const CommandPayload& GetPayload() const { return m_payload; }
113 template<typename PayloadT = CommandPayload>
114 void SetPayload(PayloadT&& value) { m_payloadHasBeenSet = true; m_payload = std::forward<PayloadT>(value); }
115 template<typename PayloadT = CommandPayload>
116 GetCommandResult& WithPayload(PayloadT&& value) { SetPayload(std::forward<PayloadT>(value)); return *this;}
118
120
124 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
125 template<typename RoleArnT = Aws::String>
126 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
127 template<typename RoleArnT = Aws::String>
128 GetCommandResult& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
130
132
135 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
136 template<typename CreatedAtT = Aws::Utils::DateTime>
137 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
138 template<typename CreatedAtT = Aws::Utils::DateTime>
139 GetCommandResult& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
141
143
146 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
147 template<typename LastUpdatedAtT = Aws::Utils::DateTime>
148 void SetLastUpdatedAt(LastUpdatedAtT&& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value); }
149 template<typename LastUpdatedAtT = Aws::Utils::DateTime>
150 GetCommandResult& WithLastUpdatedAt(LastUpdatedAtT&& value) { SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value)); return *this;}
152
154
157 inline bool GetDeprecated() const { return m_deprecated; }
158 inline void SetDeprecated(bool value) { m_deprecatedHasBeenSet = true; m_deprecated = value; }
159 inline GetCommandResult& WithDeprecated(bool value) { SetDeprecated(value); return *this;}
161
163
166 inline bool GetPendingDeletion() const { return m_pendingDeletion; }
167 inline void SetPendingDeletion(bool value) { m_pendingDeletionHasBeenSet = true; m_pendingDeletion = value; }
168 inline GetCommandResult& WithPendingDeletion(bool value) { SetPendingDeletion(value); return *this;}
170
172
173 inline const Aws::String& GetRequestId() const { return m_requestId; }
174 template<typename RequestIdT = Aws::String>
175 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
176 template<typename RequestIdT = Aws::String>
177 GetCommandResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
179 private:
180
181 Aws::String m_commandId;
182 bool m_commandIdHasBeenSet = false;
183
184 Aws::String m_commandArn;
185 bool m_commandArnHasBeenSet = false;
186
188 bool m_namespaceHasBeenSet = false;
189
190 Aws::String m_displayName;
191 bool m_displayNameHasBeenSet = false;
192
193 Aws::String m_description;
194 bool m_descriptionHasBeenSet = false;
195
196 Aws::Vector<CommandParameter> m_mandatoryParameters;
197 bool m_mandatoryParametersHasBeenSet = false;
198
199 CommandPayload m_payload;
200 bool m_payloadHasBeenSet = false;
201
202 Aws::String m_roleArn;
203 bool m_roleArnHasBeenSet = false;
204
205 Aws::Utils::DateTime m_createdAt{};
206 bool m_createdAtHasBeenSet = false;
207
208 Aws::Utils::DateTime m_lastUpdatedAt{};
209 bool m_lastUpdatedAtHasBeenSet = false;
210
211 bool m_deprecated{false};
212 bool m_deprecatedHasBeenSet = false;
213
214 bool m_pendingDeletion{false};
215 bool m_pendingDeletionHasBeenSet = false;
216
217 Aws::String m_requestId;
218 bool m_requestIdHasBeenSet = false;
219 };
220
221} // namespace Model
222} // namespace IoT
223} // 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
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
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 SetLastUpdatedAt(LastUpdatedAtT &&value)
GetCommandResult & WithNamespace(CommandNamespace value)
void SetNamespace(CommandNamespace value)
GetCommandResult & WithMandatoryParameters(MandatoryParametersT &&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 CommandPayload & GetPayload() 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