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
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() = 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 "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 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 CopyPackageVersionsRequest& 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 CopyPackageVersionsRequest& WithDomainOwner(DomainOwnerT&& value) { SetDomainOwner(std::forward<DomainOwnerT>(value)); return *this;}
69
71
75 inline const Aws::String& GetSourceRepository() const { return m_sourceRepository; }
76 inline bool SourceRepositoryHasBeenSet() const { return m_sourceRepositoryHasBeenSet; }
77 template<typename SourceRepositoryT = Aws::String>
78 void SetSourceRepository(SourceRepositoryT&& value) { m_sourceRepositoryHasBeenSet = true; m_sourceRepository = std::forward<SourceRepositoryT>(value); }
79 template<typename SourceRepositoryT = Aws::String>
80 CopyPackageVersionsRequest& WithSourceRepository(SourceRepositoryT&& value) { SetSourceRepository(std::forward<SourceRepositoryT>(value)); return *this;}
82
84
87 inline const Aws::String& GetDestinationRepository() const { return m_destinationRepository; }
88 inline bool DestinationRepositoryHasBeenSet() const { return m_destinationRepositoryHasBeenSet; }
89 template<typename DestinationRepositoryT = Aws::String>
90 void SetDestinationRepository(DestinationRepositoryT&& value) { m_destinationRepositoryHasBeenSet = true; m_destinationRepository = std::forward<DestinationRepositoryT>(value); }
91 template<typename DestinationRepositoryT = Aws::String>
92 CopyPackageVersionsRequest& WithDestinationRepository(DestinationRepositoryT&& value) { SetDestinationRepository(std::forward<DestinationRepositoryT>(value)); return *this;}
94
96
99 inline PackageFormat GetFormat() const { return m_format; }
100 inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
101 inline void SetFormat(PackageFormat value) { m_formatHasBeenSet = true; m_format = value; }
102 inline CopyPackageVersionsRequest& WithFormat(PackageFormat value) { SetFormat(value); return *this;}
104
106
119 inline const Aws::String& GetNamespace() const { return m_namespace; }
120 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
121 template<typename NamespaceT = Aws::String>
122 void SetNamespace(NamespaceT&& value) { m_namespaceHasBeenSet = true; m_namespace = std::forward<NamespaceT>(value); }
123 template<typename NamespaceT = Aws::String>
124 CopyPackageVersionsRequest& WithNamespace(NamespaceT&& value) { SetNamespace(std::forward<NamespaceT>(value)); return *this;}
126
128
131 inline const Aws::String& GetPackage() const { return m_package; }
132 inline bool PackageHasBeenSet() const { return m_packageHasBeenSet; }
133 template<typename PackageT = Aws::String>
134 void SetPackage(PackageT&& value) { m_packageHasBeenSet = true; m_package = std::forward<PackageT>(value); }
135 template<typename PackageT = Aws::String>
136 CopyPackageVersionsRequest& WithPackage(PackageT&& value) { SetPackage(std::forward<PackageT>(value)); return *this;}
138
140
145 inline const Aws::Vector<Aws::String>& GetVersions() const { return m_versions; }
146 inline bool VersionsHasBeenSet() const { return m_versionsHasBeenSet; }
147 template<typename VersionsT = Aws::Vector<Aws::String>>
148 void SetVersions(VersionsT&& value) { m_versionsHasBeenSet = true; m_versions = std::forward<VersionsT>(value); }
149 template<typename VersionsT = Aws::Vector<Aws::String>>
150 CopyPackageVersionsRequest& WithVersions(VersionsT&& value) { SetVersions(std::forward<VersionsT>(value)); return *this;}
151 template<typename VersionsT = Aws::String>
152 CopyPackageVersionsRequest& AddVersions(VersionsT&& value) { m_versionsHasBeenSet = true; m_versions.emplace_back(std::forward<VersionsT>(value)); return *this; }
154
156
163 inline const Aws::Map<Aws::String, Aws::String>& GetVersionRevisions() const { return m_versionRevisions; }
164 inline bool VersionRevisionsHasBeenSet() const { return m_versionRevisionsHasBeenSet; }
165 template<typename VersionRevisionsT = Aws::Map<Aws::String, Aws::String>>
166 void SetVersionRevisions(VersionRevisionsT&& value) { m_versionRevisionsHasBeenSet = true; m_versionRevisions = std::forward<VersionRevisionsT>(value); }
167 template<typename VersionRevisionsT = Aws::Map<Aws::String, Aws::String>>
168 CopyPackageVersionsRequest& WithVersionRevisions(VersionRevisionsT&& value) { SetVersionRevisions(std::forward<VersionRevisionsT>(value)); return *this;}
169 template<typename VersionRevisionsKeyT = Aws::String, typename VersionRevisionsValueT = Aws::String>
170 CopyPackageVersionsRequest& AddVersionRevisions(VersionRevisionsKeyT&& key, VersionRevisionsValueT&& value) {
171 m_versionRevisionsHasBeenSet = true; m_versionRevisions.emplace(std::forward<VersionRevisionsKeyT>(key), std::forward<VersionRevisionsValueT>(value)); return *this;
172 }
174
176
183 inline bool GetAllowOverwrite() const { return m_allowOverwrite; }
184 inline bool AllowOverwriteHasBeenSet() const { return m_allowOverwriteHasBeenSet; }
185 inline void SetAllowOverwrite(bool value) { m_allowOverwriteHasBeenSet = true; m_allowOverwrite = value; }
186 inline CopyPackageVersionsRequest& WithAllowOverwrite(bool value) { SetAllowOverwrite(value); return *this;}
188
190
197 inline bool GetIncludeFromUpstream() const { return m_includeFromUpstream; }
198 inline bool IncludeFromUpstreamHasBeenSet() const { return m_includeFromUpstreamHasBeenSet; }
199 inline void SetIncludeFromUpstream(bool value) { m_includeFromUpstreamHasBeenSet = true; m_includeFromUpstream = value; }
202 private:
203
204 Aws::String m_domain;
205 bool m_domainHasBeenSet = false;
206
207 Aws::String m_domainOwner;
208 bool m_domainOwnerHasBeenSet = false;
209
210 Aws::String m_sourceRepository;
211 bool m_sourceRepositoryHasBeenSet = false;
212
213 Aws::String m_destinationRepository;
214 bool m_destinationRepositoryHasBeenSet = false;
215
217 bool m_formatHasBeenSet = false;
218
219 Aws::String m_namespace;
220 bool m_namespaceHasBeenSet = false;
221
222 Aws::String m_package;
223 bool m_packageHasBeenSet = false;
224
225 Aws::Vector<Aws::String> m_versions;
226 bool m_versionsHasBeenSet = false;
227
228 Aws::Map<Aws::String, Aws::String> m_versionRevisions;
229 bool m_versionRevisionsHasBeenSet = false;
230
231 bool m_allowOverwrite{false};
232 bool m_allowOverwriteHasBeenSet = false;
233
234 bool m_includeFromUpstream{false};
235 bool m_includeFromUpstreamHasBeenSet = false;
236 };
237
238} // namespace Model
239} // namespace CodeArtifact
240} // 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