AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DescribePackageVersionRequest.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 DescribePackageVersionRequest();
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 "DescribePackageVersion"; }
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 DescribePackageVersionRequest& WithDomain(const Aws::String& value) { SetDomain(value); return *this;}
53 inline DescribePackageVersionRequest& WithDomain(Aws::String&& value) { SetDomain(std::move(value)); return *this;}
54 inline DescribePackageVersionRequest& 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 DescribePackageVersionRequest& WithDomainOwner(const Aws::String& value) { SetDomainOwner(value); return *this;}
68 inline DescribePackageVersionRequest& WithDomainOwner(Aws::String&& value) { SetDomainOwner(std::move(value)); return *this;}
69 inline DescribePackageVersionRequest& WithDomainOwner(const char* value) { SetDomainOwner(value); return *this;}
71
73
76 inline const Aws::String& GetRepository() const{ return m_repository; }
77 inline bool RepositoryHasBeenSet() const { return m_repositoryHasBeenSet; }
78 inline void SetRepository(const Aws::String& value) { m_repositoryHasBeenSet = true; m_repository = value; }
79 inline void SetRepository(Aws::String&& value) { m_repositoryHasBeenSet = true; m_repository = std::move(value); }
80 inline void SetRepository(const char* value) { m_repositoryHasBeenSet = true; m_repository.assign(value); }
81 inline DescribePackageVersionRequest& WithRepository(const Aws::String& value) { SetRepository(value); return *this;}
82 inline DescribePackageVersionRequest& WithRepository(Aws::String&& value) { SetRepository(std::move(value)); return *this;}
83 inline DescribePackageVersionRequest& WithRepository(const char* value) { SetRepository(value); return *this;}
85
87
90 inline const PackageFormat& GetFormat() const{ return m_format; }
91 inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
92 inline void SetFormat(const PackageFormat& value) { m_formatHasBeenSet = true; m_format = value; }
93 inline void SetFormat(PackageFormat&& value) { m_formatHasBeenSet = true; m_format = std::move(value); }
94 inline DescribePackageVersionRequest& WithFormat(const PackageFormat& value) { SetFormat(value); return *this;}
95 inline DescribePackageVersionRequest& WithFormat(PackageFormat&& value) { SetFormat(std::move(value)); return *this;}
97
99
112 inline const Aws::String& GetNamespace() const{ return m_namespace; }
113 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
114 inline void SetNamespace(const Aws::String& value) { m_namespaceHasBeenSet = true; m_namespace = value; }
115 inline void SetNamespace(Aws::String&& value) { m_namespaceHasBeenSet = true; m_namespace = std::move(value); }
116 inline void SetNamespace(const char* value) { m_namespaceHasBeenSet = true; m_namespace.assign(value); }
117 inline DescribePackageVersionRequest& WithNamespace(const Aws::String& value) { SetNamespace(value); return *this;}
118 inline DescribePackageVersionRequest& WithNamespace(Aws::String&& value) { SetNamespace(std::move(value)); return *this;}
119 inline DescribePackageVersionRequest& WithNamespace(const char* value) { SetNamespace(value); return *this;}
121
123
126 inline const Aws::String& GetPackage() const{ return m_package; }
127 inline bool PackageHasBeenSet() const { return m_packageHasBeenSet; }
128 inline void SetPackage(const Aws::String& value) { m_packageHasBeenSet = true; m_package = value; }
129 inline void SetPackage(Aws::String&& value) { m_packageHasBeenSet = true; m_package = std::move(value); }
130 inline void SetPackage(const char* value) { m_packageHasBeenSet = true; m_package.assign(value); }
131 inline DescribePackageVersionRequest& WithPackage(const Aws::String& value) { SetPackage(value); return *this;}
132 inline DescribePackageVersionRequest& WithPackage(Aws::String&& value) { SetPackage(std::move(value)); return *this;}
133 inline DescribePackageVersionRequest& WithPackage(const char* value) { SetPackage(value); return *this;}
135
137
141 inline const Aws::String& GetPackageVersion() const{ return m_packageVersion; }
142 inline bool PackageVersionHasBeenSet() const { return m_packageVersionHasBeenSet; }
143 inline void SetPackageVersion(const Aws::String& value) { m_packageVersionHasBeenSet = true; m_packageVersion = value; }
144 inline void SetPackageVersion(Aws::String&& value) { m_packageVersionHasBeenSet = true; m_packageVersion = std::move(value); }
145 inline void SetPackageVersion(const char* value) { m_packageVersionHasBeenSet = true; m_packageVersion.assign(value); }
147 inline DescribePackageVersionRequest& WithPackageVersion(Aws::String&& value) { SetPackageVersion(std::move(value)); return *this;}
148 inline DescribePackageVersionRequest& WithPackageVersion(const char* value) { SetPackageVersion(value); return *this;}
150 private:
151
152 Aws::String m_domain;
153 bool m_domainHasBeenSet = false;
154
155 Aws::String m_domainOwner;
156 bool m_domainOwnerHasBeenSet = false;
157
158 Aws::String m_repository;
159 bool m_repositoryHasBeenSet = false;
160
161 PackageFormat m_format;
162 bool m_formatHasBeenSet = false;
163
164 Aws::String m_namespace;
165 bool m_namespaceHasBeenSet = false;
166
167 Aws::String m_package;
168 bool m_packageHasBeenSet = false;
169
170 Aws::String m_packageVersion;
171 bool m_packageVersionHasBeenSet = false;
172 };
173
174} // namespace Model
175} // namespace CodeArtifact
176} // namespace Aws
DescribePackageVersionRequest & WithPackageVersion(Aws::String &&value)
DescribePackageVersionRequest & WithNamespace(const Aws::String &value)
DescribePackageVersionRequest & WithNamespace(const char *value)
DescribePackageVersionRequest & WithRepository(const Aws::String &value)
DescribePackageVersionRequest & WithDomainOwner(const Aws::String &value)
DescribePackageVersionRequest & WithPackage(Aws::String &&value)
DescribePackageVersionRequest & WithFormat(PackageFormat &&value)
DescribePackageVersionRequest & WithDomainOwner(const char *value)
DescribePackageVersionRequest & WithRepository(const char *value)
DescribePackageVersionRequest & WithRepository(Aws::String &&value)
DescribePackageVersionRequest & WithPackageVersion(const char *value)
DescribePackageVersionRequest & WithPackageVersion(const Aws::String &value)
DescribePackageVersionRequest & WithDomain(const char *value)
DescribePackageVersionRequest & WithPackage(const Aws::String &value)
DescribePackageVersionRequest & WithDomainOwner(Aws::String &&value)
AWS_CODEARTIFACT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
AWS_CODEARTIFACT_API Aws::String SerializePayload() const override
DescribePackageVersionRequest & WithDomain(const Aws::String &value)
DescribePackageVersionRequest & WithDomain(Aws::String &&value)
DescribePackageVersionRequest & WithFormat(const PackageFormat &value)
DescribePackageVersionRequest & WithNamespace(Aws::String &&value)
DescribePackageVersionRequest & WithPackage(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String