AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdatePackageVersionsStatusRequest.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 UpdatePackageVersionsStatusRequest();
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 "UpdatePackageVersionsStatus"; }
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 UpdatePackageVersionsStatusRequest& WithDomain(const Aws::String& value) { SetDomain(value); return *this;}
56 inline UpdatePackageVersionsStatusRequest& WithDomain(Aws::String&& value) { SetDomain(std::move(value)); return *this;}
57 inline UpdatePackageVersionsStatusRequest& 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); }
71 inline UpdatePackageVersionsStatusRequest& WithDomainOwner(Aws::String&& value) { SetDomainOwner(std::move(value)); return *this;}
72 inline UpdatePackageVersionsStatusRequest& 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 UpdatePackageVersionsStatusRequest& WithRepository(const Aws::String& value) { SetRepository(value); return *this;}
86 inline UpdatePackageVersionsStatusRequest& WithRepository(Aws::String&& value) { SetRepository(std::move(value)); return *this;}
87 inline UpdatePackageVersionsStatusRequest& 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 UpdatePackageVersionsStatusRequest& WithFormat(const PackageFormat& value) { SetFormat(value); return *this;}
100 inline UpdatePackageVersionsStatusRequest& WithFormat(PackageFormat&& value) { SetFormat(std::move(value)); return *this;}
102
104
114 inline const Aws::String& GetNamespace() const{ return m_namespace; }
115 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
116 inline void SetNamespace(const Aws::String& value) { m_namespaceHasBeenSet = true; m_namespace = value; }
117 inline void SetNamespace(Aws::String&& value) { m_namespaceHasBeenSet = true; m_namespace = std::move(value); }
118 inline void SetNamespace(const char* value) { m_namespaceHasBeenSet = true; m_namespace.assign(value); }
119 inline UpdatePackageVersionsStatusRequest& WithNamespace(const Aws::String& value) { SetNamespace(value); return *this;}
120 inline UpdatePackageVersionsStatusRequest& WithNamespace(Aws::String&& value) { SetNamespace(std::move(value)); return *this;}
121 inline UpdatePackageVersionsStatusRequest& WithNamespace(const char* value) { SetNamespace(value); return *this;}
123
125
128 inline const Aws::String& GetPackage() const{ return m_package; }
129 inline bool PackageHasBeenSet() const { return m_packageHasBeenSet; }
130 inline void SetPackage(const Aws::String& value) { m_packageHasBeenSet = true; m_package = value; }
131 inline void SetPackage(Aws::String&& value) { m_packageHasBeenSet = true; m_package = std::move(value); }
132 inline void SetPackage(const char* value) { m_packageHasBeenSet = true; m_package.assign(value); }
133 inline UpdatePackageVersionsStatusRequest& WithPackage(const Aws::String& value) { SetPackage(value); return *this;}
134 inline UpdatePackageVersionsStatusRequest& WithPackage(Aws::String&& value) { SetPackage(std::move(value)); return *this;}
135 inline UpdatePackageVersionsStatusRequest& WithPackage(const char* value) { SetPackage(value); return *this;}
137
139
143 inline const Aws::Vector<Aws::String>& GetVersions() const{ return m_versions; }
144 inline bool VersionsHasBeenSet() const { return m_versionsHasBeenSet; }
145 inline void SetVersions(const Aws::Vector<Aws::String>& value) { m_versionsHasBeenSet = true; m_versions = value; }
146 inline void SetVersions(Aws::Vector<Aws::String>&& value) { m_versionsHasBeenSet = true; m_versions = std::move(value); }
148 inline UpdatePackageVersionsStatusRequest& WithVersions(Aws::Vector<Aws::String>&& value) { SetVersions(std::move(value)); return *this;}
149 inline UpdatePackageVersionsStatusRequest& AddVersions(const Aws::String& value) { m_versionsHasBeenSet = true; m_versions.push_back(value); return *this; }
150 inline UpdatePackageVersionsStatusRequest& AddVersions(Aws::String&& value) { m_versionsHasBeenSet = true; m_versions.push_back(std::move(value)); return *this; }
151 inline UpdatePackageVersionsStatusRequest& AddVersions(const char* value) { m_versionsHasBeenSet = true; m_versions.push_back(value); return *this; }
153
155
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 UpdatePackageVersionsStatusRequest& AddVersionRevisions(const Aws::String& key, const Aws::String& value) { m_versionRevisionsHasBeenSet = true; m_versionRevisions.emplace(key, value); return *this; }
167 inline UpdatePackageVersionsStatusRequest& AddVersionRevisions(Aws::String&& key, const Aws::String& value) { m_versionRevisionsHasBeenSet = true; m_versionRevisions.emplace(std::move(key), value); return *this; }
168 inline UpdatePackageVersionsStatusRequest& AddVersionRevisions(const Aws::String& key, Aws::String&& value) { m_versionRevisionsHasBeenSet = true; m_versionRevisions.emplace(key, std::move(value)); return *this; }
169 inline UpdatePackageVersionsStatusRequest& AddVersionRevisions(Aws::String&& key, Aws::String&& value) { m_versionRevisionsHasBeenSet = true; m_versionRevisions.emplace(std::move(key), std::move(value)); return *this; }
170 inline UpdatePackageVersionsStatusRequest& AddVersionRevisions(const char* key, Aws::String&& value) { m_versionRevisionsHasBeenSet = true; m_versionRevisions.emplace(key, std::move(value)); return *this; }
171 inline UpdatePackageVersionsStatusRequest& AddVersionRevisions(Aws::String&& key, const char* value) { m_versionRevisionsHasBeenSet = true; m_versionRevisions.emplace(std::move(key), value); return *this; }
172 inline UpdatePackageVersionsStatusRequest& AddVersionRevisions(const char* key, const char* value) { m_versionRevisionsHasBeenSet = true; m_versionRevisions.emplace(key, value); return *this; }
174
176
182 inline const PackageVersionStatus& GetExpectedStatus() const{ return m_expectedStatus; }
183 inline bool ExpectedStatusHasBeenSet() const { return m_expectedStatusHasBeenSet; }
184 inline void SetExpectedStatus(const PackageVersionStatus& value) { m_expectedStatusHasBeenSet = true; m_expectedStatus = value; }
185 inline void SetExpectedStatus(PackageVersionStatus&& value) { m_expectedStatusHasBeenSet = true; m_expectedStatus = std::move(value); }
189
191
194 inline const PackageVersionStatus& GetTargetStatus() const{ return m_targetStatus; }
195 inline bool TargetStatusHasBeenSet() const { return m_targetStatusHasBeenSet; }
196 inline void SetTargetStatus(const PackageVersionStatus& value) { m_targetStatusHasBeenSet = true; m_targetStatus = value; }
197 inline void SetTargetStatus(PackageVersionStatus&& value) { m_targetStatusHasBeenSet = true; m_targetStatus = std::move(value); }
201 private:
202
203 Aws::String m_domain;
204 bool m_domainHasBeenSet = false;
205
206 Aws::String m_domainOwner;
207 bool m_domainOwnerHasBeenSet = false;
208
209 Aws::String m_repository;
210 bool m_repositoryHasBeenSet = false;
211
212 PackageFormat m_format;
213 bool m_formatHasBeenSet = false;
214
215 Aws::String m_namespace;
216 bool m_namespaceHasBeenSet = false;
217
218 Aws::String m_package;
219 bool m_packageHasBeenSet = false;
220
221 Aws::Vector<Aws::String> m_versions;
222 bool m_versionsHasBeenSet = false;
223
224 Aws::Map<Aws::String, Aws::String> m_versionRevisions;
225 bool m_versionRevisionsHasBeenSet = false;
226
227 PackageVersionStatus m_expectedStatus;
228 bool m_expectedStatusHasBeenSet = false;
229
230 PackageVersionStatus m_targetStatus;
231 bool m_targetStatusHasBeenSet = false;
232 };
233
234} // namespace Model
235} // namespace CodeArtifact
236} // namespace Aws
UpdatePackageVersionsStatusRequest & WithTargetStatus(const PackageVersionStatus &value)
UpdatePackageVersionsStatusRequest & WithTargetStatus(PackageVersionStatus &&value)
AWS_CODEARTIFACT_API Aws::String SerializePayload() const override
UpdatePackageVersionsStatusRequest & AddVersionRevisions(Aws::String &&key, const Aws::String &value)
UpdatePackageVersionsStatusRequest & WithFormat(PackageFormat &&value)
UpdatePackageVersionsStatusRequest & AddVersions(Aws::String &&value)
UpdatePackageVersionsStatusRequest & WithNamespace(const Aws::String &value)
UpdatePackageVersionsStatusRequest & AddVersions(const char *value)
UpdatePackageVersionsStatusRequest & AddVersionRevisions(const Aws::String &key, Aws::String &&value)
UpdatePackageVersionsStatusRequest & WithExpectedStatus(const PackageVersionStatus &value)
UpdatePackageVersionsStatusRequest & WithDomainOwner(const Aws::String &value)
UpdatePackageVersionsStatusRequest & AddVersionRevisions(const char *key, Aws::String &&value)
UpdatePackageVersionsStatusRequest & WithRepository(const char *value)
UpdatePackageVersionsStatusRequest & WithDomain(const char *value)
UpdatePackageVersionsStatusRequest & WithPackage(const Aws::String &value)
const Aws::Map< Aws::String, Aws::String > & GetVersionRevisions() const
UpdatePackageVersionsStatusRequest & WithPackage(const char *value)
UpdatePackageVersionsStatusRequest & WithDomainOwner(Aws::String &&value)
UpdatePackageVersionsStatusRequest & WithFormat(const PackageFormat &value)
UpdatePackageVersionsStatusRequest & WithPackage(Aws::String &&value)
UpdatePackageVersionsStatusRequest & AddVersionRevisions(const Aws::String &key, const Aws::String &value)
void SetVersionRevisions(Aws::Map< Aws::String, Aws::String > &&value)
UpdatePackageVersionsStatusRequest & WithDomain(Aws::String &&value)
UpdatePackageVersionsStatusRequest & AddVersionRevisions(Aws::String &&key, Aws::String &&value)
UpdatePackageVersionsStatusRequest & WithDomainOwner(const char *value)
UpdatePackageVersionsStatusRequest & WithVersions(Aws::Vector< Aws::String > &&value)
UpdatePackageVersionsStatusRequest & WithExpectedStatus(PackageVersionStatus &&value)
AWS_CODEARTIFACT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
UpdatePackageVersionsStatusRequest & AddVersionRevisions(const char *key, const char *value)
UpdatePackageVersionsStatusRequest & WithDomain(const Aws::String &value)
UpdatePackageVersionsStatusRequest & WithVersionRevisions(const Aws::Map< Aws::String, Aws::String > &value)
UpdatePackageVersionsStatusRequest & AddVersionRevisions(Aws::String &&key, const char *value)
UpdatePackageVersionsStatusRequest & WithNamespace(Aws::String &&value)
void SetVersionRevisions(const Aws::Map< Aws::String, Aws::String > &value)
UpdatePackageVersionsStatusRequest & WithRepository(const Aws::String &value)
UpdatePackageVersionsStatusRequest & WithRepository(Aws::String &&value)
UpdatePackageVersionsStatusRequest & AddVersions(const Aws::String &value)
UpdatePackageVersionsStatusRequest & WithVersions(const Aws::Vector< Aws::String > &value)
UpdatePackageVersionsStatusRequest & WithNamespace(const char *value)
UpdatePackageVersionsStatusRequest & WithVersionRevisions(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