AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ListPackagesRequest.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/AllowPublish.h>
12#include <aws/codeartifact/model/AllowUpstream.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Http
18{
19 class URI;
20} //namespace Http
21namespace CodeArtifact
22{
23namespace Model
24{
25
29 {
30 public:
31 AWS_CODEARTIFACT_API ListPackagesRequest();
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "ListPackages"; }
38
39 AWS_CODEARTIFACT_API Aws::String SerializePayload() const override;
40
41 AWS_CODEARTIFACT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
42
43
45
49 inline const Aws::String& GetDomain() const{ return m_domain; }
50 inline bool DomainHasBeenSet() const { return m_domainHasBeenSet; }
51 inline void SetDomain(const Aws::String& value) { m_domainHasBeenSet = true; m_domain = value; }
52 inline void SetDomain(Aws::String&& value) { m_domainHasBeenSet = true; m_domain = std::move(value); }
53 inline void SetDomain(const char* value) { m_domainHasBeenSet = true; m_domain.assign(value); }
54 inline ListPackagesRequest& WithDomain(const Aws::String& value) { SetDomain(value); return *this;}
55 inline ListPackagesRequest& WithDomain(Aws::String&& value) { SetDomain(std::move(value)); return *this;}
56 inline ListPackagesRequest& WithDomain(const char* value) { SetDomain(value); return *this;}
58
60
64 inline const Aws::String& GetDomainOwner() const{ return m_domainOwner; }
65 inline bool DomainOwnerHasBeenSet() const { return m_domainOwnerHasBeenSet; }
66 inline void SetDomainOwner(const Aws::String& value) { m_domainOwnerHasBeenSet = true; m_domainOwner = value; }
67 inline void SetDomainOwner(Aws::String&& value) { m_domainOwnerHasBeenSet = true; m_domainOwner = std::move(value); }
68 inline void SetDomainOwner(const char* value) { m_domainOwnerHasBeenSet = true; m_domainOwner.assign(value); }
69 inline ListPackagesRequest& WithDomainOwner(const Aws::String& value) { SetDomainOwner(value); return *this;}
70 inline ListPackagesRequest& WithDomainOwner(Aws::String&& value) { SetDomainOwner(std::move(value)); return *this;}
71 inline ListPackagesRequest& WithDomainOwner(const char* value) { SetDomainOwner(value); return *this;}
73
75
78 inline const Aws::String& GetRepository() const{ return m_repository; }
79 inline bool RepositoryHasBeenSet() const { return m_repositoryHasBeenSet; }
80 inline void SetRepository(const Aws::String& value) { m_repositoryHasBeenSet = true; m_repository = value; }
81 inline void SetRepository(Aws::String&& value) { m_repositoryHasBeenSet = true; m_repository = std::move(value); }
82 inline void SetRepository(const char* value) { m_repositoryHasBeenSet = true; m_repository.assign(value); }
83 inline ListPackagesRequest& WithRepository(const Aws::String& value) { SetRepository(value); return *this;}
84 inline ListPackagesRequest& WithRepository(Aws::String&& value) { SetRepository(std::move(value)); return *this;}
85 inline ListPackagesRequest& WithRepository(const char* value) { SetRepository(value); return *this;}
87
89
93 inline const PackageFormat& GetFormat() const{ return m_format; }
94 inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
95 inline void SetFormat(const PackageFormat& value) { m_formatHasBeenSet = true; m_format = value; }
96 inline void SetFormat(PackageFormat&& value) { m_formatHasBeenSet = true; m_format = std::move(value); }
97 inline ListPackagesRequest& WithFormat(const PackageFormat& value) { SetFormat(value); return *this;}
98 inline ListPackagesRequest& WithFormat(PackageFormat&& value) { SetFormat(std::move(value)); return *this;}
100
102
115 inline const Aws::String& GetNamespace() const{ return m_namespace; }
116 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
117 inline void SetNamespace(const Aws::String& value) { m_namespaceHasBeenSet = true; m_namespace = value; }
118 inline void SetNamespace(Aws::String&& value) { m_namespaceHasBeenSet = true; m_namespace = std::move(value); }
119 inline void SetNamespace(const char* value) { m_namespaceHasBeenSet = true; m_namespace.assign(value); }
120 inline ListPackagesRequest& WithNamespace(const Aws::String& value) { SetNamespace(value); return *this;}
121 inline ListPackagesRequest& WithNamespace(Aws::String&& value) { SetNamespace(std::move(value)); return *this;}
122 inline ListPackagesRequest& WithNamespace(const char* value) { SetNamespace(value); return *this;}
124
126
130 inline const Aws::String& GetPackagePrefix() const{ return m_packagePrefix; }
131 inline bool PackagePrefixHasBeenSet() const { return m_packagePrefixHasBeenSet; }
132 inline void SetPackagePrefix(const Aws::String& value) { m_packagePrefixHasBeenSet = true; m_packagePrefix = value; }
133 inline void SetPackagePrefix(Aws::String&& value) { m_packagePrefixHasBeenSet = true; m_packagePrefix = std::move(value); }
134 inline void SetPackagePrefix(const char* value) { m_packagePrefixHasBeenSet = true; m_packagePrefix.assign(value); }
135 inline ListPackagesRequest& WithPackagePrefix(const Aws::String& value) { SetPackagePrefix(value); return *this;}
136 inline ListPackagesRequest& WithPackagePrefix(Aws::String&& value) { SetPackagePrefix(std::move(value)); return *this;}
137 inline ListPackagesRequest& WithPackagePrefix(const char* value) { SetPackagePrefix(value); return *this;}
139
141
144 inline int GetMaxResults() const{ return m_maxResults; }
145 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
146 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
147 inline ListPackagesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
149
151
155 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
156 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
157 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
158 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
159 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
160 inline ListPackagesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
161 inline ListPackagesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
162 inline ListPackagesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
164
166
172 inline const AllowPublish& GetPublish() const{ return m_publish; }
173 inline bool PublishHasBeenSet() const { return m_publishHasBeenSet; }
174 inline void SetPublish(const AllowPublish& value) { m_publishHasBeenSet = true; m_publish = value; }
175 inline void SetPublish(AllowPublish&& value) { m_publishHasBeenSet = true; m_publish = std::move(value); }
176 inline ListPackagesRequest& WithPublish(const AllowPublish& value) { SetPublish(value); return *this;}
177 inline ListPackagesRequest& WithPublish(AllowPublish&& value) { SetPublish(std::move(value)); return *this;}
179
181
187 inline const AllowUpstream& GetUpstream() const{ return m_upstream; }
188 inline bool UpstreamHasBeenSet() const { return m_upstreamHasBeenSet; }
189 inline void SetUpstream(const AllowUpstream& value) { m_upstreamHasBeenSet = true; m_upstream = value; }
190 inline void SetUpstream(AllowUpstream&& value) { m_upstreamHasBeenSet = true; m_upstream = std::move(value); }
191 inline ListPackagesRequest& WithUpstream(const AllowUpstream& value) { SetUpstream(value); return *this;}
192 inline ListPackagesRequest& WithUpstream(AllowUpstream&& value) { SetUpstream(std::move(value)); return *this;}
194 private:
195
196 Aws::String m_domain;
197 bool m_domainHasBeenSet = false;
198
199 Aws::String m_domainOwner;
200 bool m_domainOwnerHasBeenSet = false;
201
202 Aws::String m_repository;
203 bool m_repositoryHasBeenSet = false;
204
205 PackageFormat m_format;
206 bool m_formatHasBeenSet = false;
207
208 Aws::String m_namespace;
209 bool m_namespaceHasBeenSet = false;
210
211 Aws::String m_packagePrefix;
212 bool m_packagePrefixHasBeenSet = false;
213
214 int m_maxResults;
215 bool m_maxResultsHasBeenSet = false;
216
217 Aws::String m_nextToken;
218 bool m_nextTokenHasBeenSet = false;
219
220 AllowPublish m_publish;
221 bool m_publishHasBeenSet = false;
222
223 AllowUpstream m_upstream;
224 bool m_upstreamHasBeenSet = false;
225 };
226
227} // namespace Model
228} // namespace CodeArtifact
229} // namespace Aws
ListPackagesRequest & WithPackagePrefix(const Aws::String &value)
ListPackagesRequest & WithNextToken(const char *value)
ListPackagesRequest & WithPackagePrefix(Aws::String &&value)
ListPackagesRequest & WithDomainOwner(Aws::String &&value)
ListPackagesRequest & WithDomain(const char *value)
ListPackagesRequest & WithPackagePrefix(const char *value)
ListPackagesRequest & WithUpstream(AllowUpstream &&value)
ListPackagesRequest & WithNamespace(const Aws::String &value)
AWS_CODEARTIFACT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
ListPackagesRequest & WithRepository(Aws::String &&value)
ListPackagesRequest & WithNextToken(const Aws::String &value)
ListPackagesRequest & WithPublish(AllowPublish &&value)
ListPackagesRequest & WithFormat(PackageFormat &&value)
ListPackagesRequest & WithFormat(const PackageFormat &value)
AWS_CODEARTIFACT_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
ListPackagesRequest & WithMaxResults(int value)
ListPackagesRequest & WithDomainOwner(const char *value)
ListPackagesRequest & WithNextToken(Aws::String &&value)
ListPackagesRequest & WithDomainOwner(const Aws::String &value)
ListPackagesRequest & WithNamespace(const char *value)
ListPackagesRequest & WithPublish(const AllowPublish &value)
ListPackagesRequest & WithRepository(const char *value)
ListPackagesRequest & WithRepository(const Aws::String &value)
ListPackagesRequest & WithDomain(const Aws::String &value)
ListPackagesRequest & WithUpstream(const AllowUpstream &value)
ListPackagesRequest & WithDomain(Aws::String &&value)
ListPackagesRequest & WithNamespace(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String