AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PublishPackageVersionRequest.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/Array.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Http
17{
18 class URI;
19} //namespace Http
20namespace CodeArtifact
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_CODEARTIFACT_API PublishPackageVersionRequest();
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "PublishPackageVersion"; }
37
38 AWS_CODEARTIFACT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
39
40 AWS_CODEARTIFACT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
41
42
44
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 PublishPackageVersionRequest& WithDomain(const Aws::String& value) { SetDomain(value); return *this;}
54 inline PublishPackageVersionRequest& WithDomain(Aws::String&& value) { SetDomain(std::move(value)); return *this;}
55 inline PublishPackageVersionRequest& 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 PublishPackageVersionRequest& WithDomainOwner(const Aws::String& value) { SetDomainOwner(value); return *this;}
69 inline PublishPackageVersionRequest& WithDomainOwner(Aws::String&& value) { SetDomainOwner(std::move(value)); return *this;}
70 inline PublishPackageVersionRequest& WithDomainOwner(const char* value) { SetDomainOwner(value); return *this;}
72
74
77 inline const Aws::String& GetRepository() const{ return m_repository; }
78 inline bool RepositoryHasBeenSet() const { return m_repositoryHasBeenSet; }
79 inline void SetRepository(const Aws::String& value) { m_repositoryHasBeenSet = true; m_repository = value; }
80 inline void SetRepository(Aws::String&& value) { m_repositoryHasBeenSet = true; m_repository = std::move(value); }
81 inline void SetRepository(const char* value) { m_repositoryHasBeenSet = true; m_repository.assign(value); }
82 inline PublishPackageVersionRequest& WithRepository(const Aws::String& value) { SetRepository(value); return *this;}
83 inline PublishPackageVersionRequest& WithRepository(Aws::String&& value) { SetRepository(std::move(value)); return *this;}
84 inline PublishPackageVersionRequest& WithRepository(const char* value) { SetRepository(value); return *this;}
86
88
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 PublishPackageVersionRequest& WithFormat(const PackageFormat& value) { SetFormat(value); return *this;}
97 inline PublishPackageVersionRequest& WithFormat(PackageFormat&& value) { SetFormat(std::move(value)); return *this;}
99
101
104 inline const Aws::String& GetNamespace() const{ return m_namespace; }
105 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
106 inline void SetNamespace(const Aws::String& value) { m_namespaceHasBeenSet = true; m_namespace = value; }
107 inline void SetNamespace(Aws::String&& value) { m_namespaceHasBeenSet = true; m_namespace = std::move(value); }
108 inline void SetNamespace(const char* value) { m_namespaceHasBeenSet = true; m_namespace.assign(value); }
109 inline PublishPackageVersionRequest& WithNamespace(const Aws::String& value) { SetNamespace(value); return *this;}
110 inline PublishPackageVersionRequest& WithNamespace(Aws::String&& value) { SetNamespace(std::move(value)); return *this;}
111 inline PublishPackageVersionRequest& WithNamespace(const char* value) { SetNamespace(value); return *this;}
113
115
118 inline const Aws::String& GetPackage() const{ return m_package; }
119 inline bool PackageHasBeenSet() const { return m_packageHasBeenSet; }
120 inline void SetPackage(const Aws::String& value) { m_packageHasBeenSet = true; m_package = value; }
121 inline void SetPackage(Aws::String&& value) { m_packageHasBeenSet = true; m_package = std::move(value); }
122 inline void SetPackage(const char* value) { m_packageHasBeenSet = true; m_package.assign(value); }
123 inline PublishPackageVersionRequest& WithPackage(const Aws::String& value) { SetPackage(value); return *this;}
124 inline PublishPackageVersionRequest& WithPackage(Aws::String&& value) { SetPackage(std::move(value)); return *this;}
125 inline PublishPackageVersionRequest& WithPackage(const char* value) { SetPackage(value); return *this;}
127
129
132 inline const Aws::String& GetPackageVersion() const{ return m_packageVersion; }
133 inline bool PackageVersionHasBeenSet() const { return m_packageVersionHasBeenSet; }
134 inline void SetPackageVersion(const Aws::String& value) { m_packageVersionHasBeenSet = true; m_packageVersion = value; }
135 inline void SetPackageVersion(Aws::String&& value) { m_packageVersionHasBeenSet = true; m_packageVersion = std::move(value); }
136 inline void SetPackageVersion(const char* value) { m_packageVersionHasBeenSet = true; m_packageVersion.assign(value); }
138 inline PublishPackageVersionRequest& WithPackageVersion(Aws::String&& value) { SetPackageVersion(std::move(value)); return *this;}
139 inline PublishPackageVersionRequest& WithPackageVersion(const char* value) { SetPackageVersion(value); return *this;}
141
143
148 inline const Aws::String& GetAssetName() const{ return m_assetName; }
149 inline bool AssetNameHasBeenSet() const { return m_assetNameHasBeenSet; }
150 inline void SetAssetName(const Aws::String& value) { m_assetNameHasBeenSet = true; m_assetName = value; }
151 inline void SetAssetName(Aws::String&& value) { m_assetNameHasBeenSet = true; m_assetName = std::move(value); }
152 inline void SetAssetName(const char* value) { m_assetNameHasBeenSet = true; m_assetName.assign(value); }
153 inline PublishPackageVersionRequest& WithAssetName(const Aws::String& value) { SetAssetName(value); return *this;}
154 inline PublishPackageVersionRequest& WithAssetName(Aws::String&& value) { SetAssetName(std::move(value)); return *this;}
155 inline PublishPackageVersionRequest& WithAssetName(const char* value) { SetAssetName(value); return *this;}
157
159
167 inline const Aws::String& GetAssetSHA256() const{ return m_assetSHA256; }
168 inline bool AssetSHA256HasBeenSet() const { return m_assetSHA256HasBeenSet; }
169 inline void SetAssetSHA256(const Aws::String& value) { m_assetSHA256HasBeenSet = true; m_assetSHA256 = value; }
170 inline void SetAssetSHA256(Aws::String&& value) { m_assetSHA256HasBeenSet = true; m_assetSHA256 = std::move(value); }
171 inline void SetAssetSHA256(const char* value) { m_assetSHA256HasBeenSet = true; m_assetSHA256.assign(value); }
172 inline PublishPackageVersionRequest& WithAssetSHA256(const Aws::String& value) { SetAssetSHA256(value); return *this;}
173 inline PublishPackageVersionRequest& WithAssetSHA256(Aws::String&& value) { SetAssetSHA256(std::move(value)); return *this;}
174 inline PublishPackageVersionRequest& WithAssetSHA256(const char* value) { SetAssetSHA256(value); return *this;}
176
178
186 inline bool GetUnfinished() const{ return m_unfinished; }
187 inline bool UnfinishedHasBeenSet() const { return m_unfinishedHasBeenSet; }
188 inline void SetUnfinished(bool value) { m_unfinishedHasBeenSet = true; m_unfinished = value; }
189 inline PublishPackageVersionRequest& WithUnfinished(bool value) { SetUnfinished(value); return *this;}
191 private:
192
193 Aws::String m_domain;
194 bool m_domainHasBeenSet = false;
195
196 Aws::String m_domainOwner;
197 bool m_domainOwnerHasBeenSet = false;
198
199 Aws::String m_repository;
200 bool m_repositoryHasBeenSet = false;
201
202 PackageFormat m_format;
203 bool m_formatHasBeenSet = false;
204
205 Aws::String m_namespace;
206 bool m_namespaceHasBeenSet = false;
207
208 Aws::String m_package;
209 bool m_packageHasBeenSet = false;
210
211 Aws::String m_packageVersion;
212 bool m_packageVersionHasBeenSet = false;
213
214
215 Aws::String m_assetName;
216 bool m_assetNameHasBeenSet = false;
217
218 Aws::String m_assetSHA256;
219 bool m_assetSHA256HasBeenSet = false;
220
221 bool m_unfinished;
222 bool m_unfinishedHasBeenSet = false;
223 };
224
225} // namespace Model
226} // namespace CodeArtifact
227} // namespace Aws
PublishPackageVersionRequest & WithNamespace(const Aws::String &value)
AWS_CODEARTIFACT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
PublishPackageVersionRequest & WithPackageVersion(const char *value)
PublishPackageVersionRequest & WithDomainOwner(const char *value)
PublishPackageVersionRequest & WithRepository(const char *value)
PublishPackageVersionRequest & WithDomainOwner(Aws::String &&value)
PublishPackageVersionRequest & WithPackage(Aws::String &&value)
PublishPackageVersionRequest & WithAssetSHA256(const Aws::String &value)
PublishPackageVersionRequest & WithFormat(PackageFormat &&value)
PublishPackageVersionRequest & WithNamespace(Aws::String &&value)
AWS_CODEARTIFACT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
PublishPackageVersionRequest & WithRepository(const Aws::String &value)
PublishPackageVersionRequest & WithPackageVersion(Aws::String &&value)
PublishPackageVersionRequest & WithAssetSHA256(const char *value)
PublishPackageVersionRequest & WithRepository(Aws::String &&value)
PublishPackageVersionRequest & WithDomain(Aws::String &&value)
PublishPackageVersionRequest & WithFormat(const PackageFormat &value)
PublishPackageVersionRequest & WithDomainOwner(const Aws::String &value)
PublishPackageVersionRequest & WithPackage(const char *value)
PublishPackageVersionRequest & WithAssetName(const char *value)
PublishPackageVersionRequest & WithDomain(const char *value)
PublishPackageVersionRequest & WithPackageVersion(const Aws::String &value)
PublishPackageVersionRequest & WithDomain(const Aws::String &value)
PublishPackageVersionRequest & WithNamespace(const char *value)
PublishPackageVersionRequest & WithAssetSHA256(Aws::String &&value)
PublishPackageVersionRequest & WithPackage(const Aws::String &value)
PublishPackageVersionRequest & WithAssetName(const Aws::String &value)
PublishPackageVersionRequest & WithAssetName(Aws::String &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String