AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CopyPackageVersionsRequest.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/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.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 CopyPackageVersionsRequest() = 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 "CopyPackageVersions"; }
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>
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>
72 SetDomainOwner(std::forward<DomainOwnerT>(value));
73 return *this;
74 }
76
78
82 inline const Aws::String& GetSourceRepository() const { return m_sourceRepository; }
83 inline bool SourceRepositoryHasBeenSet() const { return m_sourceRepositoryHasBeenSet; }
84 template <typename SourceRepositoryT = Aws::String>
85 void SetSourceRepository(SourceRepositoryT&& value) {
86 m_sourceRepositoryHasBeenSet = true;
87 m_sourceRepository = std::forward<SourceRepositoryT>(value);
88 }
89 template <typename SourceRepositoryT = Aws::String>
91 SetSourceRepository(std::forward<SourceRepositoryT>(value));
92 return *this;
93 }
95
97
100 inline const Aws::String& GetDestinationRepository() const { return m_destinationRepository; }
101 inline bool DestinationRepositoryHasBeenSet() const { return m_destinationRepositoryHasBeenSet; }
102 template <typename DestinationRepositoryT = Aws::String>
103 void SetDestinationRepository(DestinationRepositoryT&& value) {
104 m_destinationRepositoryHasBeenSet = true;
105 m_destinationRepository = std::forward<DestinationRepositoryT>(value);
106 }
107 template <typename DestinationRepositoryT = Aws::String>
108 CopyPackageVersionsRequest& WithDestinationRepository(DestinationRepositoryT&& value) {
109 SetDestinationRepository(std::forward<DestinationRepositoryT>(value));
110 return *this;
111 }
113
115
118 inline PackageFormat GetFormat() const { return m_format; }
119 inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
120 inline void SetFormat(PackageFormat value) {
121 m_formatHasBeenSet = true;
122 m_format = value;
123 }
125 SetFormat(value);
126 return *this;
127 }
129
131
144 inline const Aws::String& GetNamespace() const { return m_namespace; }
145 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
146 template <typename NamespaceT = Aws::String>
147 void SetNamespace(NamespaceT&& value) {
148 m_namespaceHasBeenSet = true;
149 m_namespace = std::forward<NamespaceT>(value);
150 }
151 template <typename NamespaceT = Aws::String>
153 SetNamespace(std::forward<NamespaceT>(value));
154 return *this;
155 }
157
159
162 inline const Aws::String& GetPackage() const { return m_package; }
163 inline bool PackageHasBeenSet() const { return m_packageHasBeenSet; }
164 template <typename PackageT = Aws::String>
165 void SetPackage(PackageT&& value) {
166 m_packageHasBeenSet = true;
167 m_package = std::forward<PackageT>(value);
168 }
169 template <typename PackageT = Aws::String>
171 SetPackage(std::forward<PackageT>(value));
172 return *this;
173 }
175
177
182 inline const Aws::Vector<Aws::String>& GetVersions() const { return m_versions; }
183 inline bool VersionsHasBeenSet() const { return m_versionsHasBeenSet; }
184 template <typename VersionsT = Aws::Vector<Aws::String>>
185 void SetVersions(VersionsT&& value) {
186 m_versionsHasBeenSet = true;
187 m_versions = std::forward<VersionsT>(value);
188 }
189 template <typename VersionsT = Aws::Vector<Aws::String>>
191 SetVersions(std::forward<VersionsT>(value));
192 return *this;
193 }
194 template <typename VersionsT = Aws::String>
196 m_versionsHasBeenSet = true;
197 m_versions.emplace_back(std::forward<VersionsT>(value));
198 return *this;
199 }
201
203
210 inline const Aws::Map<Aws::String, Aws::String>& GetVersionRevisions() const { return m_versionRevisions; }
211 inline bool VersionRevisionsHasBeenSet() const { return m_versionRevisionsHasBeenSet; }
212 template <typename VersionRevisionsT = Aws::Map<Aws::String, Aws::String>>
213 void SetVersionRevisions(VersionRevisionsT&& value) {
214 m_versionRevisionsHasBeenSet = true;
215 m_versionRevisions = std::forward<VersionRevisionsT>(value);
216 }
217 template <typename VersionRevisionsT = Aws::Map<Aws::String, Aws::String>>
219 SetVersionRevisions(std::forward<VersionRevisionsT>(value));
220 return *this;
221 }
222 template <typename VersionRevisionsKeyT = Aws::String, typename VersionRevisionsValueT = Aws::String>
223 CopyPackageVersionsRequest& AddVersionRevisions(VersionRevisionsKeyT&& key, VersionRevisionsValueT&& value) {
224 m_versionRevisionsHasBeenSet = true;
225 m_versionRevisions.emplace(std::forward<VersionRevisionsKeyT>(key), std::forward<VersionRevisionsValueT>(value));
226 return *this;
227 }
229
231
238 inline bool GetAllowOverwrite() const { return m_allowOverwrite; }
239 inline bool AllowOverwriteHasBeenSet() const { return m_allowOverwriteHasBeenSet; }
240 inline void SetAllowOverwrite(bool value) {
241 m_allowOverwriteHasBeenSet = true;
242 m_allowOverwrite = value;
243 }
245 SetAllowOverwrite(value);
246 return *this;
247 }
249
251
258 inline bool GetIncludeFromUpstream() const { return m_includeFromUpstream; }
259 inline bool IncludeFromUpstreamHasBeenSet() const { return m_includeFromUpstreamHasBeenSet; }
260 inline void SetIncludeFromUpstream(bool value) {
261 m_includeFromUpstreamHasBeenSet = true;
262 m_includeFromUpstream = value;
263 }
266 return *this;
267 }
269 private:
270 Aws::String m_domain;
271
272 Aws::String m_domainOwner;
273
274 Aws::String m_sourceRepository;
275
276 Aws::String m_destinationRepository;
277
279
280 Aws::String m_namespace;
281
282 Aws::String m_package;
283
284 Aws::Vector<Aws::String> m_versions;
285
286 Aws::Map<Aws::String, Aws::String> m_versionRevisions;
287
288 bool m_allowOverwrite{false};
289
290 bool m_includeFromUpstream{false};
291 bool m_domainHasBeenSet = false;
292 bool m_domainOwnerHasBeenSet = false;
293 bool m_sourceRepositoryHasBeenSet = false;
294 bool m_destinationRepositoryHasBeenSet = false;
295 bool m_formatHasBeenSet = false;
296 bool m_namespaceHasBeenSet = false;
297 bool m_packageHasBeenSet = false;
298 bool m_versionsHasBeenSet = false;
299 bool m_versionRevisionsHasBeenSet = false;
300 bool m_allowOverwriteHasBeenSet = false;
301 bool m_includeFromUpstreamHasBeenSet = false;
302};
303
304} // namespace Model
305} // namespace CodeArtifact
306} // namespace Aws
CopyPackageVersionsRequest & WithVersionRevisions(VersionRevisionsT &&value)
const Aws::Vector< Aws::String > & GetVersions() const
CopyPackageVersionsRequest & WithFormat(PackageFormat value)
CopyPackageVersionsRequest & WithIncludeFromUpstream(bool value)
CopyPackageVersionsRequest & WithDomainOwner(DomainOwnerT &&value)
CopyPackageVersionsRequest & WithVersions(VersionsT &&value)
CopyPackageVersionsRequest & WithSourceRepository(SourceRepositoryT &&value)
CopyPackageVersionsRequest & WithPackage(PackageT &&value)
const Aws::Map< Aws::String, Aws::String > & GetVersionRevisions() const
CopyPackageVersionsRequest & WithDestinationRepository(DestinationRepositoryT &&value)
CopyPackageVersionsRequest & WithDomain(DomainT &&value)
AWS_CODEARTIFACT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
CopyPackageVersionsRequest & WithNamespace(NamespaceT &&value)
CopyPackageVersionsRequest & WithAllowOverwrite(bool value)
CopyPackageVersionsRequest & AddVersionRevisions(VersionRevisionsKeyT &&key, VersionRevisionsValueT &&value)
AWS_CODEARTIFACT_API CopyPackageVersionsRequest()=default
AWS_CODEARTIFACT_API Aws::String SerializePayload() const override
CopyPackageVersionsRequest & AddVersions(VersionsT &&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