AWS SDK for C++  1.9.153
AWS SDK for C++
ListPackageVersionAssetsResult.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 template<typename RESULT_TYPE>
17 class AmazonWebServiceResult;
18 
19 namespace Utils
20 {
21 namespace Json
22 {
23  class JsonValue;
24 } // namespace Json
25 } // namespace Utils
26 namespace CodeArtifact
27 {
28 namespace Model
29 {
31  {
32  public:
36 
37 
42  inline const PackageFormat& GetFormat() const{ return m_format; }
43 
48  inline void SetFormat(const PackageFormat& value) { m_format = value; }
49 
54  inline void SetFormat(PackageFormat&& value) { m_format = std::move(value); }
55 
60  inline ListPackageVersionAssetsResult& WithFormat(const PackageFormat& value) { SetFormat(value); return *this;}
61 
66  inline ListPackageVersionAssetsResult& WithFormat(PackageFormat&& value) { SetFormat(std::move(value)); return *this;}
67 
68 
77  inline const Aws::String& GetNamespace() const{ return m_namespace; }
78 
87  inline void SetNamespace(const Aws::String& value) { m_namespace = value; }
88 
97  inline void SetNamespace(Aws::String&& value) { m_namespace = std::move(value); }
98 
107  inline void SetNamespace(const char* value) { m_namespace.assign(value); }
108 
117  inline ListPackageVersionAssetsResult& WithNamespace(const Aws::String& value) { SetNamespace(value); return *this;}
118 
127  inline ListPackageVersionAssetsResult& WithNamespace(Aws::String&& value) { SetNamespace(std::move(value)); return *this;}
128 
137  inline ListPackageVersionAssetsResult& WithNamespace(const char* value) { SetNamespace(value); return *this;}
138 
139 
144  inline const Aws::String& GetPackage() const{ return m_package; }
145 
150  inline void SetPackage(const Aws::String& value) { m_package = value; }
151 
156  inline void SetPackage(Aws::String&& value) { m_package = std::move(value); }
157 
162  inline void SetPackage(const char* value) { m_package.assign(value); }
163 
168  inline ListPackageVersionAssetsResult& WithPackage(const Aws::String& value) { SetPackage(value); return *this;}
169 
174  inline ListPackageVersionAssetsResult& WithPackage(Aws::String&& value) { SetPackage(std::move(value)); return *this;}
175 
180  inline ListPackageVersionAssetsResult& WithPackage(const char* value) { SetPackage(value); return *this;}
181 
182 
186  inline const Aws::String& GetVersion() const{ return m_version; }
187 
191  inline void SetVersion(const Aws::String& value) { m_version = value; }
192 
196  inline void SetVersion(Aws::String&& value) { m_version = std::move(value); }
197 
201  inline void SetVersion(const char* value) { m_version.assign(value); }
202 
206  inline ListPackageVersionAssetsResult& WithVersion(const Aws::String& value) { SetVersion(value); return *this;}
207 
211  inline ListPackageVersionAssetsResult& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;}
212 
216  inline ListPackageVersionAssetsResult& WithVersion(const char* value) { SetVersion(value); return *this;}
217 
218 
222  inline const Aws::String& GetVersionRevision() const{ return m_versionRevision; }
223 
227  inline void SetVersionRevision(const Aws::String& value) { m_versionRevision = value; }
228 
232  inline void SetVersionRevision(Aws::String&& value) { m_versionRevision = std::move(value); }
233 
237  inline void SetVersionRevision(const char* value) { m_versionRevision.assign(value); }
238 
242  inline ListPackageVersionAssetsResult& WithVersionRevision(const Aws::String& value) { SetVersionRevision(value); return *this;}
243 
247  inline ListPackageVersionAssetsResult& WithVersionRevision(Aws::String&& value) { SetVersionRevision(std::move(value)); return *this;}
248 
252  inline ListPackageVersionAssetsResult& WithVersionRevision(const char* value) { SetVersionRevision(value); return *this;}
253 
254 
259  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
260 
265  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
266 
271  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
272 
277  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
278 
283  inline ListPackageVersionAssetsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
284 
289  inline ListPackageVersionAssetsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
290 
295  inline ListPackageVersionAssetsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
296 
297 
303  inline const Aws::Vector<AssetSummary>& GetAssets() const{ return m_assets; }
304 
310  inline void SetAssets(const Aws::Vector<AssetSummary>& value) { m_assets = value; }
311 
317  inline void SetAssets(Aws::Vector<AssetSummary>&& value) { m_assets = std::move(value); }
318 
324  inline ListPackageVersionAssetsResult& WithAssets(const Aws::Vector<AssetSummary>& value) { SetAssets(value); return *this;}
325 
331  inline ListPackageVersionAssetsResult& WithAssets(Aws::Vector<AssetSummary>&& value) { SetAssets(std::move(value)); return *this;}
332 
338  inline ListPackageVersionAssetsResult& AddAssets(const AssetSummary& value) { m_assets.push_back(value); return *this; }
339 
345  inline ListPackageVersionAssetsResult& AddAssets(AssetSummary&& value) { m_assets.push_back(std::move(value)); return *this; }
346 
347  private:
348 
349  PackageFormat m_format;
350 
351  Aws::String m_namespace;
352 
353  Aws::String m_package;
354 
355  Aws::String m_version;
356 
357  Aws::String m_versionRevision;
358 
359  Aws::String m_nextToken;
360 
361  Aws::Vector<AssetSummary> m_assets;
362  };
363 
364 } // namespace Model
365 } // namespace CodeArtifact
366 } // namespace Aws
Aws::CodeArtifact::Model::ListPackageVersionAssetsResult::WithNextToken
ListPackageVersionAssetsResult & WithNextToken(const Aws::String &value)
Definition: ListPackageVersionAssetsResult.h:283
Aws::CodeArtifact::Model::ListPackageVersionAssetsResult::ListPackageVersionAssetsResult
ListPackageVersionAssetsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
CodeArtifact_EXPORTS.h
Aws::CodeArtifact::Model::ListPackageVersionAssetsResult::WithPackage
ListPackageVersionAssetsResult & WithPackage(const char *value)
Definition: ListPackageVersionAssetsResult.h:180
Aws::CodeArtifact::Model::ListPackageVersionAssetsResult::SetNamespace
void SetNamespace(const char *value)
Definition: ListPackageVersionAssetsResult.h:107
Aws::CodeArtifact::Model::ListPackageVersionAssetsResult::SetFormat
void SetFormat(PackageFormat &&value)
Definition: ListPackageVersionAssetsResult.h:54
Aws::CodeArtifact::Model::ListPackageVersionAssetsResult::SetAssets
void SetAssets(const Aws::Vector< AssetSummary > &value)
Definition: ListPackageVersionAssetsResult.h:310
Aws::CodeArtifact::Model::ListPackageVersionAssetsResult::GetVersion
const Aws::String & GetVersion() const
Definition: ListPackageVersionAssetsResult.h:186
Aws::CodeArtifact::Model::ListPackageVersionAssetsResult::GetVersionRevision
const Aws::String & GetVersionRevision() const
Definition: ListPackageVersionAssetsResult.h:222
Aws::CodeArtifact::Model::ListPackageVersionAssetsResult::operator=
ListPackageVersionAssetsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::CodeArtifact::Model::ListPackageVersionAssetsResult::WithVersion
ListPackageVersionAssetsResult & WithVersion(const Aws::String &value)
Definition: ListPackageVersionAssetsResult.h:206
Aws::CodeArtifact::Model::ListPackageVersionAssetsResult::WithVersionRevision
ListPackageVersionAssetsResult & WithVersionRevision(Aws::String &&value)
Definition: ListPackageVersionAssetsResult.h:247
Aws::CodeArtifact::Model::ListPackageVersionAssetsResult::WithNextToken
ListPackageVersionAssetsResult & WithNextToken(const char *value)
Definition: ListPackageVersionAssetsResult.h:295
Aws::CodeArtifact::Model::ListPackageVersionAssetsResult::SetVersionRevision
void SetVersionRevision(Aws::String &&value)
Definition: ListPackageVersionAssetsResult.h:232
Aws::CodeArtifact::Model::ListPackageVersionAssetsResult::SetPackage
void SetPackage(Aws::String &&value)
Definition: ListPackageVersionAssetsResult.h:156
Aws::CodeArtifact::Model::ListPackageVersionAssetsResult::SetVersionRevision
void SetVersionRevision(const Aws::String &value)
Definition: ListPackageVersionAssetsResult.h:227
Aws::CodeArtifact::Model::ListPackageVersionAssetsResult::SetFormat
void SetFormat(const PackageFormat &value)
Definition: ListPackageVersionAssetsResult.h:48
Aws::CodeArtifact::Model::AssetSummary
Definition: AssetSummary.h:35
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::CodeArtifact::Model::ListPackageVersionAssetsResult::WithPackage
ListPackageVersionAssetsResult & WithPackage(const Aws::String &value)
Definition: ListPackageVersionAssetsResult.h:168
Aws::CodeArtifact::Model::ListPackageVersionAssetsResult::WithVersion
ListPackageVersionAssetsResult & WithVersion(Aws::String &&value)
Definition: ListPackageVersionAssetsResult.h:211
Aws::CodeArtifact::Model::ListPackageVersionAssetsResult::SetNextToken
void SetNextToken(const char *value)
Definition: ListPackageVersionAssetsResult.h:277
Aws::CodeArtifact::Model::ListPackageVersionAssetsResult::WithVersionRevision
ListPackageVersionAssetsResult & WithVersionRevision(const Aws::String &value)
Definition: ListPackageVersionAssetsResult.h:242
AssetSummary.h
Aws::CodeArtifact::Model::ListPackageVersionAssetsResult::WithVersionRevision
ListPackageVersionAssetsResult & WithVersionRevision(const char *value)
Definition: ListPackageVersionAssetsResult.h:252
Aws::CodeArtifact::Model::ListPackageVersionAssetsResult::WithNextToken
ListPackageVersionAssetsResult & WithNextToken(Aws::String &&value)
Definition: ListPackageVersionAssetsResult.h:289
Aws::CodeArtifact::Model::ListPackageVersionAssetsResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListPackageVersionAssetsResult.h:265
Aws::CodeArtifact::Model::ListPackageVersionAssetsResult::SetNamespace
void SetNamespace(const Aws::String &value)
Definition: ListPackageVersionAssetsResult.h:87
PackageFormat.h
Aws::CodeArtifact::Model::ListPackageVersionAssetsResult::SetPackage
void SetPackage(const Aws::String &value)
Definition: ListPackageVersionAssetsResult.h:150
Aws::CodeArtifact::Model::ListPackageVersionAssetsResult::WithPackage
ListPackageVersionAssetsResult & WithPackage(Aws::String &&value)
Definition: ListPackageVersionAssetsResult.h:174
AWSString.h
Aws::CodeArtifact::Model::ListPackageVersionAssetsResult::WithAssets
ListPackageVersionAssetsResult & WithAssets(Aws::Vector< AssetSummary > &&value)
Definition: ListPackageVersionAssetsResult.h:331
Aws::CodeArtifact::Model::ListPackageVersionAssetsResult::AddAssets
ListPackageVersionAssetsResult & AddAssets(AssetSummary &&value)
Definition: ListPackageVersionAssetsResult.h:345
Aws::CodeArtifact::Model::ListPackageVersionAssetsResult::WithVersion
ListPackageVersionAssetsResult & WithVersion(const char *value)
Definition: ListPackageVersionAssetsResult.h:216
Aws::CodeArtifact::Model::ListPackageVersionAssetsResult::WithNamespace
ListPackageVersionAssetsResult & WithNamespace(const char *value)
Definition: ListPackageVersionAssetsResult.h:137
Aws::CodeArtifact::Model::ListPackageVersionAssetsResult::GetFormat
const PackageFormat & GetFormat() const
Definition: ListPackageVersionAssetsResult.h:42
Aws::CodeArtifact::Model::ListPackageVersionAssetsResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListPackageVersionAssetsResult.h:271
Aws::CodeArtifact::Model::ListPackageVersionAssetsResult::GetNamespace
const Aws::String & GetNamespace() const
Definition: ListPackageVersionAssetsResult.h:77
AWS_CODEARTIFACT_API
#define AWS_CODEARTIFACT_API
Definition: CodeArtifact_EXPORTS.h:28
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::CodeArtifact::Model::ListPackageVersionAssetsResult::SetVersion
void SetVersion(const char *value)
Definition: ListPackageVersionAssetsResult.h:201
Aws::CodeArtifact::Model::PackageFormat
PackageFormat
Definition: PackageFormat.h:17
Aws::CodeArtifact::Model::ListPackageVersionAssetsResult::WithNamespace
ListPackageVersionAssetsResult & WithNamespace(const Aws::String &value)
Definition: ListPackageVersionAssetsResult.h:117
Aws::CodeArtifact::Model::ListPackageVersionAssetsResult::WithFormat
ListPackageVersionAssetsResult & WithFormat(const PackageFormat &value)
Definition: ListPackageVersionAssetsResult.h:60
Aws::CodeArtifact::Model::ListPackageVersionAssetsResult::SetAssets
void SetAssets(Aws::Vector< AssetSummary > &&value)
Definition: ListPackageVersionAssetsResult.h:317
Aws::CodeArtifact::Model::ListPackageVersionAssetsResult::GetPackage
const Aws::String & GetPackage() const
Definition: ListPackageVersionAssetsResult.h:144
Aws::CodeArtifact::Model::ListPackageVersionAssetsResult::WithNamespace
ListPackageVersionAssetsResult & WithNamespace(Aws::String &&value)
Definition: ListPackageVersionAssetsResult.h:127
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CodeArtifact::Model::ListPackageVersionAssetsResult::SetVersion
void SetVersion(Aws::String &&value)
Definition: ListPackageVersionAssetsResult.h:196
Aws::CodeArtifact::Model::ListPackageVersionAssetsResult::SetPackage
void SetPackage(const char *value)
Definition: ListPackageVersionAssetsResult.h:162
Aws::CodeArtifact::Model::ListPackageVersionAssetsResult::GetAssets
const Aws::Vector< AssetSummary > & GetAssets() const
Definition: ListPackageVersionAssetsResult.h:303
Aws::CodeArtifact::Model::ListPackageVersionAssetsResult::SetVersion
void SetVersion(const Aws::String &value)
Definition: ListPackageVersionAssetsResult.h:191
Aws::CodeArtifact::Model::ListPackageVersionAssetsResult::WithFormat
ListPackageVersionAssetsResult & WithFormat(PackageFormat &&value)
Definition: ListPackageVersionAssetsResult.h:66
Aws::CodeArtifact::Model::ListPackageVersionAssetsResult
Definition: ListPackageVersionAssetsResult.h:31
Aws::CodeArtifact::Model::ListPackageVersionAssetsResult::SetVersionRevision
void SetVersionRevision(const char *value)
Definition: ListPackageVersionAssetsResult.h:237
Aws::CodeArtifact::Model::ListPackageVersionAssetsResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListPackageVersionAssetsResult.h:259
Aws::CodeArtifact::Model::ListPackageVersionAssetsResult::SetNamespace
void SetNamespace(Aws::String &&value)
Definition: ListPackageVersionAssetsResult.h:97
Aws::CodeArtifact::Model::ListPackageVersionAssetsResult::WithAssets
ListPackageVersionAssetsResult & WithAssets(const Aws::Vector< AssetSummary > &value)
Definition: ListPackageVersionAssetsResult.h:324
Aws::CodeArtifact::Model::ListPackageVersionAssetsResult::AddAssets
ListPackageVersionAssetsResult & AddAssets(const AssetSummary &value)
Definition: ListPackageVersionAssetsResult.h:338
Aws::CodeArtifact::Model::ListPackageVersionAssetsResult::ListPackageVersionAssetsResult
ListPackageVersionAssetsResult()