AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DeletePackageVersionsRequest.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/codeartifact/model/PackageVersionStatus.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 DeletePackageVersionsRequest();
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 "DeletePackageVersions"; }
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
48 inline const Aws::String& GetDomain() const{ return m_domain; }
49 inline bool DomainHasBeenSet() const { return m_domainHasBeenSet; }
50 inline void SetDomain(const Aws::String& value) { m_domainHasBeenSet = true; m_domain = value; }
51 inline void SetDomain(Aws::String&& value) { m_domainHasBeenSet = true; m_domain = std::move(value); }
52 inline void SetDomain(const char* value) { m_domainHasBeenSet = true; m_domain.assign(value); }
53 inline DeletePackageVersionsRequest& WithDomain(const Aws::String& value) { SetDomain(value); return *this;}
54 inline DeletePackageVersionsRequest& WithDomain(Aws::String&& value) { SetDomain(std::move(value)); return *this;}
55 inline DeletePackageVersionsRequest& WithDomain(const char* value) { SetDomain(value); return *this;}
57
59
63 inline const Aws::String& GetDomainOwner() const{ return m_domainOwner; }
64 inline bool DomainOwnerHasBeenSet() const { return m_domainOwnerHasBeenSet; }
65 inline void SetDomainOwner(const Aws::String& value) { m_domainOwnerHasBeenSet = true; m_domainOwner = value; }
66 inline void SetDomainOwner(Aws::String&& value) { m_domainOwnerHasBeenSet = true; m_domainOwner = std::move(value); }
67 inline void SetDomainOwner(const char* value) { m_domainOwnerHasBeenSet = true; m_domainOwner.assign(value); }
68 inline DeletePackageVersionsRequest& WithDomainOwner(const Aws::String& value) { SetDomainOwner(value); return *this;}
69 inline DeletePackageVersionsRequest& WithDomainOwner(Aws::String&& value) { SetDomainOwner(std::move(value)); return *this;}
70 inline DeletePackageVersionsRequest& WithDomainOwner(const char* value) { SetDomainOwner(value); return *this;}
72
74
78 inline const Aws::String& GetRepository() const{ return m_repository; }
79 inline bool RepositoryHasBeenSet() const { return m_repositoryHasBeenSet; }
80 inline void SetRepository(const Aws::String& value) { m_repositoryHasBeenSet = true; m_repository = value; }
81 inline void SetRepository(Aws::String&& value) { m_repositoryHasBeenSet = true; m_repository = std::move(value); }
82 inline void SetRepository(const char* value) { m_repositoryHasBeenSet = true; m_repository.assign(value); }
83 inline DeletePackageVersionsRequest& WithRepository(const Aws::String& value) { SetRepository(value); return *this;}
84 inline DeletePackageVersionsRequest& WithRepository(Aws::String&& value) { SetRepository(std::move(value)); return *this;}
85 inline DeletePackageVersionsRequest& WithRepository(const char* value) { SetRepository(value); return *this;}
87
89
92 inline const PackageFormat& GetFormat() const{ return m_format; }
93 inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
94 inline void SetFormat(const PackageFormat& value) { m_formatHasBeenSet = true; m_format = value; }
95 inline void SetFormat(PackageFormat&& value) { m_formatHasBeenSet = true; m_format = std::move(value); }
96 inline DeletePackageVersionsRequest& WithFormat(const PackageFormat& value) { SetFormat(value); return *this;}
97 inline DeletePackageVersionsRequest& WithFormat(PackageFormat&& value) { SetFormat(std::move(value)); return *this;}
99
101
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 DeletePackageVersionsRequest& WithNamespace(const Aws::String& value) { SetNamespace(value); return *this;}
120 inline DeletePackageVersionsRequest& WithNamespace(Aws::String&& value) { SetNamespace(std::move(value)); return *this;}
121 inline DeletePackageVersionsRequest& 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 DeletePackageVersionsRequest& WithPackage(const Aws::String& value) { SetPackage(value); return *this;}
134 inline DeletePackageVersionsRequest& WithPackage(Aws::String&& value) { SetPackage(std::move(value)); return *this;}
135 inline DeletePackageVersionsRequest& WithPackage(const char* value) { SetPackage(value); return *this;}
137
139
142 inline const Aws::Vector<Aws::String>& GetVersions() const{ return m_versions; }
143 inline bool VersionsHasBeenSet() const { return m_versionsHasBeenSet; }
144 inline void SetVersions(const Aws::Vector<Aws::String>& value) { m_versionsHasBeenSet = true; m_versions = value; }
145 inline void SetVersions(Aws::Vector<Aws::String>&& value) { m_versionsHasBeenSet = true; m_versions = std::move(value); }
147 inline DeletePackageVersionsRequest& WithVersions(Aws::Vector<Aws::String>&& value) { SetVersions(std::move(value)); return *this;}
148 inline DeletePackageVersionsRequest& AddVersions(const Aws::String& value) { m_versionsHasBeenSet = true; m_versions.push_back(value); return *this; }
149 inline DeletePackageVersionsRequest& AddVersions(Aws::String&& value) { m_versionsHasBeenSet = true; m_versions.push_back(std::move(value)); return *this; }
150 inline DeletePackageVersionsRequest& AddVersions(const char* value) { m_versionsHasBeenSet = true; m_versions.push_back(value); return *this; }
152
154
157 inline const PackageVersionStatus& GetExpectedStatus() const{ return m_expectedStatus; }
158 inline bool ExpectedStatusHasBeenSet() const { return m_expectedStatusHasBeenSet; }
159 inline void SetExpectedStatus(const PackageVersionStatus& value) { m_expectedStatusHasBeenSet = true; m_expectedStatus = value; }
160 inline void SetExpectedStatus(PackageVersionStatus&& value) { m_expectedStatusHasBeenSet = true; m_expectedStatus = std::move(value); }
164 private:
165
166 Aws::String m_domain;
167 bool m_domainHasBeenSet = false;
168
169 Aws::String m_domainOwner;
170 bool m_domainOwnerHasBeenSet = false;
171
172 Aws::String m_repository;
173 bool m_repositoryHasBeenSet = false;
174
175 PackageFormat m_format;
176 bool m_formatHasBeenSet = false;
177
178 Aws::String m_namespace;
179 bool m_namespaceHasBeenSet = false;
180
181 Aws::String m_package;
182 bool m_packageHasBeenSet = false;
183
184 Aws::Vector<Aws::String> m_versions;
185 bool m_versionsHasBeenSet = false;
186
187 PackageVersionStatus m_expectedStatus;
188 bool m_expectedStatusHasBeenSet = false;
189 };
190
191} // namespace Model
192} // namespace CodeArtifact
193} // namespace Aws
DeletePackageVersionsRequest & WithFormat(const PackageFormat &value)
DeletePackageVersionsRequest & WithDomain(const Aws::String &value)
DeletePackageVersionsRequest & AddVersions(const char *value)
DeletePackageVersionsRequest & WithFormat(PackageFormat &&value)
DeletePackageVersionsRequest & WithVersions(Aws::Vector< Aws::String > &&value)
DeletePackageVersionsRequest & WithNamespace(const Aws::String &value)
DeletePackageVersionsRequest & WithVersions(const Aws::Vector< Aws::String > &value)
DeletePackageVersionsRequest & WithRepository(const Aws::String &value)
void SetVersions(const Aws::Vector< Aws::String > &value)
DeletePackageVersionsRequest & WithDomain(const char *value)
DeletePackageVersionsRequest & WithDomainOwner(Aws::String &&value)
AWS_CODEARTIFACT_API Aws::String SerializePayload() const override
DeletePackageVersionsRequest & WithNamespace(Aws::String &&value)
DeletePackageVersionsRequest & WithPackage(const char *value)
DeletePackageVersionsRequest & WithExpectedStatus(PackageVersionStatus &&value)
DeletePackageVersionsRequest & AddVersions(Aws::String &&value)
DeletePackageVersionsRequest & WithDomainOwner(const char *value)
DeletePackageVersionsRequest & WithRepository(Aws::String &&value)
DeletePackageVersionsRequest & WithPackage(const Aws::String &value)
DeletePackageVersionsRequest & WithNamespace(const char *value)
DeletePackageVersionsRequest & WithPackage(Aws::String &&value)
DeletePackageVersionsRequest & WithDomainOwner(const Aws::String &value)
AWS_CODEARTIFACT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
DeletePackageVersionsRequest & AddVersions(const Aws::String &value)
DeletePackageVersionsRequest & WithRepository(const char *value)
DeletePackageVersionsRequest & WithDomain(Aws::String &&value)
DeletePackageVersionsRequest & WithExpectedStatus(const PackageVersionStatus &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector