AWS SDK for C++

AWS SDK for C++ Version 1.11.555

All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
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() = default;
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 template<typename DomainT = Aws::String>
53 void SetDomain(DomainT&& value) { m_domainHasBeenSet = true; m_domain = std::forward<DomainT>(value); }
54 template<typename DomainT = Aws::String>
55 ListPackageVersionsRequest& WithDomain(DomainT&& value) { SetDomain(std::forward<DomainT>(value)); return *this;}
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) { m_domainOwnerHasBeenSet = true; m_domainOwner = std::forward<DomainOwnerT>(value); }
67 template<typename DomainOwnerT = Aws::String>
68 ListPackageVersionsRequest& WithDomainOwner(DomainOwnerT&& value) { SetDomainOwner(std::forward<DomainOwnerT>(value)); return *this;}
70
72
76 inline const Aws::String& GetRepository() const { return m_repository; }
77 inline bool RepositoryHasBeenSet() const { return m_repositoryHasBeenSet; }
78 template<typename RepositoryT = Aws::String>
79 void SetRepository(RepositoryT&& value) { m_repositoryHasBeenSet = true; m_repository = std::forward<RepositoryT>(value); }
80 template<typename RepositoryT = Aws::String>
81 ListPackageVersionsRequest& WithRepository(RepositoryT&& value) { SetRepository(std::forward<RepositoryT>(value)); return *this;}
83
85
88 inline PackageFormat GetFormat() const { return m_format; }
89 inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
90 inline void SetFormat(PackageFormat value) { m_formatHasBeenSet = true; m_format = value; }
91 inline ListPackageVersionsRequest& WithFormat(PackageFormat value) { SetFormat(value); return *this;}
93
95
108 inline const Aws::String& GetNamespace() const { return m_namespace; }
109 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
110 template<typename NamespaceT = Aws::String>
111 void SetNamespace(NamespaceT&& value) { m_namespaceHasBeenSet = true; m_namespace = std::forward<NamespaceT>(value); }
112 template<typename NamespaceT = Aws::String>
113 ListPackageVersionsRequest& WithNamespace(NamespaceT&& value) { SetNamespace(std::forward<NamespaceT>(value)); return *this;}
115
117
120 inline const Aws::String& GetPackage() const { return m_package; }
121 inline bool PackageHasBeenSet() const { return m_packageHasBeenSet; }
122 template<typename PackageT = Aws::String>
123 void SetPackage(PackageT&& value) { m_packageHasBeenSet = true; m_package = std::forward<PackageT>(value); }
124 template<typename PackageT = Aws::String>
125 ListPackageVersionsRequest& WithPackage(PackageT&& value) { SetPackage(std::forward<PackageT>(value)); return *this;}
127
129
132 inline PackageVersionStatus GetStatus() const { return m_status; }
133 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
134 inline void SetStatus(PackageVersionStatus value) { m_statusHasBeenSet = true; m_status = value; }
137
139
142 inline PackageVersionSortType GetSortBy() const { return m_sortBy; }
143 inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
144 inline void SetSortBy(PackageVersionSortType value) { m_sortByHasBeenSet = true; m_sortBy = value; }
147
149
152 inline int GetMaxResults() const { return m_maxResults; }
153 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
154 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
155 inline ListPackageVersionsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
157
159
163 inline const Aws::String& GetNextToken() const { return m_nextToken; }
164 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
165 template<typename NextTokenT = Aws::String>
166 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
167 template<typename NextTokenT = Aws::String>
168 ListPackageVersionsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
170
172
176 inline PackageVersionOriginType GetOriginType() const { return m_originType; }
177 inline bool OriginTypeHasBeenSet() const { return m_originTypeHasBeenSet; }
178 inline void SetOriginType(PackageVersionOriginType value) { m_originTypeHasBeenSet = true; m_originType = value; }
181 private:
182
183 Aws::String m_domain;
184 bool m_domainHasBeenSet = false;
185
186 Aws::String m_domainOwner;
187 bool m_domainOwnerHasBeenSet = false;
188
189 Aws::String m_repository;
190 bool m_repositoryHasBeenSet = false;
191
193 bool m_formatHasBeenSet = false;
194
195 Aws::String m_namespace;
196 bool m_namespaceHasBeenSet = false;
197
198 Aws::String m_package;
199 bool m_packageHasBeenSet = false;
200
202 bool m_statusHasBeenSet = false;
203
205 bool m_sortByHasBeenSet = false;
206
207 int m_maxResults{0};
208 bool m_maxResultsHasBeenSet = false;
209
210 Aws::String m_nextToken;
211 bool m_nextTokenHasBeenSet = false;
212
214 bool m_originTypeHasBeenSet = false;
215 };
216
217} // namespace Model
218} // namespace CodeArtifact
219} // namespace Aws
AWS_CODEARTIFACT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
ListPackageVersionsRequest & WithNextToken(NextTokenT &&value)
ListPackageVersionsRequest & WithDomainOwner(DomainOwnerT &&value)
ListPackageVersionsRequest & WithStatus(PackageVersionStatus value)
ListPackageVersionsRequest & WithDomain(DomainT &&value)
ListPackageVersionsRequest & WithFormat(PackageFormat value)
ListPackageVersionsRequest & WithPackage(PackageT &&value)
ListPackageVersionsRequest & WithRepository(RepositoryT &&value)
AWS_CODEARTIFACT_API ListPackageVersionsRequest()=default
AWS_CODEARTIFACT_API Aws::String SerializePayload() const override
ListPackageVersionsRequest & WithOriginType(PackageVersionOriginType value)
ListPackageVersionsRequest & WithNamespace(NamespaceT &&value)
ListPackageVersionsRequest & WithSortBy(PackageVersionSortType value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String