AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DescribePackageRequest.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 DescribePackageRequest();
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 "DescribePackage"; }
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 DescribePackageRequest& WithDomain(const Aws::String& value) { SetDomain(value); return *this;}
53 inline DescribePackageRequest& WithDomain(Aws::String&& value) { SetDomain(std::move(value)); return *this;}
54 inline DescribePackageRequest& 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 DescribePackageRequest& WithDomainOwner(const Aws::String& value) { SetDomainOwner(value); return *this;}
68 inline DescribePackageRequest& WithDomainOwner(Aws::String&& value) { SetDomainOwner(std::move(value)); return *this;}
69 inline DescribePackageRequest& 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 DescribePackageRequest& WithRepository(const Aws::String& value) { SetRepository(value); return *this;}
82 inline DescribePackageRequest& WithRepository(Aws::String&& value) { SetRepository(std::move(value)); return *this;}
83 inline DescribePackageRequest& 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 DescribePackageRequest& WithFormat(const PackageFormat& value) { SetFormat(value); return *this;}
95 inline DescribePackageRequest& WithFormat(PackageFormat&& value) { SetFormat(std::move(value)); return *this;}
97
99
111 inline const Aws::String& GetNamespace() const{ return m_namespace; }
112 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
113 inline void SetNamespace(const Aws::String& value) { m_namespaceHasBeenSet = true; m_namespace = value; }
114 inline void SetNamespace(Aws::String&& value) { m_namespaceHasBeenSet = true; m_namespace = std::move(value); }
115 inline void SetNamespace(const char* value) { m_namespaceHasBeenSet = true; m_namespace.assign(value); }
116 inline DescribePackageRequest& WithNamespace(const Aws::String& value) { SetNamespace(value); return *this;}
117 inline DescribePackageRequest& WithNamespace(Aws::String&& value) { SetNamespace(std::move(value)); return *this;}
118 inline DescribePackageRequest& WithNamespace(const char* value) { SetNamespace(value); return *this;}
120
122
125 inline const Aws::String& GetPackage() const{ return m_package; }
126 inline bool PackageHasBeenSet() const { return m_packageHasBeenSet; }
127 inline void SetPackage(const Aws::String& value) { m_packageHasBeenSet = true; m_package = value; }
128 inline void SetPackage(Aws::String&& value) { m_packageHasBeenSet = true; m_package = std::move(value); }
129 inline void SetPackage(const char* value) { m_packageHasBeenSet = true; m_package.assign(value); }
130 inline DescribePackageRequest& WithPackage(const Aws::String& value) { SetPackage(value); return *this;}
131 inline DescribePackageRequest& WithPackage(Aws::String&& value) { SetPackage(std::move(value)); return *this;}
132 inline DescribePackageRequest& WithPackage(const char* value) { SetPackage(value); return *this;}
134 private:
135
136 Aws::String m_domain;
137 bool m_domainHasBeenSet = false;
138
139 Aws::String m_domainOwner;
140 bool m_domainOwnerHasBeenSet = false;
141
142 Aws::String m_repository;
143 bool m_repositoryHasBeenSet = false;
144
145 PackageFormat m_format;
146 bool m_formatHasBeenSet = false;
147
148 Aws::String m_namespace;
149 bool m_namespaceHasBeenSet = false;
150
151 Aws::String m_package;
152 bool m_packageHasBeenSet = false;
153 };
154
155} // namespace Model
156} // namespace CodeArtifact
157} // namespace Aws
DescribePackageRequest & WithFormat(const PackageFormat &value)
DescribePackageRequest & WithNamespace(const char *value)
DescribePackageRequest & WithRepository(Aws::String &&value)
AWS_CODEARTIFACT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
DescribePackageRequest & WithDomainOwner(const char *value)
DescribePackageRequest & WithNamespace(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
DescribePackageRequest & WithPackage(const Aws::String &value)
DescribePackageRequest & WithDomainOwner(const Aws::String &value)
DescribePackageRequest & WithDomain(Aws::String &&value)
DescribePackageRequest & WithPackage(Aws::String &&value)
DescribePackageRequest & WithDomain(const Aws::String &value)
DescribePackageRequest & WithPackage(const char *value)
DescribePackageRequest & WithRepository(const char *value)
DescribePackageRequest & WithRepository(const Aws::String &value)
AWS_CODEARTIFACT_API Aws::String SerializePayload() const override
DescribePackageRequest & WithFormat(PackageFormat &&value)
DescribePackageRequest & WithDomainOwner(Aws::String &&value)
DescribePackageRequest & WithDomain(const char *value)
DescribePackageRequest & WithNamespace(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String