AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetPackageVersionAssetRequest.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 <utility>
12
13namespace Aws
14{
15namespace Http
16{
17 class URI;
18} //namespace Http
19namespace CodeArtifact
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_CODEARTIFACT_API GetPackageVersionAssetRequest();
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "GetPackageVersionAsset"; }
36
37 AWS_CODEARTIFACT_API Aws::String SerializePayload() const override;
38
39 AWS_CODEARTIFACT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
40
41
43
47 inline const Aws::String& GetDomain() const{ return m_domain; }
48 inline bool DomainHasBeenSet() const { return m_domainHasBeenSet; }
49 inline void SetDomain(const Aws::String& value) { m_domainHasBeenSet = true; m_domain = value; }
50 inline void SetDomain(Aws::String&& value) { m_domainHasBeenSet = true; m_domain = std::move(value); }
51 inline void SetDomain(const char* value) { m_domainHasBeenSet = true; m_domain.assign(value); }
52 inline GetPackageVersionAssetRequest& WithDomain(const Aws::String& value) { SetDomain(value); return *this;}
53 inline GetPackageVersionAssetRequest& WithDomain(Aws::String&& value) { SetDomain(std::move(value)); return *this;}
54 inline GetPackageVersionAssetRequest& WithDomain(const char* value) { SetDomain(value); return *this;}
56
58
62 inline const Aws::String& GetDomainOwner() const{ return m_domainOwner; }
63 inline bool DomainOwnerHasBeenSet() const { return m_domainOwnerHasBeenSet; }
64 inline void SetDomainOwner(const Aws::String& value) { m_domainOwnerHasBeenSet = true; m_domainOwner = value; }
65 inline void SetDomainOwner(Aws::String&& value) { m_domainOwnerHasBeenSet = true; m_domainOwner = std::move(value); }
66 inline void SetDomainOwner(const char* value) { m_domainOwnerHasBeenSet = true; m_domainOwner.assign(value); }
67 inline GetPackageVersionAssetRequest& WithDomainOwner(const Aws::String& value) { SetDomainOwner(value); return *this;}
68 inline GetPackageVersionAssetRequest& WithDomainOwner(Aws::String&& value) { SetDomainOwner(std::move(value)); return *this;}
69 inline GetPackageVersionAssetRequest& WithDomainOwner(const char* value) { SetDomainOwner(value); return *this;}
71
73
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 GetPackageVersionAssetRequest& WithRepository(const Aws::String& value) { SetRepository(value); return *this;}
83 inline GetPackageVersionAssetRequest& WithRepository(Aws::String&& value) { SetRepository(std::move(value)); return *this;}
84 inline GetPackageVersionAssetRequest& 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 GetPackageVersionAssetRequest& WithFormat(const PackageFormat& value) { SetFormat(value); return *this;}
97 inline GetPackageVersionAssetRequest& 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 GetPackageVersionAssetRequest& WithNamespace(const Aws::String& value) { SetNamespace(value); return *this;}
120 inline GetPackageVersionAssetRequest& WithNamespace(Aws::String&& value) { SetNamespace(std::move(value)); return *this;}
121 inline GetPackageVersionAssetRequest& 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 GetPackageVersionAssetRequest& WithPackage(const Aws::String& value) { SetPackage(value); return *this;}
134 inline GetPackageVersionAssetRequest& WithPackage(Aws::String&& value) { SetPackage(std::move(value)); return *this;}
135 inline GetPackageVersionAssetRequest& WithPackage(const char* value) { SetPackage(value); return *this;}
137
139
143 inline const Aws::String& GetPackageVersion() const{ return m_packageVersion; }
144 inline bool PackageVersionHasBeenSet() const { return m_packageVersionHasBeenSet; }
145 inline void SetPackageVersion(const Aws::String& value) { m_packageVersionHasBeenSet = true; m_packageVersion = value; }
146 inline void SetPackageVersion(Aws::String&& value) { m_packageVersionHasBeenSet = true; m_packageVersion = std::move(value); }
147 inline void SetPackageVersion(const char* value) { m_packageVersionHasBeenSet = true; m_packageVersion.assign(value); }
149 inline GetPackageVersionAssetRequest& WithPackageVersion(Aws::String&& value) { SetPackageVersion(std::move(value)); return *this;}
150 inline GetPackageVersionAssetRequest& WithPackageVersion(const char* value) { SetPackageVersion(value); return *this;}
152
154
157 inline const Aws::String& GetAsset() const{ return m_asset; }
158 inline bool AssetHasBeenSet() const { return m_assetHasBeenSet; }
159 inline void SetAsset(const Aws::String& value) { m_assetHasBeenSet = true; m_asset = value; }
160 inline void SetAsset(Aws::String&& value) { m_assetHasBeenSet = true; m_asset = std::move(value); }
161 inline void SetAsset(const char* value) { m_assetHasBeenSet = true; m_asset.assign(value); }
162 inline GetPackageVersionAssetRequest& WithAsset(const Aws::String& value) { SetAsset(value); return *this;}
163 inline GetPackageVersionAssetRequest& WithAsset(Aws::String&& value) { SetAsset(std::move(value)); return *this;}
164 inline GetPackageVersionAssetRequest& WithAsset(const char* value) { SetAsset(value); return *this;}
166
168
172 inline const Aws::String& GetPackageVersionRevision() const{ return m_packageVersionRevision; }
173 inline bool PackageVersionRevisionHasBeenSet() const { return m_packageVersionRevisionHasBeenSet; }
174 inline void SetPackageVersionRevision(const Aws::String& value) { m_packageVersionRevisionHasBeenSet = true; m_packageVersionRevision = value; }
175 inline void SetPackageVersionRevision(Aws::String&& value) { m_packageVersionRevisionHasBeenSet = true; m_packageVersionRevision = std::move(value); }
176 inline void SetPackageVersionRevision(const char* value) { m_packageVersionRevisionHasBeenSet = true; m_packageVersionRevision.assign(value); }
181 private:
182
183 Aws::String m_domain;
184 bool m_domainHasBeenSet = false;
185
186 Aws::String m_domainOwner;
187 bool m_domainOwnerHasBeenSet = false;
188
189 Aws::String m_repository;
190 bool m_repositoryHasBeenSet = false;
191
192 PackageFormat m_format;
193 bool m_formatHasBeenSet = false;
194
195 Aws::String m_namespace;
196 bool m_namespaceHasBeenSet = false;
197
198 Aws::String m_package;
199 bool m_packageHasBeenSet = false;
200
201 Aws::String m_packageVersion;
202 bool m_packageVersionHasBeenSet = false;
203
204 Aws::String m_asset;
205 bool m_assetHasBeenSet = false;
206
207 Aws::String m_packageVersionRevision;
208 bool m_packageVersionRevisionHasBeenSet = false;
209 };
210
211} // namespace Model
212} // namespace CodeArtifact
213} // namespace Aws
GetPackageVersionAssetRequest & WithNamespace(const Aws::String &value)
GetPackageVersionAssetRequest & WithRepository(Aws::String &&value)
GetPackageVersionAssetRequest & WithDomainOwner(Aws::String &&value)
GetPackageVersionAssetRequest & WithRepository(const Aws::String &value)
GetPackageVersionAssetRequest & WithFormat(PackageFormat &&value)
GetPackageVersionAssetRequest & WithAsset(const char *value)
GetPackageVersionAssetRequest & WithAsset(Aws::String &&value)
GetPackageVersionAssetRequest & WithPackage(const char *value)
GetPackageVersionAssetRequest & WithRepository(const char *value)
AWS_CODEARTIFACT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
GetPackageVersionAssetRequest & WithPackageVersionRevision(const Aws::String &value)
GetPackageVersionAssetRequest & WithDomain(const char *value)
GetPackageVersionAssetRequest & WithDomain(const Aws::String &value)
GetPackageVersionAssetRequest & WithFormat(const PackageFormat &value)
GetPackageVersionAssetRequest & WithNamespace(const char *value)
GetPackageVersionAssetRequest & WithDomain(Aws::String &&value)
GetPackageVersionAssetRequest & WithNamespace(Aws::String &&value)
GetPackageVersionAssetRequest & WithAsset(const Aws::String &value)
GetPackageVersionAssetRequest & WithPackageVersionRevision(Aws::String &&value)
GetPackageVersionAssetRequest & WithPackageVersion(const Aws::String &value)
GetPackageVersionAssetRequest & WithDomainOwner(const char *value)
AWS_CODEARTIFACT_API Aws::String SerializePayload() const override
GetPackageVersionAssetRequest & WithPackageVersion(const char *value)
GetPackageVersionAssetRequest & WithPackage(const Aws::String &value)
GetPackageVersionAssetRequest & WithPackage(Aws::String &&value)
GetPackageVersionAssetRequest & WithDomainOwner(const Aws::String &value)
GetPackageVersionAssetRequest & WithPackageVersion(Aws::String &&value)
GetPackageVersionAssetRequest & WithPackageVersionRevision(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String