AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DisposePackageVersionsRequest.h
1
6#pragma once
7#include <aws/codeartifact/CodeArtifactRequest.h>
8#include <aws/codeartifact/CodeArtifact_EXPORTS.h>
9#include <aws/codeartifact/model/PackageFormat.h>
10#include <aws/codeartifact/model/PackageVersionStatus.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Http {
19class URI;
20} // namespace Http
21namespace CodeArtifact {
22namespace Model {
23
27 public:
28 AWS_CODEARTIFACT_API DisposePackageVersionsRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "DisposePackageVersions"; }
35
36 AWS_CODEARTIFACT_API Aws::String SerializePayload() const override;
37
38 AWS_CODEARTIFACT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
39
41
45 inline const Aws::String& GetDomain() const { return m_domain; }
46 inline bool DomainHasBeenSet() const { return m_domainHasBeenSet; }
47 template <typename DomainT = Aws::String>
48 void SetDomain(DomainT&& value) {
49 m_domainHasBeenSet = true;
50 m_domain = std::forward<DomainT>(value);
51 }
52 template <typename DomainT = Aws::String>
54 SetDomain(std::forward<DomainT>(value));
55 return *this;
56 }
58
60
64 inline const Aws::String& GetDomainOwner() const { return m_domainOwner; }
65 inline bool DomainOwnerHasBeenSet() const { return m_domainOwnerHasBeenSet; }
66 template <typename DomainOwnerT = Aws::String>
67 void SetDomainOwner(DomainOwnerT&& value) {
68 m_domainOwnerHasBeenSet = true;
69 m_domainOwner = std::forward<DomainOwnerT>(value);
70 }
71 template <typename DomainOwnerT = Aws::String>
73 SetDomainOwner(std::forward<DomainOwnerT>(value));
74 return *this;
75 }
77
79
83 inline const Aws::String& GetRepository() const { return m_repository; }
84 inline bool RepositoryHasBeenSet() const { return m_repositoryHasBeenSet; }
85 template <typename RepositoryT = Aws::String>
86 void SetRepository(RepositoryT&& value) {
87 m_repositoryHasBeenSet = true;
88 m_repository = std::forward<RepositoryT>(value);
89 }
90 template <typename RepositoryT = Aws::String>
92 SetRepository(std::forward<RepositoryT>(value));
93 return *this;
94 }
96
98
102 inline PackageFormat GetFormat() const { return m_format; }
103 inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
104 inline void SetFormat(PackageFormat value) {
105 m_formatHasBeenSet = true;
106 m_format = value;
107 }
109 SetFormat(value);
110 return *this;
111 }
113
115
128 inline const Aws::String& GetNamespace() const { return m_namespace; }
129 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
130 template <typename NamespaceT = Aws::String>
131 void SetNamespace(NamespaceT&& value) {
132 m_namespaceHasBeenSet = true;
133 m_namespace = std::forward<NamespaceT>(value);
134 }
135 template <typename NamespaceT = Aws::String>
137 SetNamespace(std::forward<NamespaceT>(value));
138 return *this;
139 }
141
143
146 inline const Aws::String& GetPackage() const { return m_package; }
147 inline bool PackageHasBeenSet() const { return m_packageHasBeenSet; }
148 template <typename PackageT = Aws::String>
149 void SetPackage(PackageT&& value) {
150 m_packageHasBeenSet = true;
151 m_package = std::forward<PackageT>(value);
152 }
153 template <typename PackageT = Aws::String>
155 SetPackage(std::forward<PackageT>(value));
156 return *this;
157 }
159
161
164 inline const Aws::Vector<Aws::String>& GetVersions() const { return m_versions; }
165 inline bool VersionsHasBeenSet() const { return m_versionsHasBeenSet; }
166 template <typename VersionsT = Aws::Vector<Aws::String>>
167 void SetVersions(VersionsT&& value) {
168 m_versionsHasBeenSet = true;
169 m_versions = std::forward<VersionsT>(value);
170 }
171 template <typename VersionsT = Aws::Vector<Aws::String>>
173 SetVersions(std::forward<VersionsT>(value));
174 return *this;
175 }
176 template <typename VersionsT = Aws::String>
178 m_versionsHasBeenSet = true;
179 m_versions.emplace_back(std::forward<VersionsT>(value));
180 return *this;
181 }
183
185
188 inline const Aws::Map<Aws::String, Aws::String>& GetVersionRevisions() const { return m_versionRevisions; }
189 inline bool VersionRevisionsHasBeenSet() const { return m_versionRevisionsHasBeenSet; }
190 template <typename VersionRevisionsT = Aws::Map<Aws::String, Aws::String>>
191 void SetVersionRevisions(VersionRevisionsT&& value) {
192 m_versionRevisionsHasBeenSet = true;
193 m_versionRevisions = std::forward<VersionRevisionsT>(value);
194 }
195 template <typename VersionRevisionsT = Aws::Map<Aws::String, Aws::String>>
197 SetVersionRevisions(std::forward<VersionRevisionsT>(value));
198 return *this;
199 }
200 template <typename VersionRevisionsKeyT = Aws::String, typename VersionRevisionsValueT = Aws::String>
201 DisposePackageVersionsRequest& AddVersionRevisions(VersionRevisionsKeyT&& key, VersionRevisionsValueT&& value) {
202 m_versionRevisionsHasBeenSet = true;
203 m_versionRevisions.emplace(std::forward<VersionRevisionsKeyT>(key), std::forward<VersionRevisionsValueT>(value));
204 return *this;
205 }
207
209
212 inline PackageVersionStatus GetExpectedStatus() const { return m_expectedStatus; }
213 inline bool ExpectedStatusHasBeenSet() const { return m_expectedStatusHasBeenSet; }
215 m_expectedStatusHasBeenSet = true;
216 m_expectedStatus = value;
217 }
219 SetExpectedStatus(value);
220 return *this;
221 }
223 private:
224 Aws::String m_domain;
225
226 Aws::String m_domainOwner;
227
228 Aws::String m_repository;
229
231
232 Aws::String m_namespace;
233
234 Aws::String m_package;
235
236 Aws::Vector<Aws::String> m_versions;
237
238 Aws::Map<Aws::String, Aws::String> m_versionRevisions;
239
241 bool m_domainHasBeenSet = false;
242 bool m_domainOwnerHasBeenSet = false;
243 bool m_repositoryHasBeenSet = false;
244 bool m_formatHasBeenSet = false;
245 bool m_namespaceHasBeenSet = false;
246 bool m_packageHasBeenSet = false;
247 bool m_versionsHasBeenSet = false;
248 bool m_versionRevisionsHasBeenSet = false;
249 bool m_expectedStatusHasBeenSet = false;
250};
251
252} // namespace Model
253} // namespace CodeArtifact
254} // namespace Aws
DisposePackageVersionsRequest & WithVersionRevisions(VersionRevisionsT &&value)
DisposePackageVersionsRequest & AddVersionRevisions(VersionRevisionsKeyT &&key, VersionRevisionsValueT &&value)
AWS_CODEARTIFACT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
AWS_CODEARTIFACT_API DisposePackageVersionsRequest()=default
DisposePackageVersionsRequest & WithDomain(DomainT &&value)
DisposePackageVersionsRequest & WithDomainOwner(DomainOwnerT &&value)
const Aws::Map< Aws::String, Aws::String > & GetVersionRevisions() const
DisposePackageVersionsRequest & WithNamespace(NamespaceT &&value)
DisposePackageVersionsRequest & AddVersions(VersionsT &&value)
AWS_CODEARTIFACT_API Aws::String SerializePayload() const override
DisposePackageVersionsRequest & WithExpectedStatus(PackageVersionStatus value)
DisposePackageVersionsRequest & WithPackage(PackageT &&value)
DisposePackageVersionsRequest & WithVersions(VersionsT &&value)
DisposePackageVersionsRequest & WithFormat(PackageFormat value)
DisposePackageVersionsRequest & WithRepository(RepositoryT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector