AWS SDK for C++

AWS SDK for C++ Version 1.11.764

Loading...
Searching...
No Matches
GetPackageVersionResult.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/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/iot/IoT_EXPORTS.h>
12#include <aws/iot/model/PackageVersionArtifact.h>
13#include <aws/iot/model/PackageVersionStatus.h>
14#include <aws/iot/model/Sbom.h>
15#include <aws/iot/model/SbomValidationStatus.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 GetPackageVersionResult() = default;
35
37
40 inline const Aws::String& GetPackageVersionArn() const { return m_packageVersionArn; }
41 template <typename PackageVersionArnT = Aws::String>
42 void SetPackageVersionArn(PackageVersionArnT&& value) {
43 m_packageVersionArnHasBeenSet = true;
44 m_packageVersionArn = std::forward<PackageVersionArnT>(value);
45 }
46 template <typename PackageVersionArnT = Aws::String>
47 GetPackageVersionResult& WithPackageVersionArn(PackageVersionArnT&& value) {
48 SetPackageVersionArn(std::forward<PackageVersionArnT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetPackageName() const { return m_packageName; }
58 template <typename PackageNameT = Aws::String>
59 void SetPackageName(PackageNameT&& value) {
60 m_packageNameHasBeenSet = true;
61 m_packageName = std::forward<PackageNameT>(value);
62 }
63 template <typename PackageNameT = Aws::String>
65 SetPackageName(std::forward<PackageNameT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetVersionName() const { return m_versionName; }
75 template <typename VersionNameT = Aws::String>
76 void SetVersionName(VersionNameT&& value) {
77 m_versionNameHasBeenSet = true;
78 m_versionName = std::forward<VersionNameT>(value);
79 }
80 template <typename VersionNameT = Aws::String>
82 SetVersionName(std::forward<VersionNameT>(value));
83 return *this;
84 }
86
88
91 inline const Aws::String& GetDescription() const { return m_description; }
92 template <typename DescriptionT = Aws::String>
93 void SetDescription(DescriptionT&& value) {
94 m_descriptionHasBeenSet = true;
95 m_description = std::forward<DescriptionT>(value);
96 }
97 template <typename DescriptionT = Aws::String>
99 SetDescription(std::forward<DescriptionT>(value));
100 return *this;
101 }
103
105
109 inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const { return m_attributes; }
110 template <typename AttributesT = Aws::Map<Aws::String, Aws::String>>
111 void SetAttributes(AttributesT&& value) {
112 m_attributesHasBeenSet = true;
113 m_attributes = std::forward<AttributesT>(value);
114 }
115 template <typename AttributesT = Aws::Map<Aws::String, Aws::String>>
117 SetAttributes(std::forward<AttributesT>(value));
118 return *this;
119 }
120 template <typename AttributesKeyT = Aws::String, typename AttributesValueT = Aws::String>
121 GetPackageVersionResult& AddAttributes(AttributesKeyT&& key, AttributesValueT&& value) {
122 m_attributesHasBeenSet = true;
123 m_attributes.emplace(std::forward<AttributesKeyT>(key), std::forward<AttributesValueT>(value));
124 return *this;
125 }
127
129
132 inline const PackageVersionArtifact& GetArtifact() const { return m_artifact; }
133 template <typename ArtifactT = PackageVersionArtifact>
134 void SetArtifact(ArtifactT&& value) {
135 m_artifactHasBeenSet = true;
136 m_artifact = std::forward<ArtifactT>(value);
137 }
138 template <typename ArtifactT = PackageVersionArtifact>
140 SetArtifact(std::forward<ArtifactT>(value));
141 return *this;
142 }
144
146
151 inline PackageVersionStatus GetStatus() const { return m_status; }
152 inline void SetStatus(PackageVersionStatus value) {
153 m_statusHasBeenSet = true;
154 m_status = value;
155 }
157 SetStatus(value);
158 return *this;
159 }
161
163
166 inline const Aws::String& GetErrorReason() const { return m_errorReason; }
167 template <typename ErrorReasonT = Aws::String>
168 void SetErrorReason(ErrorReasonT&& value) {
169 m_errorReasonHasBeenSet = true;
170 m_errorReason = std::forward<ErrorReasonT>(value);
171 }
172 template <typename ErrorReasonT = Aws::String>
174 SetErrorReason(std::forward<ErrorReasonT>(value));
175 return *this;
176 }
178
180
183 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
184 template <typename CreationDateT = Aws::Utils::DateTime>
185 void SetCreationDate(CreationDateT&& value) {
186 m_creationDateHasBeenSet = true;
187 m_creationDate = std::forward<CreationDateT>(value);
188 }
189 template <typename CreationDateT = Aws::Utils::DateTime>
191 SetCreationDate(std::forward<CreationDateT>(value));
192 return *this;
193 }
195
197
200 inline const Aws::Utils::DateTime& GetLastModifiedDate() const { return m_lastModifiedDate; }
201 template <typename LastModifiedDateT = Aws::Utils::DateTime>
202 void SetLastModifiedDate(LastModifiedDateT&& value) {
203 m_lastModifiedDateHasBeenSet = true;
204 m_lastModifiedDate = std::forward<LastModifiedDateT>(value);
205 }
206 template <typename LastModifiedDateT = Aws::Utils::DateTime>
207 GetPackageVersionResult& WithLastModifiedDate(LastModifiedDateT&& value) {
208 SetLastModifiedDate(std::forward<LastModifiedDateT>(value));
209 return *this;
210 }
212
214
217 inline const Sbom& GetSbom() const { return m_sbom; }
218 template <typename SbomT = Sbom>
219 void SetSbom(SbomT&& value) {
220 m_sbomHasBeenSet = true;
221 m_sbom = std::forward<SbomT>(value);
222 }
223 template <typename SbomT = Sbom>
225 SetSbom(std::forward<SbomT>(value));
226 return *this;
227 }
229
231
235 inline SbomValidationStatus GetSbomValidationStatus() const { return m_sbomValidationStatus; }
237 m_sbomValidationStatusHasBeenSet = true;
238 m_sbomValidationStatus = value;
239 }
242 return *this;
243 }
245
247
251 inline const Aws::String& GetRecipe() const { return m_recipe; }
252 template <typename RecipeT = Aws::String>
253 void SetRecipe(RecipeT&& value) {
254 m_recipeHasBeenSet = true;
255 m_recipe = std::forward<RecipeT>(value);
256 }
257 template <typename RecipeT = Aws::String>
259 SetRecipe(std::forward<RecipeT>(value));
260 return *this;
261 }
263
265
266 inline const Aws::String& GetRequestId() const { return m_requestId; }
267 template <typename RequestIdT = Aws::String>
268 void SetRequestId(RequestIdT&& value) {
269 m_requestIdHasBeenSet = true;
270 m_requestId = std::forward<RequestIdT>(value);
271 }
272 template <typename RequestIdT = Aws::String>
274 SetRequestId(std::forward<RequestIdT>(value));
275 return *this;
276 }
278 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
279
280 private:
281 Aws::String m_packageVersionArn;
282
283 Aws::String m_packageName;
284
285 Aws::String m_versionName;
286
287 Aws::String m_description;
288
290
291 PackageVersionArtifact m_artifact;
292
294
295 Aws::String m_errorReason;
296
297 Aws::Utils::DateTime m_creationDate{};
298
299 Aws::Utils::DateTime m_lastModifiedDate{};
300
301 Sbom m_sbom;
302
304
305 Aws::String m_recipe;
306
307 Aws::String m_requestId;
308 Aws::Http::HttpResponseCode m_HttpResponseCode;
309 bool m_packageVersionArnHasBeenSet = false;
310 bool m_packageNameHasBeenSet = false;
311 bool m_versionNameHasBeenSet = false;
312 bool m_descriptionHasBeenSet = false;
313 bool m_attributesHasBeenSet = false;
314 bool m_artifactHasBeenSet = false;
315 bool m_statusHasBeenSet = false;
316 bool m_errorReasonHasBeenSet = false;
317 bool m_creationDateHasBeenSet = false;
318 bool m_lastModifiedDateHasBeenSet = false;
319 bool m_sbomHasBeenSet = false;
320 bool m_sbomValidationStatusHasBeenSet = false;
321 bool m_recipeHasBeenSet = false;
322 bool m_requestIdHasBeenSet = false;
323};
324
325} // namespace Model
326} // namespace IoT
327} // namespace Aws
AWS_IOT_API GetPackageVersionResult()=default
Aws::Http::HttpResponseCode GetHttpResponseCode() const
const Aws::Utils::DateTime & GetCreationDate() const
GetPackageVersionResult & WithStatus(PackageVersionStatus value)
GetPackageVersionResult & WithSbomValidationStatus(SbomValidationStatus value)
GetPackageVersionResult & AddAttributes(AttributesKeyT &&key, AttributesValueT &&value)
AWS_IOT_API GetPackageVersionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetPackageVersionResult & WithLastModifiedDate(LastModifiedDateT &&value)
SbomValidationStatus GetSbomValidationStatus() const
void SetLastModifiedDate(LastModifiedDateT &&value)
GetPackageVersionResult & WithRecipe(RecipeT &&value)
GetPackageVersionResult & WithErrorReason(ErrorReasonT &&value)
GetPackageVersionResult & WithRequestId(RequestIdT &&value)
GetPackageVersionResult & WithAttributes(AttributesT &&value)
void SetSbomValidationStatus(SbomValidationStatus value)
GetPackageVersionResult & WithSbom(SbomT &&value)
const Aws::Utils::DateTime & GetLastModifiedDate() const
AWS_IOT_API GetPackageVersionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetPackageVersionResult & WithCreationDate(CreationDateT &&value)
const PackageVersionArtifact & GetArtifact() const
GetPackageVersionResult & WithArtifact(ArtifactT &&value)
void SetPackageVersionArn(PackageVersionArnT &&value)
GetPackageVersionResult & WithPackageVersionArn(PackageVersionArnT &&value)
GetPackageVersionResult & WithDescription(DescriptionT &&value)
const Aws::Map< Aws::String, Aws::String > & GetAttributes() const
GetPackageVersionResult & WithVersionName(VersionNameT &&value)
GetPackageVersionResult & WithPackageName(PackageNameT &&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