AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DeletePackageVersionsRequest.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/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 DeletePackageVersionsRequest() = 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 "DeletePackageVersions"; }
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
43 inline const Aws::String& GetDomain() const { return m_domain; }
44 inline bool DomainHasBeenSet() const { return m_domainHasBeenSet; }
45 template <typename DomainT = Aws::String>
46 void SetDomain(DomainT&& value) {
47 m_domainHasBeenSet = true;
48 m_domain = std::forward<DomainT>(value);
49 }
50 template <typename DomainT = Aws::String>
52 SetDomain(std::forward<DomainT>(value));
53 return *this;
54 }
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) {
66 m_domainOwnerHasBeenSet = true;
67 m_domainOwner = std::forward<DomainOwnerT>(value);
68 }
69 template <typename DomainOwnerT = Aws::String>
71 SetDomainOwner(std::forward<DomainOwnerT>(value));
72 return *this;
73 }
75
77
81 inline const Aws::String& GetRepository() const { return m_repository; }
82 inline bool RepositoryHasBeenSet() const { return m_repositoryHasBeenSet; }
83 template <typename RepositoryT = Aws::String>
84 void SetRepository(RepositoryT&& value) {
85 m_repositoryHasBeenSet = true;
86 m_repository = std::forward<RepositoryT>(value);
87 }
88 template <typename RepositoryT = Aws::String>
90 SetRepository(std::forward<RepositoryT>(value));
91 return *this;
92 }
94
96
99 inline PackageFormat GetFormat() const { return m_format; }
100 inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
101 inline void SetFormat(PackageFormat value) {
102 m_formatHasBeenSet = true;
103 m_format = value;
104 }
106 SetFormat(value);
107 return *this;
108 }
110
112
125 inline const Aws::String& GetNamespace() const { return m_namespace; }
126 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
127 template <typename NamespaceT = Aws::String>
128 void SetNamespace(NamespaceT&& value) {
129 m_namespaceHasBeenSet = true;
130 m_namespace = std::forward<NamespaceT>(value);
131 }
132 template <typename NamespaceT = Aws::String>
134 SetNamespace(std::forward<NamespaceT>(value));
135 return *this;
136 }
138
140
143 inline const Aws::String& GetPackage() const { return m_package; }
144 inline bool PackageHasBeenSet() const { return m_packageHasBeenSet; }
145 template <typename PackageT = Aws::String>
146 void SetPackage(PackageT&& value) {
147 m_packageHasBeenSet = true;
148 m_package = std::forward<PackageT>(value);
149 }
150 template <typename PackageT = Aws::String>
152 SetPackage(std::forward<PackageT>(value));
153 return *this;
154 }
156
158
161 inline const Aws::Vector<Aws::String>& GetVersions() const { return m_versions; }
162 inline bool VersionsHasBeenSet() const { return m_versionsHasBeenSet; }
163 template <typename VersionsT = Aws::Vector<Aws::String>>
164 void SetVersions(VersionsT&& value) {
165 m_versionsHasBeenSet = true;
166 m_versions = std::forward<VersionsT>(value);
167 }
168 template <typename VersionsT = Aws::Vector<Aws::String>>
170 SetVersions(std::forward<VersionsT>(value));
171 return *this;
172 }
173 template <typename VersionsT = Aws::String>
175 m_versionsHasBeenSet = true;
176 m_versions.emplace_back(std::forward<VersionsT>(value));
177 return *this;
178 }
180
182
185 inline PackageVersionStatus GetExpectedStatus() const { return m_expectedStatus; }
186 inline bool ExpectedStatusHasBeenSet() const { return m_expectedStatusHasBeenSet; }
188 m_expectedStatusHasBeenSet = true;
189 m_expectedStatus = value;
190 }
192 SetExpectedStatus(value);
193 return *this;
194 }
196 private:
197 Aws::String m_domain;
198
199 Aws::String m_domainOwner;
200
201 Aws::String m_repository;
202
204
205 Aws::String m_namespace;
206
207 Aws::String m_package;
208
209 Aws::Vector<Aws::String> m_versions;
210
212 bool m_domainHasBeenSet = false;
213 bool m_domainOwnerHasBeenSet = false;
214 bool m_repositoryHasBeenSet = false;
215 bool m_formatHasBeenSet = false;
216 bool m_namespaceHasBeenSet = false;
217 bool m_packageHasBeenSet = false;
218 bool m_versionsHasBeenSet = false;
219 bool m_expectedStatusHasBeenSet = false;
220};
221
222} // namespace Model
223} // namespace CodeArtifact
224} // namespace Aws
DeletePackageVersionsRequest & WithFormat(PackageFormat value)
DeletePackageVersionsRequest & WithVersions(VersionsT &&value)
DeletePackageVersionsRequest & WithNamespace(NamespaceT &&value)
DeletePackageVersionsRequest & WithDomain(DomainT &&value)
DeletePackageVersionsRequest & WithExpectedStatus(PackageVersionStatus value)
AWS_CODEARTIFACT_API DeletePackageVersionsRequest()=default
AWS_CODEARTIFACT_API Aws::String SerializePayload() const override
DeletePackageVersionsRequest & WithRepository(RepositoryT &&value)
DeletePackageVersionsRequest & AddVersions(VersionsT &&value)
DeletePackageVersionsRequest & WithPackage(PackageT &&value)
AWS_CODEARTIFACT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
DeletePackageVersionsRequest & WithDomainOwner(DomainOwnerT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector