AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ListPackageVersionsResult.h
1
6#pragma once
7#include <aws/codeartifact/CodeArtifact_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/codeartifact/model/PackageFormat.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/codeartifact/model/PackageVersionSummary.h>
12#include <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace CodeArtifact
27{
28namespace Model
29{
31 {
32 public:
33 AWS_CODEARTIFACT_API ListPackageVersionsResult();
36
37
39
46 inline const Aws::String& GetDefaultDisplayVersion() const{ return m_defaultDisplayVersion; }
47 inline void SetDefaultDisplayVersion(const Aws::String& value) { m_defaultDisplayVersion = value; }
48 inline void SetDefaultDisplayVersion(Aws::String&& value) { m_defaultDisplayVersion = std::move(value); }
49 inline void SetDefaultDisplayVersion(const char* value) { m_defaultDisplayVersion.assign(value); }
52 inline ListPackageVersionsResult& WithDefaultDisplayVersion(const char* value) { SetDefaultDisplayVersion(value); return *this;}
54
56
59 inline const PackageFormat& GetFormat() const{ return m_format; }
60 inline void SetFormat(const PackageFormat& value) { m_format = value; }
61 inline void SetFormat(PackageFormat&& value) { m_format = std::move(value); }
62 inline ListPackageVersionsResult& WithFormat(const PackageFormat& value) { SetFormat(value); return *this;}
63 inline ListPackageVersionsResult& WithFormat(PackageFormat&& value) { SetFormat(std::move(value)); return *this;}
65
67
77 inline const Aws::String& GetNamespace() const{ return m_namespace; }
78 inline void SetNamespace(const Aws::String& value) { m_namespace = value; }
79 inline void SetNamespace(Aws::String&& value) { m_namespace = std::move(value); }
80 inline void SetNamespace(const char* value) { m_namespace.assign(value); }
81 inline ListPackageVersionsResult& WithNamespace(const Aws::String& value) { SetNamespace(value); return *this;}
82 inline ListPackageVersionsResult& WithNamespace(Aws::String&& value) { SetNamespace(std::move(value)); return *this;}
83 inline ListPackageVersionsResult& WithNamespace(const char* value) { SetNamespace(value); return *this;}
85
87
90 inline const Aws::String& GetPackage() const{ return m_package; }
91 inline void SetPackage(const Aws::String& value) { m_package = value; }
92 inline void SetPackage(Aws::String&& value) { m_package = std::move(value); }
93 inline void SetPackage(const char* value) { m_package.assign(value); }
94 inline ListPackageVersionsResult& WithPackage(const Aws::String& value) { SetPackage(value); return *this;}
95 inline ListPackageVersionsResult& WithPackage(Aws::String&& value) { SetPackage(std::move(value)); return *this;}
96 inline ListPackageVersionsResult& WithPackage(const char* value) { SetPackage(value); return *this;}
98
100
105 inline const Aws::Vector<PackageVersionSummary>& GetVersions() const{ return m_versions; }
106 inline void SetVersions(const Aws::Vector<PackageVersionSummary>& value) { m_versions = value; }
107 inline void SetVersions(Aws::Vector<PackageVersionSummary>&& value) { m_versions = std::move(value); }
110 inline ListPackageVersionsResult& AddVersions(const PackageVersionSummary& value) { m_versions.push_back(value); return *this; }
111 inline ListPackageVersionsResult& AddVersions(PackageVersionSummary&& value) { m_versions.push_back(std::move(value)); return *this; }
113
115
119 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
120 inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
121 inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
122 inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
123 inline ListPackageVersionsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
124 inline ListPackageVersionsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
125 inline ListPackageVersionsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
127
129
130 inline const Aws::String& GetRequestId() const{ return m_requestId; }
131 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
132 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
133 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
134 inline ListPackageVersionsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
135 inline ListPackageVersionsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
136 inline ListPackageVersionsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
138 private:
139
140 Aws::String m_defaultDisplayVersion;
141
142 PackageFormat m_format;
143
144 Aws::String m_namespace;
145
146 Aws::String m_package;
147
149
150 Aws::String m_nextToken;
151
152 Aws::String m_requestId;
153 };
154
155} // namespace Model
156} // namespace CodeArtifact
157} // namespace Aws
ListPackageVersionsResult & WithRequestId(const Aws::String &value)
ListPackageVersionsResult & WithDefaultDisplayVersion(const char *value)
ListPackageVersionsResult & AddVersions(const PackageVersionSummary &value)
void SetVersions(Aws::Vector< PackageVersionSummary > &&value)
ListPackageVersionsResult & WithFormat(PackageFormat &&value)
void SetVersions(const Aws::Vector< PackageVersionSummary > &value)
ListPackageVersionsResult & WithNextToken(const char *value)
ListPackageVersionsResult & WithRequestId(const char *value)
const Aws::Vector< PackageVersionSummary > & GetVersions() const
ListPackageVersionsResult & WithNamespace(const Aws::String &value)
AWS_CODEARTIFACT_API ListPackageVersionsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
ListPackageVersionsResult & WithRequestId(Aws::String &&value)
ListPackageVersionsResult & AddVersions(PackageVersionSummary &&value)
ListPackageVersionsResult & WithNextToken(Aws::String &&value)
ListPackageVersionsResult & WithPackage(const Aws::String &value)
ListPackageVersionsResult & WithDefaultDisplayVersion(Aws::String &&value)
ListPackageVersionsResult & WithDefaultDisplayVersion(const Aws::String &value)
ListPackageVersionsResult & WithPackage(Aws::String &&value)
ListPackageVersionsResult & WithVersions(Aws::Vector< PackageVersionSummary > &&value)
AWS_CODEARTIFACT_API ListPackageVersionsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
ListPackageVersionsResult & WithNamespace(Aws::String &&value)
ListPackageVersionsResult & WithVersions(const Aws::Vector< PackageVersionSummary > &value)
ListPackageVersionsResult & WithFormat(const PackageFormat &value)
ListPackageVersionsResult & WithNextToken(const Aws::String &value)
ListPackageVersionsResult & WithPackage(const char *value)
ListPackageVersionsResult & WithNamespace(const char *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