AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ListPackagesRequest.h
1
6#pragma once
7#include <aws/codeartifact/CodeArtifactRequest.h>
8#include <aws/codeartifact/CodeArtifact_EXPORTS.h>
9#include <aws/codeartifact/model/AllowPublish.h>
10#include <aws/codeartifact/model/AllowUpstream.h>
11#include <aws/codeartifact/model/PackageFormat.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Http {
18class URI;
19} // namespace Http
20namespace CodeArtifact {
21namespace Model {
22
26 public:
27 AWS_CODEARTIFACT_API ListPackagesRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "ListPackages"; }
34
35 AWS_CODEARTIFACT_API Aws::String SerializePayload() const override;
36
37 AWS_CODEARTIFACT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
38
40
44 inline const Aws::String& GetDomain() const { return m_domain; }
45 inline bool DomainHasBeenSet() const { return m_domainHasBeenSet; }
46 template <typename DomainT = Aws::String>
47 void SetDomain(DomainT&& value) {
48 m_domainHasBeenSet = true;
49 m_domain = std::forward<DomainT>(value);
50 }
51 template <typename DomainT = Aws::String>
52 ListPackagesRequest& WithDomain(DomainT&& value) {
53 SetDomain(std::forward<DomainT>(value));
54 return *this;
55 }
57
59
63 inline const Aws::String& GetDomainOwner() const { return m_domainOwner; }
64 inline bool DomainOwnerHasBeenSet() const { return m_domainOwnerHasBeenSet; }
65 template <typename DomainOwnerT = Aws::String>
66 void SetDomainOwner(DomainOwnerT&& value) {
67 m_domainOwnerHasBeenSet = true;
68 m_domainOwner = std::forward<DomainOwnerT>(value);
69 }
70 template <typename DomainOwnerT = Aws::String>
71 ListPackagesRequest& WithDomainOwner(DomainOwnerT&& value) {
72 SetDomainOwner(std::forward<DomainOwnerT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::String& GetRepository() const { return m_repository; }
82 inline bool RepositoryHasBeenSet() const { return m_repositoryHasBeenSet; }
83 template <typename RepositoryT = Aws::String>
84 void SetRepository(RepositoryT&& value) {
85 m_repositoryHasBeenSet = true;
86 m_repository = std::forward<RepositoryT>(value);
87 }
88 template <typename RepositoryT = Aws::String>
89 ListPackagesRequest& WithRepository(RepositoryT&& value) {
90 SetRepository(std::forward<RepositoryT>(value));
91 return *this;
92 }
94
96
100 inline PackageFormat GetFormat() const { return m_format; }
101 inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
102 inline void SetFormat(PackageFormat value) {
103 m_formatHasBeenSet = true;
104 m_format = value;
105 }
107 SetFormat(value);
108 return *this;
109 }
111
113
126 inline const Aws::String& GetNamespace() const { return m_namespace; }
127 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
128 template <typename NamespaceT = Aws::String>
129 void SetNamespace(NamespaceT&& value) {
130 m_namespaceHasBeenSet = true;
131 m_namespace = std::forward<NamespaceT>(value);
132 }
133 template <typename NamespaceT = Aws::String>
134 ListPackagesRequest& WithNamespace(NamespaceT&& value) {
135 SetNamespace(std::forward<NamespaceT>(value));
136 return *this;
137 }
139
141
145 inline const Aws::String& GetPackagePrefix() const { return m_packagePrefix; }
146 inline bool PackagePrefixHasBeenSet() const { return m_packagePrefixHasBeenSet; }
147 template <typename PackagePrefixT = Aws::String>
148 void SetPackagePrefix(PackagePrefixT&& value) {
149 m_packagePrefixHasBeenSet = true;
150 m_packagePrefix = std::forward<PackagePrefixT>(value);
151 }
152 template <typename PackagePrefixT = Aws::String>
153 ListPackagesRequest& WithPackagePrefix(PackagePrefixT&& value) {
154 SetPackagePrefix(std::forward<PackagePrefixT>(value));
155 return *this;
156 }
158
160
163 inline int GetMaxResults() const { return m_maxResults; }
164 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
165 inline void SetMaxResults(int value) {
166 m_maxResultsHasBeenSet = true;
167 m_maxResults = value;
168 }
170 SetMaxResults(value);
171 return *this;
172 }
174
176
180 inline const Aws::String& GetNextToken() const { return m_nextToken; }
181 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
182 template <typename NextTokenT = Aws::String>
183 void SetNextToken(NextTokenT&& value) {
184 m_nextTokenHasBeenSet = true;
185 m_nextToken = std::forward<NextTokenT>(value);
186 }
187 template <typename NextTokenT = Aws::String>
188 ListPackagesRequest& WithNextToken(NextTokenT&& value) {
189 SetNextToken(std::forward<NextTokenT>(value));
190 return *this;
191 }
193
195
201 inline AllowPublish GetPublish() const { return m_publish; }
202 inline bool PublishHasBeenSet() const { return m_publishHasBeenSet; }
203 inline void SetPublish(AllowPublish value) {
204 m_publishHasBeenSet = true;
205 m_publish = value;
206 }
208 SetPublish(value);
209 return *this;
210 }
212
214
220 inline AllowUpstream GetUpstream() const { return m_upstream; }
221 inline bool UpstreamHasBeenSet() const { return m_upstreamHasBeenSet; }
222 inline void SetUpstream(AllowUpstream value) {
223 m_upstreamHasBeenSet = true;
224 m_upstream = value;
225 }
227 SetUpstream(value);
228 return *this;
229 }
231 private:
232 Aws::String m_domain;
233
234 Aws::String m_domainOwner;
235
236 Aws::String m_repository;
237
239
240 Aws::String m_namespace;
241
242 Aws::String m_packagePrefix;
243
244 int m_maxResults{0};
245
246 Aws::String m_nextToken;
247
249
251 bool m_domainHasBeenSet = false;
252 bool m_domainOwnerHasBeenSet = false;
253 bool m_repositoryHasBeenSet = false;
254 bool m_formatHasBeenSet = false;
255 bool m_namespaceHasBeenSet = false;
256 bool m_packagePrefixHasBeenSet = false;
257 bool m_maxResultsHasBeenSet = false;
258 bool m_nextTokenHasBeenSet = false;
259 bool m_publishHasBeenSet = false;
260 bool m_upstreamHasBeenSet = false;
261};
262
263} // namespace Model
264} // namespace CodeArtifact
265} // namespace Aws
ListPackagesRequest & WithFormat(PackageFormat value)
ListPackagesRequest & WithUpstream(AllowUpstream value)
ListPackagesRequest & WithRepository(RepositoryT &&value)
AWS_CODEARTIFACT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
ListPackagesRequest & WithDomainOwner(DomainOwnerT &&value)
AWS_CODEARTIFACT_API ListPackagesRequest()=default
AWS_CODEARTIFACT_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
ListPackagesRequest & WithNextToken(NextTokenT &&value)
ListPackagesRequest & WithMaxResults(int value)
ListPackagesRequest & WithDomain(DomainT &&value)
ListPackagesRequest & WithPublish(AllowPublish value)
ListPackagesRequest & WithNamespace(NamespaceT &&value)
ListPackagesRequest & WithPackagePrefix(PackagePrefixT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String