AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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:
36 AWS_IOT_API GetPackageVersionResult() = default;
39
40
42
45 inline const Aws::String& GetPackageVersionArn() const { return m_packageVersionArn; }
46 template<typename PackageVersionArnT = Aws::String>
47 void SetPackageVersionArn(PackageVersionArnT&& value) { m_packageVersionArnHasBeenSet = true; m_packageVersionArn = std::forward<PackageVersionArnT>(value); }
48 template<typename PackageVersionArnT = Aws::String>
49 GetPackageVersionResult& WithPackageVersionArn(PackageVersionArnT&& value) { SetPackageVersionArn(std::forward<PackageVersionArnT>(value)); return *this;}
51
53
56 inline const Aws::String& GetPackageName() const { return m_packageName; }
57 template<typename PackageNameT = Aws::String>
58 void SetPackageName(PackageNameT&& value) { m_packageNameHasBeenSet = true; m_packageName = std::forward<PackageNameT>(value); }
59 template<typename PackageNameT = Aws::String>
60 GetPackageVersionResult& WithPackageName(PackageNameT&& value) { SetPackageName(std::forward<PackageNameT>(value)); return *this;}
62
64
67 inline const Aws::String& GetVersionName() const { return m_versionName; }
68 template<typename VersionNameT = Aws::String>
69 void SetVersionName(VersionNameT&& value) { m_versionNameHasBeenSet = true; m_versionName = std::forward<VersionNameT>(value); }
70 template<typename VersionNameT = Aws::String>
71 GetPackageVersionResult& WithVersionName(VersionNameT&& value) { SetVersionName(std::forward<VersionNameT>(value)); return *this;}
73
75
78 inline const Aws::String& GetDescription() const { return m_description; }
79 template<typename DescriptionT = Aws::String>
80 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
81 template<typename DescriptionT = Aws::String>
82 GetPackageVersionResult& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
84
86
90 inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const { return m_attributes; }
91 template<typename AttributesT = Aws::Map<Aws::String, Aws::String>>
92 void SetAttributes(AttributesT&& value) { m_attributesHasBeenSet = true; m_attributes = std::forward<AttributesT>(value); }
93 template<typename AttributesT = Aws::Map<Aws::String, Aws::String>>
94 GetPackageVersionResult& WithAttributes(AttributesT&& value) { SetAttributes(std::forward<AttributesT>(value)); return *this;}
95 template<typename AttributesKeyT = Aws::String, typename AttributesValueT = Aws::String>
96 GetPackageVersionResult& AddAttributes(AttributesKeyT&& key, AttributesValueT&& value) {
97 m_attributesHasBeenSet = true; m_attributes.emplace(std::forward<AttributesKeyT>(key), std::forward<AttributesValueT>(value)); return *this;
98 }
100
102
105 inline const PackageVersionArtifact& GetArtifact() const { return m_artifact; }
106 template<typename ArtifactT = PackageVersionArtifact>
107 void SetArtifact(ArtifactT&& value) { m_artifactHasBeenSet = true; m_artifact = std::forward<ArtifactT>(value); }
108 template<typename ArtifactT = PackageVersionArtifact>
109 GetPackageVersionResult& WithArtifact(ArtifactT&& value) { SetArtifact(std::forward<ArtifactT>(value)); return *this;}
111
113
118 inline PackageVersionStatus GetStatus() const { return m_status; }
119 inline void SetStatus(PackageVersionStatus value) { m_statusHasBeenSet = true; m_status = value; }
120 inline GetPackageVersionResult& WithStatus(PackageVersionStatus value) { SetStatus(value); return *this;}
122
124
127 inline const Aws::String& GetErrorReason() const { return m_errorReason; }
128 template<typename ErrorReasonT = Aws::String>
129 void SetErrorReason(ErrorReasonT&& value) { m_errorReasonHasBeenSet = true; m_errorReason = std::forward<ErrorReasonT>(value); }
130 template<typename ErrorReasonT = Aws::String>
131 GetPackageVersionResult& WithErrorReason(ErrorReasonT&& value) { SetErrorReason(std::forward<ErrorReasonT>(value)); return *this;}
133
135
138 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
139 template<typename CreationDateT = Aws::Utils::DateTime>
140 void SetCreationDate(CreationDateT&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::forward<CreationDateT>(value); }
141 template<typename CreationDateT = Aws::Utils::DateTime>
142 GetPackageVersionResult& WithCreationDate(CreationDateT&& value) { SetCreationDate(std::forward<CreationDateT>(value)); return *this;}
144
146
149 inline const Aws::Utils::DateTime& GetLastModifiedDate() const { return m_lastModifiedDate; }
150 template<typename LastModifiedDateT = Aws::Utils::DateTime>
151 void SetLastModifiedDate(LastModifiedDateT&& value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = std::forward<LastModifiedDateT>(value); }
152 template<typename LastModifiedDateT = Aws::Utils::DateTime>
153 GetPackageVersionResult& WithLastModifiedDate(LastModifiedDateT&& value) { SetLastModifiedDate(std::forward<LastModifiedDateT>(value)); return *this;}
155
157
160 inline const Sbom& GetSbom() const { return m_sbom; }
161 template<typename SbomT = Sbom>
162 void SetSbom(SbomT&& value) { m_sbomHasBeenSet = true; m_sbom = std::forward<SbomT>(value); }
163 template<typename SbomT = Sbom>
164 GetPackageVersionResult& WithSbom(SbomT&& value) { SetSbom(std::forward<SbomT>(value)); return *this;}
166
168
172 inline SbomValidationStatus GetSbomValidationStatus() const { return m_sbomValidationStatus; }
173 inline void SetSbomValidationStatus(SbomValidationStatus value) { m_sbomValidationStatusHasBeenSet = true; m_sbomValidationStatus = value; }
176
178
182 inline const Aws::String& GetRecipe() const { return m_recipe; }
183 template<typename RecipeT = Aws::String>
184 void SetRecipe(RecipeT&& value) { m_recipeHasBeenSet = true; m_recipe = std::forward<RecipeT>(value); }
185 template<typename RecipeT = Aws::String>
186 GetPackageVersionResult& WithRecipe(RecipeT&& value) { SetRecipe(std::forward<RecipeT>(value)); return *this;}
188
190
191 inline const Aws::String& GetRequestId() const { return m_requestId; }
192 template<typename RequestIdT = Aws::String>
193 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
194 template<typename RequestIdT = Aws::String>
195 GetPackageVersionResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
197 private:
198
199 Aws::String m_packageVersionArn;
200 bool m_packageVersionArnHasBeenSet = false;
201
202 Aws::String m_packageName;
203 bool m_packageNameHasBeenSet = false;
204
205 Aws::String m_versionName;
206 bool m_versionNameHasBeenSet = false;
207
208 Aws::String m_description;
209 bool m_descriptionHasBeenSet = false;
210
212 bool m_attributesHasBeenSet = false;
213
214 PackageVersionArtifact m_artifact;
215 bool m_artifactHasBeenSet = false;
216
218 bool m_statusHasBeenSet = false;
219
220 Aws::String m_errorReason;
221 bool m_errorReasonHasBeenSet = false;
222
223 Aws::Utils::DateTime m_creationDate{};
224 bool m_creationDateHasBeenSet = false;
225
226 Aws::Utils::DateTime m_lastModifiedDate{};
227 bool m_lastModifiedDateHasBeenSet = false;
228
229 Sbom m_sbom;
230 bool m_sbomHasBeenSet = false;
231
233 bool m_sbomValidationStatusHasBeenSet = false;
234
235 Aws::String m_recipe;
236 bool m_recipeHasBeenSet = false;
237
238 Aws::String m_requestId;
239 bool m_requestIdHasBeenSet = false;
240 };
241
242} // namespace Model
243} // namespace IoT
244} // namespace Aws
AWS_IOT_API GetPackageVersionResult()=default
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