AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DisposePackageVersionsRequest.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 <aws/codeartifact/model/PackageVersionStatus.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Http
19{
20 class URI;
21} //namespace Http
22namespace CodeArtifact
23{
24namespace Model
25{
26
30 {
31 public:
32 AWS_CODEARTIFACT_API DisposePackageVersionsRequest();
33
34 // Service request name is the Operation name which will send this request out,
35 // each operation should has unique request name, so that we can get operation's name from this request.
36 // Note: this is not true for response, multiple operations may have the same response name,
37 // so we can not get operation's name from response.
38 inline virtual const char* GetServiceRequestName() const override { return "DisposePackageVersions"; }
39
40 AWS_CODEARTIFACT_API Aws::String SerializePayload() const override;
41
42 AWS_CODEARTIFACT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
43
44
46
50 inline const Aws::String& GetDomain() const{ return m_domain; }
51 inline bool DomainHasBeenSet() const { return m_domainHasBeenSet; }
52 inline void SetDomain(const Aws::String& value) { m_domainHasBeenSet = true; m_domain = value; }
53 inline void SetDomain(Aws::String&& value) { m_domainHasBeenSet = true; m_domain = std::move(value); }
54 inline void SetDomain(const char* value) { m_domainHasBeenSet = true; m_domain.assign(value); }
55 inline DisposePackageVersionsRequest& WithDomain(const Aws::String& value) { SetDomain(value); return *this;}
56 inline DisposePackageVersionsRequest& WithDomain(Aws::String&& value) { SetDomain(std::move(value)); return *this;}
57 inline DisposePackageVersionsRequest& WithDomain(const char* value) { SetDomain(value); return *this;}
59
61
65 inline const Aws::String& GetDomainOwner() const{ return m_domainOwner; }
66 inline bool DomainOwnerHasBeenSet() const { return m_domainOwnerHasBeenSet; }
67 inline void SetDomainOwner(const Aws::String& value) { m_domainOwnerHasBeenSet = true; m_domainOwner = value; }
68 inline void SetDomainOwner(Aws::String&& value) { m_domainOwnerHasBeenSet = true; m_domainOwner = std::move(value); }
69 inline void SetDomainOwner(const char* value) { m_domainOwnerHasBeenSet = true; m_domainOwner.assign(value); }
70 inline DisposePackageVersionsRequest& WithDomainOwner(const Aws::String& value) { SetDomainOwner(value); return *this;}
71 inline DisposePackageVersionsRequest& WithDomainOwner(Aws::String&& value) { SetDomainOwner(std::move(value)); return *this;}
72 inline DisposePackageVersionsRequest& WithDomainOwner(const char* value) { SetDomainOwner(value); return *this;}
74
76
80 inline const Aws::String& GetRepository() const{ return m_repository; }
81 inline bool RepositoryHasBeenSet() const { return m_repositoryHasBeenSet; }
82 inline void SetRepository(const Aws::String& value) { m_repositoryHasBeenSet = true; m_repository = value; }
83 inline void SetRepository(Aws::String&& value) { m_repositoryHasBeenSet = true; m_repository = std::move(value); }
84 inline void SetRepository(const char* value) { m_repositoryHasBeenSet = true; m_repository.assign(value); }
85 inline DisposePackageVersionsRequest& WithRepository(const Aws::String& value) { SetRepository(value); return *this;}
86 inline DisposePackageVersionsRequest& WithRepository(Aws::String&& value) { SetRepository(std::move(value)); return *this;}
87 inline DisposePackageVersionsRequest& WithRepository(const char* value) { SetRepository(value); return *this;}
89
91
95 inline const PackageFormat& GetFormat() const{ return m_format; }
96 inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
97 inline void SetFormat(const PackageFormat& value) { m_formatHasBeenSet = true; m_format = value; }
98 inline void SetFormat(PackageFormat&& value) { m_formatHasBeenSet = true; m_format = std::move(value); }
99 inline DisposePackageVersionsRequest& WithFormat(const PackageFormat& value) { SetFormat(value); return *this;}
100 inline DisposePackageVersionsRequest& WithFormat(PackageFormat&& value) { SetFormat(std::move(value)); return *this;}
102
104
117 inline const Aws::String& GetNamespace() const{ return m_namespace; }
118 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
119 inline void SetNamespace(const Aws::String& value) { m_namespaceHasBeenSet = true; m_namespace = value; }
120 inline void SetNamespace(Aws::String&& value) { m_namespaceHasBeenSet = true; m_namespace = std::move(value); }
121 inline void SetNamespace(const char* value) { m_namespaceHasBeenSet = true; m_namespace.assign(value); }
122 inline DisposePackageVersionsRequest& WithNamespace(const Aws::String& value) { SetNamespace(value); return *this;}
123 inline DisposePackageVersionsRequest& WithNamespace(Aws::String&& value) { SetNamespace(std::move(value)); return *this;}
124 inline DisposePackageVersionsRequest& WithNamespace(const char* value) { SetNamespace(value); return *this;}
126
128
131 inline const Aws::String& GetPackage() const{ return m_package; }
132 inline bool PackageHasBeenSet() const { return m_packageHasBeenSet; }
133 inline void SetPackage(const Aws::String& value) { m_packageHasBeenSet = true; m_package = value; }
134 inline void SetPackage(Aws::String&& value) { m_packageHasBeenSet = true; m_package = std::move(value); }
135 inline void SetPackage(const char* value) { m_packageHasBeenSet = true; m_package.assign(value); }
136 inline DisposePackageVersionsRequest& WithPackage(const Aws::String& value) { SetPackage(value); return *this;}
137 inline DisposePackageVersionsRequest& WithPackage(Aws::String&& value) { SetPackage(std::move(value)); return *this;}
138 inline DisposePackageVersionsRequest& WithPackage(const char* value) { SetPackage(value); return *this;}
140
142
145 inline const Aws::Vector<Aws::String>& GetVersions() const{ return m_versions; }
146 inline bool VersionsHasBeenSet() const { return m_versionsHasBeenSet; }
147 inline void SetVersions(const Aws::Vector<Aws::String>& value) { m_versionsHasBeenSet = true; m_versions = value; }
148 inline void SetVersions(Aws::Vector<Aws::String>&& value) { m_versionsHasBeenSet = true; m_versions = std::move(value); }
150 inline DisposePackageVersionsRequest& WithVersions(Aws::Vector<Aws::String>&& value) { SetVersions(std::move(value)); return *this;}
151 inline DisposePackageVersionsRequest& AddVersions(const Aws::String& value) { m_versionsHasBeenSet = true; m_versions.push_back(value); return *this; }
152 inline DisposePackageVersionsRequest& AddVersions(Aws::String&& value) { m_versionsHasBeenSet = true; m_versions.push_back(std::move(value)); return *this; }
153 inline DisposePackageVersionsRequest& AddVersions(const char* value) { m_versionsHasBeenSet = true; m_versions.push_back(value); return *this; }
155
157
160 inline const Aws::Map<Aws::String, Aws::String>& GetVersionRevisions() const{ return m_versionRevisions; }
161 inline bool VersionRevisionsHasBeenSet() const { return m_versionRevisionsHasBeenSet; }
162 inline void SetVersionRevisions(const Aws::Map<Aws::String, Aws::String>& value) { m_versionRevisionsHasBeenSet = true; m_versionRevisions = value; }
163 inline void SetVersionRevisions(Aws::Map<Aws::String, Aws::String>&& value) { m_versionRevisionsHasBeenSet = true; m_versionRevisions = std::move(value); }
166 inline DisposePackageVersionsRequest& AddVersionRevisions(const Aws::String& key, const Aws::String& value) { m_versionRevisionsHasBeenSet = true; m_versionRevisions.emplace(key, value); return *this; }
167 inline DisposePackageVersionsRequest& AddVersionRevisions(Aws::String&& key, const Aws::String& value) { m_versionRevisionsHasBeenSet = true; m_versionRevisions.emplace(std::move(key), value); return *this; }
168 inline DisposePackageVersionsRequest& AddVersionRevisions(const Aws::String& key, Aws::String&& value) { m_versionRevisionsHasBeenSet = true; m_versionRevisions.emplace(key, std::move(value)); return *this; }
169 inline DisposePackageVersionsRequest& AddVersionRevisions(Aws::String&& key, Aws::String&& value) { m_versionRevisionsHasBeenSet = true; m_versionRevisions.emplace(std::move(key), std::move(value)); return *this; }
170 inline DisposePackageVersionsRequest& AddVersionRevisions(const char* key, Aws::String&& value) { m_versionRevisionsHasBeenSet = true; m_versionRevisions.emplace(key, std::move(value)); return *this; }
171 inline DisposePackageVersionsRequest& AddVersionRevisions(Aws::String&& key, const char* value) { m_versionRevisionsHasBeenSet = true; m_versionRevisions.emplace(std::move(key), value); return *this; }
172 inline DisposePackageVersionsRequest& AddVersionRevisions(const char* key, const char* value) { m_versionRevisionsHasBeenSet = true; m_versionRevisions.emplace(key, value); return *this; }
174
176
179 inline const PackageVersionStatus& GetExpectedStatus() const{ return m_expectedStatus; }
180 inline bool ExpectedStatusHasBeenSet() const { return m_expectedStatusHasBeenSet; }
181 inline void SetExpectedStatus(const PackageVersionStatus& value) { m_expectedStatusHasBeenSet = true; m_expectedStatus = value; }
182 inline void SetExpectedStatus(PackageVersionStatus&& value) { m_expectedStatusHasBeenSet = true; m_expectedStatus = std::move(value); }
186 private:
187
188 Aws::String m_domain;
189 bool m_domainHasBeenSet = false;
190
191 Aws::String m_domainOwner;
192 bool m_domainOwnerHasBeenSet = false;
193
194 Aws::String m_repository;
195 bool m_repositoryHasBeenSet = false;
196
197 PackageFormat m_format;
198 bool m_formatHasBeenSet = false;
199
200 Aws::String m_namespace;
201 bool m_namespaceHasBeenSet = false;
202
203 Aws::String m_package;
204 bool m_packageHasBeenSet = false;
205
206 Aws::Vector<Aws::String> m_versions;
207 bool m_versionsHasBeenSet = false;
208
209 Aws::Map<Aws::String, Aws::String> m_versionRevisions;
210 bool m_versionRevisionsHasBeenSet = false;
211
212 PackageVersionStatus m_expectedStatus;
213 bool m_expectedStatusHasBeenSet = false;
214 };
215
216} // namespace Model
217} // namespace CodeArtifact
218} // namespace Aws
DisposePackageVersionsRequest & WithNamespace(const Aws::String &value)
DisposePackageVersionsRequest & WithRepository(const Aws::String &value)
AWS_CODEARTIFACT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
DisposePackageVersionsRequest & WithRepository(Aws::String &&value)
DisposePackageVersionsRequest & WithVersions(Aws::Vector< Aws::String > &&value)
DisposePackageVersionsRequest & WithNamespace(const char *value)
DisposePackageVersionsRequest & AddVersionRevisions(Aws::String &&key, const char *value)
DisposePackageVersionsRequest & AddVersionRevisions(Aws::String &&key, const Aws::String &value)
void SetVersionRevisions(const Aws::Map< Aws::String, Aws::String > &value)
void SetVersionRevisions(Aws::Map< Aws::String, Aws::String > &&value)
DisposePackageVersionsRequest & WithPackage(Aws::String &&value)
DisposePackageVersionsRequest & WithDomainOwner(const Aws::String &value)
DisposePackageVersionsRequest & WithExpectedStatus(const PackageVersionStatus &value)
DisposePackageVersionsRequest & WithDomain(Aws::String &&value)
DisposePackageVersionsRequest & AddVersionRevisions(const char *key, Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetVersionRevisions() const
DisposePackageVersionsRequest & AddVersionRevisions(const Aws::String &key, const Aws::String &value)
DisposePackageVersionsRequest & AddVersions(Aws::String &&value)
AWS_CODEARTIFACT_API Aws::String SerializePayload() const override
DisposePackageVersionsRequest & WithFormat(PackageFormat &&value)
DisposePackageVersionsRequest & WithFormat(const PackageFormat &value)
DisposePackageVersionsRequest & WithNamespace(Aws::String &&value)
DisposePackageVersionsRequest & WithPackage(const Aws::String &value)
DisposePackageVersionsRequest & AddVersionRevisions(const char *key, const char *value)
DisposePackageVersionsRequest & WithDomain(const Aws::String &value)
DisposePackageVersionsRequest & WithPackage(const char *value)
DisposePackageVersionsRequest & AddVersionRevisions(const Aws::String &key, Aws::String &&value)
DisposePackageVersionsRequest & WithRepository(const char *value)
DisposePackageVersionsRequest & WithDomainOwner(const char *value)
DisposePackageVersionsRequest & WithVersions(const Aws::Vector< Aws::String > &value)
DisposePackageVersionsRequest & WithVersionRevisions(const Aws::Map< Aws::String, Aws::String > &value)
DisposePackageVersionsRequest & AddVersions(const char *value)
DisposePackageVersionsRequest & AddVersionRevisions(Aws::String &&key, Aws::String &&value)
DisposePackageVersionsRequest & WithDomain(const char *value)
DisposePackageVersionsRequest & WithExpectedStatus(PackageVersionStatus &&value)
DisposePackageVersionsRequest & WithDomainOwner(Aws::String &&value)
DisposePackageVersionsRequest & WithVersionRevisions(Aws::Map< Aws::String, Aws::String > &&value)
DisposePackageVersionsRequest & AddVersions(const 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