AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CopyPackageVersionsRequest.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/core/utils/memory/stl/AWSVector.h>
12#include <aws/core/utils/memory/stl/AWSMap.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 CopyPackageVersionsRequest();
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 "CopyPackageVersions"; }
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 CopyPackageVersionsRequest& WithDomain(const Aws::String& value) { SetDomain(value); return *this;}
55 inline CopyPackageVersionsRequest& WithDomain(Aws::String&& value) { SetDomain(std::move(value)); return *this;}
56 inline CopyPackageVersionsRequest& 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 CopyPackageVersionsRequest& WithDomainOwner(const Aws::String& value) { SetDomainOwner(value); return *this;}
70 inline CopyPackageVersionsRequest& WithDomainOwner(Aws::String&& value) { SetDomainOwner(std::move(value)); return *this;}
71 inline CopyPackageVersionsRequest& WithDomainOwner(const char* value) { SetDomainOwner(value); return *this;}
73
75
79 inline const Aws::String& GetSourceRepository() const{ return m_sourceRepository; }
80 inline bool SourceRepositoryHasBeenSet() const { return m_sourceRepositoryHasBeenSet; }
81 inline void SetSourceRepository(const Aws::String& value) { m_sourceRepositoryHasBeenSet = true; m_sourceRepository = value; }
82 inline void SetSourceRepository(Aws::String&& value) { m_sourceRepositoryHasBeenSet = true; m_sourceRepository = std::move(value); }
83 inline void SetSourceRepository(const char* value) { m_sourceRepositoryHasBeenSet = true; m_sourceRepository.assign(value); }
85 inline CopyPackageVersionsRequest& WithSourceRepository(Aws::String&& value) { SetSourceRepository(std::move(value)); return *this;}
86 inline CopyPackageVersionsRequest& WithSourceRepository(const char* value) { SetSourceRepository(value); return *this;}
88
90
93 inline const Aws::String& GetDestinationRepository() const{ return m_destinationRepository; }
94 inline bool DestinationRepositoryHasBeenSet() const { return m_destinationRepositoryHasBeenSet; }
95 inline void SetDestinationRepository(const Aws::String& value) { m_destinationRepositoryHasBeenSet = true; m_destinationRepository = value; }
96 inline void SetDestinationRepository(Aws::String&& value) { m_destinationRepositoryHasBeenSet = true; m_destinationRepository = std::move(value); }
97 inline void SetDestinationRepository(const char* value) { m_destinationRepositoryHasBeenSet = true; m_destinationRepository.assign(value); }
100 inline CopyPackageVersionsRequest& WithDestinationRepository(const char* value) { SetDestinationRepository(value); return *this;}
102
104
107 inline const PackageFormat& GetFormat() const{ return m_format; }
108 inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
109 inline void SetFormat(const PackageFormat& value) { m_formatHasBeenSet = true; m_format = value; }
110 inline void SetFormat(PackageFormat&& value) { m_formatHasBeenSet = true; m_format = std::move(value); }
111 inline CopyPackageVersionsRequest& WithFormat(const PackageFormat& value) { SetFormat(value); return *this;}
112 inline CopyPackageVersionsRequest& WithFormat(PackageFormat&& value) { SetFormat(std::move(value)); return *this;}
114
116
129 inline const Aws::String& GetNamespace() const{ return m_namespace; }
130 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
131 inline void SetNamespace(const Aws::String& value) { m_namespaceHasBeenSet = true; m_namespace = value; }
132 inline void SetNamespace(Aws::String&& value) { m_namespaceHasBeenSet = true; m_namespace = std::move(value); }
133 inline void SetNamespace(const char* value) { m_namespaceHasBeenSet = true; m_namespace.assign(value); }
134 inline CopyPackageVersionsRequest& WithNamespace(const Aws::String& value) { SetNamespace(value); return *this;}
135 inline CopyPackageVersionsRequest& WithNamespace(Aws::String&& value) { SetNamespace(std::move(value)); return *this;}
136 inline CopyPackageVersionsRequest& WithNamespace(const char* value) { SetNamespace(value); return *this;}
138
140
143 inline const Aws::String& GetPackage() const{ return m_package; }
144 inline bool PackageHasBeenSet() const { return m_packageHasBeenSet; }
145 inline void SetPackage(const Aws::String& value) { m_packageHasBeenSet = true; m_package = value; }
146 inline void SetPackage(Aws::String&& value) { m_packageHasBeenSet = true; m_package = std::move(value); }
147 inline void SetPackage(const char* value) { m_packageHasBeenSet = true; m_package.assign(value); }
148 inline CopyPackageVersionsRequest& WithPackage(const Aws::String& value) { SetPackage(value); return *this;}
149 inline CopyPackageVersionsRequest& WithPackage(Aws::String&& value) { SetPackage(std::move(value)); return *this;}
150 inline CopyPackageVersionsRequest& WithPackage(const char* value) { SetPackage(value); return *this;}
152
154
159 inline const Aws::Vector<Aws::String>& GetVersions() const{ return m_versions; }
160 inline bool VersionsHasBeenSet() const { return m_versionsHasBeenSet; }
161 inline void SetVersions(const Aws::Vector<Aws::String>& value) { m_versionsHasBeenSet = true; m_versions = value; }
162 inline void SetVersions(Aws::Vector<Aws::String>&& value) { m_versionsHasBeenSet = true; m_versions = std::move(value); }
164 inline CopyPackageVersionsRequest& WithVersions(Aws::Vector<Aws::String>&& value) { SetVersions(std::move(value)); return *this;}
165 inline CopyPackageVersionsRequest& AddVersions(const Aws::String& value) { m_versionsHasBeenSet = true; m_versions.push_back(value); return *this; }
166 inline CopyPackageVersionsRequest& AddVersions(Aws::String&& value) { m_versionsHasBeenSet = true; m_versions.push_back(std::move(value)); return *this; }
167 inline CopyPackageVersionsRequest& AddVersions(const char* value) { m_versionsHasBeenSet = true; m_versions.push_back(value); return *this; }
169
171
178 inline const Aws::Map<Aws::String, Aws::String>& GetVersionRevisions() const{ return m_versionRevisions; }
179 inline bool VersionRevisionsHasBeenSet() const { return m_versionRevisionsHasBeenSet; }
180 inline void SetVersionRevisions(const Aws::Map<Aws::String, Aws::String>& value) { m_versionRevisionsHasBeenSet = true; m_versionRevisions = value; }
181 inline void SetVersionRevisions(Aws::Map<Aws::String, Aws::String>&& value) { m_versionRevisionsHasBeenSet = true; m_versionRevisions = std::move(value); }
184 inline CopyPackageVersionsRequest& AddVersionRevisions(const Aws::String& key, const Aws::String& value) { m_versionRevisionsHasBeenSet = true; m_versionRevisions.emplace(key, value); return *this; }
185 inline CopyPackageVersionsRequest& AddVersionRevisions(Aws::String&& key, const Aws::String& value) { m_versionRevisionsHasBeenSet = true; m_versionRevisions.emplace(std::move(key), value); return *this; }
186 inline CopyPackageVersionsRequest& AddVersionRevisions(const Aws::String& key, Aws::String&& value) { m_versionRevisionsHasBeenSet = true; m_versionRevisions.emplace(key, std::move(value)); return *this; }
187 inline CopyPackageVersionsRequest& AddVersionRevisions(Aws::String&& key, Aws::String&& value) { m_versionRevisionsHasBeenSet = true; m_versionRevisions.emplace(std::move(key), std::move(value)); return *this; }
188 inline CopyPackageVersionsRequest& AddVersionRevisions(const char* key, Aws::String&& value) { m_versionRevisionsHasBeenSet = true; m_versionRevisions.emplace(key, std::move(value)); return *this; }
189 inline CopyPackageVersionsRequest& AddVersionRevisions(Aws::String&& key, const char* value) { m_versionRevisionsHasBeenSet = true; m_versionRevisions.emplace(std::move(key), value); return *this; }
190 inline CopyPackageVersionsRequest& AddVersionRevisions(const char* key, const char* value) { m_versionRevisionsHasBeenSet = true; m_versionRevisions.emplace(key, value); return *this; }
192
194
201 inline bool GetAllowOverwrite() const{ return m_allowOverwrite; }
202 inline bool AllowOverwriteHasBeenSet() const { return m_allowOverwriteHasBeenSet; }
203 inline void SetAllowOverwrite(bool value) { m_allowOverwriteHasBeenSet = true; m_allowOverwrite = value; }
204 inline CopyPackageVersionsRequest& WithAllowOverwrite(bool value) { SetAllowOverwrite(value); return *this;}
206
208
215 inline bool GetIncludeFromUpstream() const{ return m_includeFromUpstream; }
216 inline bool IncludeFromUpstreamHasBeenSet() const { return m_includeFromUpstreamHasBeenSet; }
217 inline void SetIncludeFromUpstream(bool value) { m_includeFromUpstreamHasBeenSet = true; m_includeFromUpstream = value; }
220 private:
221
222 Aws::String m_domain;
223 bool m_domainHasBeenSet = false;
224
225 Aws::String m_domainOwner;
226 bool m_domainOwnerHasBeenSet = false;
227
228 Aws::String m_sourceRepository;
229 bool m_sourceRepositoryHasBeenSet = false;
230
231 Aws::String m_destinationRepository;
232 bool m_destinationRepositoryHasBeenSet = false;
233
234 PackageFormat m_format;
235 bool m_formatHasBeenSet = false;
236
237 Aws::String m_namespace;
238 bool m_namespaceHasBeenSet = false;
239
240 Aws::String m_package;
241 bool m_packageHasBeenSet = false;
242
243 Aws::Vector<Aws::String> m_versions;
244 bool m_versionsHasBeenSet = false;
245
246 Aws::Map<Aws::String, Aws::String> m_versionRevisions;
247 bool m_versionRevisionsHasBeenSet = false;
248
249 bool m_allowOverwrite;
250 bool m_allowOverwriteHasBeenSet = false;
251
252 bool m_includeFromUpstream;
253 bool m_includeFromUpstreamHasBeenSet = false;
254 };
255
256} // namespace Model
257} // namespace CodeArtifact
258} // namespace Aws
CopyPackageVersionsRequest & WithDomainOwner(const Aws::String &value)
const Aws::Vector< Aws::String > & GetVersions() const
CopyPackageVersionsRequest & WithDomainOwner(Aws::String &&value)
CopyPackageVersionsRequest & WithIncludeFromUpstream(bool value)
CopyPackageVersionsRequest & WithPackage(const Aws::String &value)
CopyPackageVersionsRequest & AddVersionRevisions(Aws::String &&key, const char *value)
CopyPackageVersionsRequest & WithDestinationRepository(const Aws::String &value)
CopyPackageVersionsRequest & AddVersionRevisions(Aws::String &&key, const Aws::String &value)
CopyPackageVersionsRequest & WithDomain(const char *value)
CopyPackageVersionsRequest & AddVersionRevisions(const Aws::String &key, const Aws::String &value)
CopyPackageVersionsRequest & WithDomainOwner(const char *value)
CopyPackageVersionsRequest & WithNamespace(const char *value)
CopyPackageVersionsRequest & WithVersionRevisions(Aws::Map< Aws::String, Aws::String > &&value)
CopyPackageVersionsRequest & WithNamespace(const Aws::String &value)
CopyPackageVersionsRequest & WithVersions(const Aws::Vector< Aws::String > &value)
CopyPackageVersionsRequest & AddVersions(Aws::String &&value)
CopyPackageVersionsRequest & AddVersionRevisions(Aws::String &&key, Aws::String &&value)
CopyPackageVersionsRequest & WithDomain(const Aws::String &value)
CopyPackageVersionsRequest & WithSourceRepository(Aws::String &&value)
CopyPackageVersionsRequest & WithVersionRevisions(const Aws::Map< Aws::String, Aws::String > &value)
CopyPackageVersionsRequest & AddVersionRevisions(const char *key, Aws::String &&value)
CopyPackageVersionsRequest & WithPackage(const char *value)
const Aws::Map< Aws::String, Aws::String > & GetVersionRevisions() const
CopyPackageVersionsRequest & AddVersionRevisions(const char *key, const char *value)
CopyPackageVersionsRequest & WithDestinationRepository(const char *value)
CopyPackageVersionsRequest & AddVersionRevisions(const Aws::String &key, Aws::String &&value)
CopyPackageVersionsRequest & WithSourceRepository(const char *value)
AWS_CODEARTIFACT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
CopyPackageVersionsRequest & WithAllowOverwrite(bool value)
CopyPackageVersionsRequest & WithDomain(Aws::String &&value)
CopyPackageVersionsRequest & WithFormat(PackageFormat &&value)
CopyPackageVersionsRequest & WithFormat(const PackageFormat &value)
void SetVersionRevisions(const Aws::Map< Aws::String, Aws::String > &value)
CopyPackageVersionsRequest & WithDestinationRepository(Aws::String &&value)
CopyPackageVersionsRequest & AddVersions(const char *value)
CopyPackageVersionsRequest & WithNamespace(Aws::String &&value)
CopyPackageVersionsRequest & WithPackage(Aws::String &&value)
CopyPackageVersionsRequest & AddVersions(const Aws::String &value)
CopyPackageVersionsRequest & WithVersions(Aws::Vector< Aws::String > &&value)
void SetVersions(const Aws::Vector< Aws::String > &value)
AWS_CODEARTIFACT_API Aws::String SerializePayload() const override
CopyPackageVersionsRequest & WithSourceRepository(const Aws::String &value)
void SetVersionRevisions(Aws::Map< Aws::String, Aws::String > &&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