AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ListPackageVersionsRequest.h
1
6#pragma once
7#include <aws/codeartifact/CodeArtifact_EXPORTS.h>
8#include <aws/codeartifact/CodeArtifactRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/codeartifact/model/PackageFormat.h>
11#include <aws/codeartifact/model/PackageVersionStatus.h>
12#include <aws/codeartifact/model/PackageVersionSortType.h>
13#include <aws/codeartifact/model/PackageVersionOriginType.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Http
19{
20 class URI;
21} //namespace Http
22namespace CodeArtifact
23{
24namespace Model
25{
26
30 {
31 public:
32 AWS_CODEARTIFACT_API ListPackageVersionsRequest();
33
34 // Service request name is the Operation name which will send this request out,
35 // each operation should has unique request name, so that we can get operation's name from this request.
36 // Note: this is not true for response, multiple operations may have the same response name,
37 // so we can not get operation's name from response.
38 inline virtual const char* GetServiceRequestName() const override { return "ListPackageVersions"; }
39
40 AWS_CODEARTIFACT_API Aws::String SerializePayload() const override;
41
42 AWS_CODEARTIFACT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
43
44
46
50 inline const Aws::String& GetDomain() const{ return m_domain; }
51 inline bool DomainHasBeenSet() const { return m_domainHasBeenSet; }
52 inline void SetDomain(const Aws::String& value) { m_domainHasBeenSet = true; m_domain = value; }
53 inline void SetDomain(Aws::String&& value) { m_domainHasBeenSet = true; m_domain = std::move(value); }
54 inline void SetDomain(const char* value) { m_domainHasBeenSet = true; m_domain.assign(value); }
55 inline ListPackageVersionsRequest& WithDomain(const Aws::String& value) { SetDomain(value); return *this;}
56 inline ListPackageVersionsRequest& WithDomain(Aws::String&& value) { SetDomain(std::move(value)); return *this;}
57 inline ListPackageVersionsRequest& WithDomain(const char* value) { SetDomain(value); return *this;}
59
61
65 inline const Aws::String& GetDomainOwner() const{ return m_domainOwner; }
66 inline bool DomainOwnerHasBeenSet() const { return m_domainOwnerHasBeenSet; }
67 inline void SetDomainOwner(const Aws::String& value) { m_domainOwnerHasBeenSet = true; m_domainOwner = value; }
68 inline void SetDomainOwner(Aws::String&& value) { m_domainOwnerHasBeenSet = true; m_domainOwner = std::move(value); }
69 inline void SetDomainOwner(const char* value) { m_domainOwnerHasBeenSet = true; m_domainOwner.assign(value); }
70 inline ListPackageVersionsRequest& WithDomainOwner(const Aws::String& value) { SetDomainOwner(value); return *this;}
71 inline ListPackageVersionsRequest& WithDomainOwner(Aws::String&& value) { SetDomainOwner(std::move(value)); return *this;}
72 inline ListPackageVersionsRequest& WithDomainOwner(const char* value) { SetDomainOwner(value); return *this;}
74
76
80 inline const Aws::String& GetRepository() const{ return m_repository; }
81 inline bool RepositoryHasBeenSet() const { return m_repositoryHasBeenSet; }
82 inline void SetRepository(const Aws::String& value) { m_repositoryHasBeenSet = true; m_repository = value; }
83 inline void SetRepository(Aws::String&& value) { m_repositoryHasBeenSet = true; m_repository = std::move(value); }
84 inline void SetRepository(const char* value) { m_repositoryHasBeenSet = true; m_repository.assign(value); }
85 inline ListPackageVersionsRequest& WithRepository(const Aws::String& value) { SetRepository(value); return *this;}
86 inline ListPackageVersionsRequest& WithRepository(Aws::String&& value) { SetRepository(std::move(value)); return *this;}
87 inline ListPackageVersionsRequest& WithRepository(const char* value) { SetRepository(value); return *this;}
89
91
94 inline const PackageFormat& GetFormat() const{ return m_format; }
95 inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
96 inline void SetFormat(const PackageFormat& value) { m_formatHasBeenSet = true; m_format = value; }
97 inline void SetFormat(PackageFormat&& value) { m_formatHasBeenSet = true; m_format = std::move(value); }
98 inline ListPackageVersionsRequest& WithFormat(const PackageFormat& value) { SetFormat(value); return *this;}
99 inline ListPackageVersionsRequest& WithFormat(PackageFormat&& value) { SetFormat(std::move(value)); return *this;}
101
103
116 inline const Aws::String& GetNamespace() const{ return m_namespace; }
117 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
118 inline void SetNamespace(const Aws::String& value) { m_namespaceHasBeenSet = true; m_namespace = value; }
119 inline void SetNamespace(Aws::String&& value) { m_namespaceHasBeenSet = true; m_namespace = std::move(value); }
120 inline void SetNamespace(const char* value) { m_namespaceHasBeenSet = true; m_namespace.assign(value); }
121 inline ListPackageVersionsRequest& WithNamespace(const Aws::String& value) { SetNamespace(value); return *this;}
122 inline ListPackageVersionsRequest& WithNamespace(Aws::String&& value) { SetNamespace(std::move(value)); return *this;}
123 inline ListPackageVersionsRequest& WithNamespace(const char* value) { SetNamespace(value); return *this;}
125
127
130 inline const Aws::String& GetPackage() const{ return m_package; }
131 inline bool PackageHasBeenSet() const { return m_packageHasBeenSet; }
132 inline void SetPackage(const Aws::String& value) { m_packageHasBeenSet = true; m_package = value; }
133 inline void SetPackage(Aws::String&& value) { m_packageHasBeenSet = true; m_package = std::move(value); }
134 inline void SetPackage(const char* value) { m_packageHasBeenSet = true; m_package.assign(value); }
135 inline ListPackageVersionsRequest& WithPackage(const Aws::String& value) { SetPackage(value); return *this;}
136 inline ListPackageVersionsRequest& WithPackage(Aws::String&& value) { SetPackage(std::move(value)); return *this;}
137 inline ListPackageVersionsRequest& WithPackage(const char* value) { SetPackage(value); return *this;}
139
141
144 inline const PackageVersionStatus& GetStatus() const{ return m_status; }
145 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
146 inline void SetStatus(const PackageVersionStatus& value) { m_statusHasBeenSet = true; m_status = value; }
147 inline void SetStatus(PackageVersionStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
148 inline ListPackageVersionsRequest& WithStatus(const PackageVersionStatus& value) { SetStatus(value); return *this;}
149 inline ListPackageVersionsRequest& WithStatus(PackageVersionStatus&& value) { SetStatus(std::move(value)); return *this;}
151
153
156 inline const PackageVersionSortType& GetSortBy() const{ return m_sortBy; }
157 inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
158 inline void SetSortBy(const PackageVersionSortType& value) { m_sortByHasBeenSet = true; m_sortBy = value; }
159 inline void SetSortBy(PackageVersionSortType&& value) { m_sortByHasBeenSet = true; m_sortBy = std::move(value); }
160 inline ListPackageVersionsRequest& WithSortBy(const PackageVersionSortType& value) { SetSortBy(value); return *this;}
161 inline ListPackageVersionsRequest& WithSortBy(PackageVersionSortType&& value) { SetSortBy(std::move(value)); return *this;}
163
165
168 inline int GetMaxResults() const{ return m_maxResults; }
169 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
170 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
171 inline ListPackageVersionsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
173
175
179 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
180 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
181 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
182 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
183 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
184 inline ListPackageVersionsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
185 inline ListPackageVersionsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
186 inline ListPackageVersionsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
188
190
194 inline const PackageVersionOriginType& GetOriginType() const{ return m_originType; }
195 inline bool OriginTypeHasBeenSet() const { return m_originTypeHasBeenSet; }
196 inline void SetOriginType(const PackageVersionOriginType& value) { m_originTypeHasBeenSet = true; m_originType = value; }
197 inline void SetOriginType(PackageVersionOriginType&& value) { m_originTypeHasBeenSet = true; m_originType = std::move(value); }
199 inline ListPackageVersionsRequest& WithOriginType(PackageVersionOriginType&& value) { SetOriginType(std::move(value)); return *this;}
201 private:
202
203 Aws::String m_domain;
204 bool m_domainHasBeenSet = false;
205
206 Aws::String m_domainOwner;
207 bool m_domainOwnerHasBeenSet = false;
208
209 Aws::String m_repository;
210 bool m_repositoryHasBeenSet = false;
211
212 PackageFormat m_format;
213 bool m_formatHasBeenSet = false;
214
215 Aws::String m_namespace;
216 bool m_namespaceHasBeenSet = false;
217
218 Aws::String m_package;
219 bool m_packageHasBeenSet = false;
220
221 PackageVersionStatus m_status;
222 bool m_statusHasBeenSet = false;
223
224 PackageVersionSortType m_sortBy;
225 bool m_sortByHasBeenSet = false;
226
227 int m_maxResults;
228 bool m_maxResultsHasBeenSet = false;
229
230 Aws::String m_nextToken;
231 bool m_nextTokenHasBeenSet = false;
232
233 PackageVersionOriginType m_originType;
234 bool m_originTypeHasBeenSet = false;
235 };
236
237} // namespace Model
238} // namespace CodeArtifact
239} // namespace Aws
AWS_CODEARTIFACT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
ListPackageVersionsRequest & WithStatus(const PackageVersionStatus &value)
ListPackageVersionsRequest & WithOriginType(const PackageVersionOriginType &value)
ListPackageVersionsRequest & WithNextToken(const char *value)
ListPackageVersionsRequest & WithFormat(const PackageFormat &value)
ListPackageVersionsRequest & WithNextToken(Aws::String &&value)
ListPackageVersionsRequest & WithRepository(const char *value)
ListPackageVersionsRequest & WithNextToken(const Aws::String &value)
ListPackageVersionsRequest & WithFormat(PackageFormat &&value)
ListPackageVersionsRequest & WithRepository(const Aws::String &value)
ListPackageVersionsRequest & WithDomainOwner(Aws::String &&value)
ListPackageVersionsRequest & WithDomainOwner(const char *value)
ListPackageVersionsRequest & WithDomain(const Aws::String &value)
ListPackageVersionsRequest & WithNamespace(const Aws::String &value)
ListPackageVersionsRequest & WithPackage(const char *value)
void SetOriginType(const PackageVersionOriginType &value)
ListPackageVersionsRequest & WithDomain(Aws::String &&value)
ListPackageVersionsRequest & WithSortBy(const PackageVersionSortType &value)
ListPackageVersionsRequest & WithSortBy(PackageVersionSortType &&value)
ListPackageVersionsRequest & WithDomainOwner(const Aws::String &value)
ListPackageVersionsRequest & WithPackage(Aws::String &&value)
ListPackageVersionsRequest & WithRepository(Aws::String &&value)
ListPackageVersionsRequest & WithDomain(const char *value)
AWS_CODEARTIFACT_API Aws::String SerializePayload() const override
ListPackageVersionsRequest & WithOriginType(PackageVersionOriginType &&value)
ListPackageVersionsRequest & WithPackage(const Aws::String &value)
ListPackageVersionsRequest & WithStatus(PackageVersionStatus &&value)
ListPackageVersionsRequest & WithNamespace(Aws::String &&value)
ListPackageVersionsRequest & WithNamespace(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String