AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetPackageVersionResult.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/iot/model/PackageVersionArtifact.h>
11#include <aws/iot/model/PackageVersionStatus.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/iot/model/Sbom.h>
14#include <aws/iot/model/SbomValidationStatus.h>
15#include <utility>
16
17namespace Aws
18{
19template<typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils
23{
24namespace Json
25{
26 class JsonValue;
27} // namespace Json
28} // namespace Utils
29namespace IoT
30{
31namespace Model
32{
34 {
35 public:
39
40
42
45 inline const Aws::String& GetPackageVersionArn() const{ return m_packageVersionArn; }
46 inline void SetPackageVersionArn(const Aws::String& value) { m_packageVersionArn = value; }
47 inline void SetPackageVersionArn(Aws::String&& value) { m_packageVersionArn = std::move(value); }
48 inline void SetPackageVersionArn(const char* value) { m_packageVersionArn.assign(value); }
50 inline GetPackageVersionResult& WithPackageVersionArn(Aws::String&& value) { SetPackageVersionArn(std::move(value)); return *this;}
51 inline GetPackageVersionResult& WithPackageVersionArn(const char* value) { SetPackageVersionArn(value); return *this;}
53
55
58 inline const Aws::String& GetPackageName() const{ return m_packageName; }
59 inline void SetPackageName(const Aws::String& value) { m_packageName = value; }
60 inline void SetPackageName(Aws::String&& value) { m_packageName = std::move(value); }
61 inline void SetPackageName(const char* value) { m_packageName.assign(value); }
62 inline GetPackageVersionResult& WithPackageName(const Aws::String& value) { SetPackageName(value); return *this;}
63 inline GetPackageVersionResult& WithPackageName(Aws::String&& value) { SetPackageName(std::move(value)); return *this;}
64 inline GetPackageVersionResult& WithPackageName(const char* value) { SetPackageName(value); return *this;}
66
68
71 inline const Aws::String& GetVersionName() const{ return m_versionName; }
72 inline void SetVersionName(const Aws::String& value) { m_versionName = value; }
73 inline void SetVersionName(Aws::String&& value) { m_versionName = std::move(value); }
74 inline void SetVersionName(const char* value) { m_versionName.assign(value); }
75 inline GetPackageVersionResult& WithVersionName(const Aws::String& value) { SetVersionName(value); return *this;}
76 inline GetPackageVersionResult& WithVersionName(Aws::String&& value) { SetVersionName(std::move(value)); return *this;}
77 inline GetPackageVersionResult& WithVersionName(const char* value) { SetVersionName(value); return *this;}
79
81
84 inline const Aws::String& GetDescription() const{ return m_description; }
85 inline void SetDescription(const Aws::String& value) { m_description = value; }
86 inline void SetDescription(Aws::String&& value) { m_description = std::move(value); }
87 inline void SetDescription(const char* value) { m_description.assign(value); }
88 inline GetPackageVersionResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
89 inline GetPackageVersionResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
90 inline GetPackageVersionResult& WithDescription(const char* value) { SetDescription(value); return *this;}
92
94
98 inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const{ return m_attributes; }
99 inline void SetAttributes(const Aws::Map<Aws::String, Aws::String>& value) { m_attributes = value; }
100 inline void SetAttributes(Aws::Map<Aws::String, Aws::String>&& value) { m_attributes = std::move(value); }
103 inline GetPackageVersionResult& AddAttributes(const Aws::String& key, const Aws::String& value) { m_attributes.emplace(key, value); return *this; }
104 inline GetPackageVersionResult& AddAttributes(Aws::String&& key, const Aws::String& value) { m_attributes.emplace(std::move(key), value); return *this; }
105 inline GetPackageVersionResult& AddAttributes(const Aws::String& key, Aws::String&& value) { m_attributes.emplace(key, std::move(value)); return *this; }
106 inline GetPackageVersionResult& AddAttributes(Aws::String&& key, Aws::String&& value) { m_attributes.emplace(std::move(key), std::move(value)); return *this; }
107 inline GetPackageVersionResult& AddAttributes(const char* key, Aws::String&& value) { m_attributes.emplace(key, std::move(value)); return *this; }
108 inline GetPackageVersionResult& AddAttributes(Aws::String&& key, const char* value) { m_attributes.emplace(std::move(key), value); return *this; }
109 inline GetPackageVersionResult& AddAttributes(const char* key, const char* value) { m_attributes.emplace(key, value); return *this; }
111
113
116 inline const PackageVersionArtifact& GetArtifact() const{ return m_artifact; }
117 inline void SetArtifact(const PackageVersionArtifact& value) { m_artifact = value; }
118 inline void SetArtifact(PackageVersionArtifact&& value) { m_artifact = std::move(value); }
119 inline GetPackageVersionResult& WithArtifact(const PackageVersionArtifact& value) { SetArtifact(value); return *this;}
120 inline GetPackageVersionResult& WithArtifact(PackageVersionArtifact&& value) { SetArtifact(std::move(value)); return *this;}
122
124
129 inline const PackageVersionStatus& GetStatus() const{ return m_status; }
130 inline void SetStatus(const PackageVersionStatus& value) { m_status = value; }
131 inline void SetStatus(PackageVersionStatus&& value) { m_status = std::move(value); }
132 inline GetPackageVersionResult& WithStatus(const PackageVersionStatus& value) { SetStatus(value); return *this;}
133 inline GetPackageVersionResult& WithStatus(PackageVersionStatus&& value) { SetStatus(std::move(value)); return *this;}
135
137
140 inline const Aws::String& GetErrorReason() const{ return m_errorReason; }
141 inline void SetErrorReason(const Aws::String& value) { m_errorReason = value; }
142 inline void SetErrorReason(Aws::String&& value) { m_errorReason = std::move(value); }
143 inline void SetErrorReason(const char* value) { m_errorReason.assign(value); }
144 inline GetPackageVersionResult& WithErrorReason(const Aws::String& value) { SetErrorReason(value); return *this;}
145 inline GetPackageVersionResult& WithErrorReason(Aws::String&& value) { SetErrorReason(std::move(value)); return *this;}
146 inline GetPackageVersionResult& WithErrorReason(const char* value) { SetErrorReason(value); return *this;}
148
150
153 inline const Aws::Utils::DateTime& GetCreationDate() const{ return m_creationDate; }
154 inline void SetCreationDate(const Aws::Utils::DateTime& value) { m_creationDate = value; }
155 inline void SetCreationDate(Aws::Utils::DateTime&& value) { m_creationDate = std::move(value); }
157 inline GetPackageVersionResult& WithCreationDate(Aws::Utils::DateTime&& value) { SetCreationDate(std::move(value)); return *this;}
159
161
164 inline const Aws::Utils::DateTime& GetLastModifiedDate() const{ return m_lastModifiedDate; }
165 inline void SetLastModifiedDate(const Aws::Utils::DateTime& value) { m_lastModifiedDate = value; }
166 inline void SetLastModifiedDate(Aws::Utils::DateTime&& value) { m_lastModifiedDate = std::move(value); }
170
172
175 inline const Sbom& GetSbom() const{ return m_sbom; }
176 inline void SetSbom(const Sbom& value) { m_sbom = value; }
177 inline void SetSbom(Sbom&& value) { m_sbom = std::move(value); }
178 inline GetPackageVersionResult& WithSbom(const Sbom& value) { SetSbom(value); return *this;}
179 inline GetPackageVersionResult& WithSbom(Sbom&& value) { SetSbom(std::move(value)); return *this;}
181
183
187 inline const SbomValidationStatus& GetSbomValidationStatus() const{ return m_sbomValidationStatus; }
188 inline void SetSbomValidationStatus(const SbomValidationStatus& value) { m_sbomValidationStatus = value; }
189 inline void SetSbomValidationStatus(SbomValidationStatus&& value) { m_sbomValidationStatus = std::move(value); }
193
195
199 inline const Aws::String& GetRecipe() const{ return m_recipe; }
200 inline void SetRecipe(const Aws::String& value) { m_recipe = value; }
201 inline void SetRecipe(Aws::String&& value) { m_recipe = std::move(value); }
202 inline void SetRecipe(const char* value) { m_recipe.assign(value); }
203 inline GetPackageVersionResult& WithRecipe(const Aws::String& value) { SetRecipe(value); return *this;}
204 inline GetPackageVersionResult& WithRecipe(Aws::String&& value) { SetRecipe(std::move(value)); return *this;}
205 inline GetPackageVersionResult& WithRecipe(const char* value) { SetRecipe(value); return *this;}
207
209
210 inline const Aws::String& GetRequestId() const{ return m_requestId; }
211 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
212 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
213 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
214 inline GetPackageVersionResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
215 inline GetPackageVersionResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
216 inline GetPackageVersionResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
218 private:
219
220 Aws::String m_packageVersionArn;
221
222 Aws::String m_packageName;
223
224 Aws::String m_versionName;
225
226 Aws::String m_description;
227
229
230 PackageVersionArtifact m_artifact;
231
232 PackageVersionStatus m_status;
233
234 Aws::String m_errorReason;
235
236 Aws::Utils::DateTime m_creationDate;
237
238 Aws::Utils::DateTime m_lastModifiedDate;
239
240 Sbom m_sbom;
241
242 SbomValidationStatus m_sbomValidationStatus;
243
244 Aws::String m_recipe;
245
246 Aws::String m_requestId;
247 };
248
249} // namespace Model
250} // namespace IoT
251} // namespace Aws
GetPackageVersionResult & WithStatus(PackageVersionStatus &&value)
void SetStatus(const PackageVersionStatus &value)
GetPackageVersionResult & WithDescription(Aws::String &&value)
GetPackageVersionResult & WithVersionName(const Aws::String &value)
const Aws::Utils::DateTime & GetCreationDate() const
void SetAttributes(Aws::Map< Aws::String, Aws::String > &&value)
GetPackageVersionResult & WithAttributes(Aws::Map< Aws::String, Aws::String > &&value)
void SetPackageVersionArn(const Aws::String &value)
GetPackageVersionResult & AddAttributes(const Aws::String &key, const Aws::String &value)
GetPackageVersionResult & AddAttributes(Aws::String &&key, Aws::String &&value)
GetPackageVersionResult & WithErrorReason(const char *value)
AWS_IOT_API GetPackageVersionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetPackageVersionResult & WithCreationDate(const Aws::Utils::DateTime &value)
void SetSbomValidationStatus(SbomValidationStatus &&value)
GetPackageVersionResult & WithArtifact(PackageVersionArtifact &&value)
GetPackageVersionResult & AddAttributes(const Aws::String &key, Aws::String &&value)
GetPackageVersionResult & WithPackageVersionArn(Aws::String &&value)
GetPackageVersionResult & WithStatus(const PackageVersionStatus &value)
GetPackageVersionResult & WithSbom(Sbom &&value)
GetPackageVersionResult & AddAttributes(const char *key, Aws::String &&value)
GetPackageVersionResult & WithVersionName(Aws::String &&value)
GetPackageVersionResult & WithCreationDate(Aws::Utils::DateTime &&value)
GetPackageVersionResult & WithArtifact(const PackageVersionArtifact &value)
GetPackageVersionResult & WithPackageVersionArn(const Aws::String &value)
GetPackageVersionResult & WithVersionName(const char *value)
GetPackageVersionResult & WithLastModifiedDate(Aws::Utils::DateTime &&value)
GetPackageVersionResult & WithSbomValidationStatus(const SbomValidationStatus &value)
GetPackageVersionResult & WithDescription(const Aws::String &value)
GetPackageVersionResult & WithSbom(const Sbom &value)
void SetDescription(const Aws::String &value)
const Aws::Utils::DateTime & GetLastModifiedDate() const
GetPackageVersionResult & AddAttributes(Aws::String &&key, const char *value)
GetPackageVersionResult & WithErrorReason(Aws::String &&value)
void SetAttributes(const Aws::Map< Aws::String, Aws::String > &value)
AWS_IOT_API GetPackageVersionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetPackageVersionResult & WithDescription(const char *value)
GetPackageVersionResult & WithRequestId(Aws::String &&value)
void SetStatus(PackageVersionStatus &&value)
void SetLastModifiedDate(const Aws::Utils::DateTime &value)
GetPackageVersionResult & WithLastModifiedDate(const Aws::Utils::DateTime &value)
GetPackageVersionResult & WithRequestId(const char *value)
GetPackageVersionResult & WithRequestId(const Aws::String &value)
GetPackageVersionResult & WithPackageVersionArn(const char *value)
GetPackageVersionResult & WithAttributes(const Aws::Map< Aws::String, Aws::String > &value)
GetPackageVersionResult & WithPackageName(const Aws::String &value)
GetPackageVersionResult & AddAttributes(Aws::String &&key, const Aws::String &value)
const PackageVersionArtifact & GetArtifact() const
void SetCreationDate(Aws::Utils::DateTime &&value)
GetPackageVersionResult & AddAttributes(const char *key, const char *value)
void SetVersionName(const Aws::String &value)
void SetSbomValidationStatus(const SbomValidationStatus &value)
GetPackageVersionResult & WithPackageName(const char *value)
void SetArtifact(const PackageVersionArtifact &value)
const SbomValidationStatus & GetSbomValidationStatus() const
const Aws::Map< Aws::String, Aws::String > & GetAttributes() const
void SetCreationDate(const Aws::Utils::DateTime &value)
void SetLastModifiedDate(Aws::Utils::DateTime &&value)
GetPackageVersionResult & WithRecipe(const char *value)
const PackageVersionStatus & GetStatus() const
void SetArtifact(PackageVersionArtifact &&value)
GetPackageVersionResult & WithSbomValidationStatus(SbomValidationStatus &&value)
GetPackageVersionResult & WithPackageName(Aws::String &&value)
GetPackageVersionResult & WithRecipe(Aws::String &&value)
GetPackageVersionResult & WithErrorReason(const Aws::String &value)
GetPackageVersionResult & WithRecipe(const Aws::String &value)
void SetPackageName(const Aws::String &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