AWS SDK for C++

AWS SDK for C++ Version 1.11.553

All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
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() = default;
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 template<typename DomainT = Aws::String>
52 void SetDomain(DomainT&& value) { m_domainHasBeenSet = true; m_domain = std::forward<DomainT>(value); }
53 template<typename DomainT = Aws::String>
54 ListPackagesRequest& WithDomain(DomainT&& value) { SetDomain(std::forward<DomainT>(value)); return *this;}
56
58
62 inline const Aws::String& GetDomainOwner() const { return m_domainOwner; }
63 inline bool DomainOwnerHasBeenSet() const { return m_domainOwnerHasBeenSet; }
64 template<typename DomainOwnerT = Aws::String>
65 void SetDomainOwner(DomainOwnerT&& value) { m_domainOwnerHasBeenSet = true; m_domainOwner = std::forward<DomainOwnerT>(value); }
66 template<typename DomainOwnerT = Aws::String>
67 ListPackagesRequest& WithDomainOwner(DomainOwnerT&& value) { SetDomainOwner(std::forward<DomainOwnerT>(value)); return *this;}
69
71
74 inline const Aws::String& GetRepository() const { return m_repository; }
75 inline bool RepositoryHasBeenSet() const { return m_repositoryHasBeenSet; }
76 template<typename RepositoryT = Aws::String>
77 void SetRepository(RepositoryT&& value) { m_repositoryHasBeenSet = true; m_repository = std::forward<RepositoryT>(value); }
78 template<typename RepositoryT = Aws::String>
79 ListPackagesRequest& WithRepository(RepositoryT&& value) { SetRepository(std::forward<RepositoryT>(value)); return *this;}
81
83
87 inline PackageFormat GetFormat() const { return m_format; }
88 inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
89 inline void SetFormat(PackageFormat value) { m_formatHasBeenSet = true; m_format = value; }
90 inline ListPackagesRequest& WithFormat(PackageFormat value) { SetFormat(value); return *this;}
92
94
107 inline const Aws::String& GetNamespace() const { return m_namespace; }
108 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
109 template<typename NamespaceT = Aws::String>
110 void SetNamespace(NamespaceT&& value) { m_namespaceHasBeenSet = true; m_namespace = std::forward<NamespaceT>(value); }
111 template<typename NamespaceT = Aws::String>
112 ListPackagesRequest& WithNamespace(NamespaceT&& value) { SetNamespace(std::forward<NamespaceT>(value)); return *this;}
114
116
120 inline const Aws::String& GetPackagePrefix() const { return m_packagePrefix; }
121 inline bool PackagePrefixHasBeenSet() const { return m_packagePrefixHasBeenSet; }
122 template<typename PackagePrefixT = Aws::String>
123 void SetPackagePrefix(PackagePrefixT&& value) { m_packagePrefixHasBeenSet = true; m_packagePrefix = std::forward<PackagePrefixT>(value); }
124 template<typename PackagePrefixT = Aws::String>
125 ListPackagesRequest& WithPackagePrefix(PackagePrefixT&& value) { SetPackagePrefix(std::forward<PackagePrefixT>(value)); return *this;}
127
129
132 inline int GetMaxResults() const { return m_maxResults; }
133 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
134 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
135 inline ListPackagesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
137
139
143 inline const Aws::String& GetNextToken() const { return m_nextToken; }
144 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
145 template<typename NextTokenT = Aws::String>
146 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
147 template<typename NextTokenT = Aws::String>
148 ListPackagesRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
150
152
158 inline AllowPublish GetPublish() const { return m_publish; }
159 inline bool PublishHasBeenSet() const { return m_publishHasBeenSet; }
160 inline void SetPublish(AllowPublish value) { m_publishHasBeenSet = true; m_publish = value; }
161 inline ListPackagesRequest& WithPublish(AllowPublish value) { SetPublish(value); return *this;}
163
165
171 inline AllowUpstream GetUpstream() const { return m_upstream; }
172 inline bool UpstreamHasBeenSet() const { return m_upstreamHasBeenSet; }
173 inline void SetUpstream(AllowUpstream value) { m_upstreamHasBeenSet = true; m_upstream = value; }
174 inline ListPackagesRequest& WithUpstream(AllowUpstream value) { SetUpstream(value); return *this;}
176 private:
177
178 Aws::String m_domain;
179 bool m_domainHasBeenSet = false;
180
181 Aws::String m_domainOwner;
182 bool m_domainOwnerHasBeenSet = false;
183
184 Aws::String m_repository;
185 bool m_repositoryHasBeenSet = false;
186
188 bool m_formatHasBeenSet = false;
189
190 Aws::String m_namespace;
191 bool m_namespaceHasBeenSet = false;
192
193 Aws::String m_packagePrefix;
194 bool m_packagePrefixHasBeenSet = false;
195
196 int m_maxResults{0};
197 bool m_maxResultsHasBeenSet = false;
198
199 Aws::String m_nextToken;
200 bool m_nextTokenHasBeenSet = false;
201
203 bool m_publishHasBeenSet = false;
204
206 bool m_upstreamHasBeenSet = false;
207 };
208
209} // namespace Model
210} // namespace CodeArtifact
211} // 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