AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DeletePackageRequest.h
1
6#pragma once
7#include <aws/codeartifact/CodeArtifactRequest.h>
8#include <aws/codeartifact/CodeArtifact_EXPORTS.h>
9#include <aws/codeartifact/model/PackageFormat.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Http {
16class URI;
17} // namespace Http
18namespace CodeArtifact {
19namespace Model {
20
24 public:
25 AWS_CODEARTIFACT_API DeletePackageRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "DeletePackage"; }
32
33 AWS_CODEARTIFACT_API Aws::String SerializePayload() const override;
34
35 AWS_CODEARTIFACT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
36
38
41 inline const Aws::String& GetDomain() const { return m_domain; }
42 inline bool DomainHasBeenSet() const { return m_domainHasBeenSet; }
43 template <typename DomainT = Aws::String>
44 void SetDomain(DomainT&& value) {
45 m_domainHasBeenSet = true;
46 m_domain = std::forward<DomainT>(value);
47 }
48 template <typename DomainT = Aws::String>
49 DeletePackageRequest& WithDomain(DomainT&& value) {
50 SetDomain(std::forward<DomainT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::String& GetDomainOwner() const { return m_domainOwner; }
61 inline bool DomainOwnerHasBeenSet() const { return m_domainOwnerHasBeenSet; }
62 template <typename DomainOwnerT = Aws::String>
63 void SetDomainOwner(DomainOwnerT&& value) {
64 m_domainOwnerHasBeenSet = true;
65 m_domainOwner = std::forward<DomainOwnerT>(value);
66 }
67 template <typename DomainOwnerT = Aws::String>
68 DeletePackageRequest& WithDomainOwner(DomainOwnerT&& value) {
69 SetDomainOwner(std::forward<DomainOwnerT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetRepository() const { return m_repository; }
79 inline bool RepositoryHasBeenSet() const { return m_repositoryHasBeenSet; }
80 template <typename RepositoryT = Aws::String>
81 void SetRepository(RepositoryT&& value) {
82 m_repositoryHasBeenSet = true;
83 m_repository = std::forward<RepositoryT>(value);
84 }
85 template <typename RepositoryT = Aws::String>
86 DeletePackageRequest& WithRepository(RepositoryT&& value) {
87 SetRepository(std::forward<RepositoryT>(value));
88 return *this;
89 }
91
93
96 inline PackageFormat GetFormat() const { return m_format; }
97 inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
98 inline void SetFormat(PackageFormat value) {
99 m_formatHasBeenSet = true;
100 m_format = value;
101 }
103 SetFormat(value);
104 return *this;
105 }
107
109
121 inline const Aws::String& GetNamespace() const { return m_namespace; }
122 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
123 template <typename NamespaceT = Aws::String>
124 void SetNamespace(NamespaceT&& value) {
125 m_namespaceHasBeenSet = true;
126 m_namespace = std::forward<NamespaceT>(value);
127 }
128 template <typename NamespaceT = Aws::String>
129 DeletePackageRequest& WithNamespace(NamespaceT&& value) {
130 SetNamespace(std::forward<NamespaceT>(value));
131 return *this;
132 }
134
136
139 inline const Aws::String& GetPackage() const { return m_package; }
140 inline bool PackageHasBeenSet() const { return m_packageHasBeenSet; }
141 template <typename PackageT = Aws::String>
142 void SetPackage(PackageT&& value) {
143 m_packageHasBeenSet = true;
144 m_package = std::forward<PackageT>(value);
145 }
146 template <typename PackageT = Aws::String>
148 SetPackage(std::forward<PackageT>(value));
149 return *this;
150 }
152 private:
153 Aws::String m_domain;
154
155 Aws::String m_domainOwner;
156
157 Aws::String m_repository;
158
160
161 Aws::String m_namespace;
162
163 Aws::String m_package;
164 bool m_domainHasBeenSet = false;
165 bool m_domainOwnerHasBeenSet = false;
166 bool m_repositoryHasBeenSet = false;
167 bool m_formatHasBeenSet = false;
168 bool m_namespaceHasBeenSet = false;
169 bool m_packageHasBeenSet = false;
170};
171
172} // namespace Model
173} // namespace CodeArtifact
174} // namespace Aws
AWS_CODEARTIFACT_API DeletePackageRequest()=default
DeletePackageRequest & WithRepository(RepositoryT &&value)
virtual const char * GetServiceRequestName() const override
AWS_CODEARTIFACT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
DeletePackageRequest & WithFormat(PackageFormat value)
DeletePackageRequest & WithNamespace(NamespaceT &&value)
DeletePackageRequest & WithPackage(PackageT &&value)
AWS_CODEARTIFACT_API Aws::String SerializePayload() const override
DeletePackageRequest & WithDomain(DomainT &&value)
DeletePackageRequest & WithDomainOwner(DomainOwnerT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String