AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DeletePackageRequest.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 DeletePackageRequest();
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 "DeletePackage"; }
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
46 inline const Aws::String& GetDomain() const{ return m_domain; }
47 inline bool DomainHasBeenSet() const { return m_domainHasBeenSet; }
48 inline void SetDomain(const Aws::String& value) { m_domainHasBeenSet = true; m_domain = value; }
49 inline void SetDomain(Aws::String&& value) { m_domainHasBeenSet = true; m_domain = std::move(value); }
50 inline void SetDomain(const char* value) { m_domainHasBeenSet = true; m_domain.assign(value); }
51 inline DeletePackageRequest& WithDomain(const Aws::String& value) { SetDomain(value); return *this;}
52 inline DeletePackageRequest& WithDomain(Aws::String&& value) { SetDomain(std::move(value)); return *this;}
53 inline DeletePackageRequest& WithDomain(const char* value) { SetDomain(value); return *this;}
55
57
61 inline const Aws::String& GetDomainOwner() const{ return m_domainOwner; }
62 inline bool DomainOwnerHasBeenSet() const { return m_domainOwnerHasBeenSet; }
63 inline void SetDomainOwner(const Aws::String& value) { m_domainOwnerHasBeenSet = true; m_domainOwner = value; }
64 inline void SetDomainOwner(Aws::String&& value) { m_domainOwnerHasBeenSet = true; m_domainOwner = std::move(value); }
65 inline void SetDomainOwner(const char* value) { m_domainOwnerHasBeenSet = true; m_domainOwner.assign(value); }
66 inline DeletePackageRequest& WithDomainOwner(const Aws::String& value) { SetDomainOwner(value); return *this;}
67 inline DeletePackageRequest& WithDomainOwner(Aws::String&& value) { SetDomainOwner(std::move(value)); return *this;}
68 inline DeletePackageRequest& WithDomainOwner(const char* value) { SetDomainOwner(value); return *this;}
70
72
75 inline const Aws::String& GetRepository() const{ return m_repository; }
76 inline bool RepositoryHasBeenSet() const { return m_repositoryHasBeenSet; }
77 inline void SetRepository(const Aws::String& value) { m_repositoryHasBeenSet = true; m_repository = value; }
78 inline void SetRepository(Aws::String&& value) { m_repositoryHasBeenSet = true; m_repository = std::move(value); }
79 inline void SetRepository(const char* value) { m_repositoryHasBeenSet = true; m_repository.assign(value); }
80 inline DeletePackageRequest& WithRepository(const Aws::String& value) { SetRepository(value); return *this;}
81 inline DeletePackageRequest& WithRepository(Aws::String&& value) { SetRepository(std::move(value)); return *this;}
82 inline DeletePackageRequest& WithRepository(const char* value) { SetRepository(value); return *this;}
84
86
89 inline const PackageFormat& GetFormat() const{ return m_format; }
90 inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
91 inline void SetFormat(const PackageFormat& value) { m_formatHasBeenSet = true; m_format = value; }
92 inline void SetFormat(PackageFormat&& value) { m_formatHasBeenSet = true; m_format = std::move(value); }
93 inline DeletePackageRequest& WithFormat(const PackageFormat& value) { SetFormat(value); return *this;}
94 inline DeletePackageRequest& WithFormat(PackageFormat&& value) { SetFormat(std::move(value)); return *this;}
96
98
110 inline const Aws::String& GetNamespace() const{ return m_namespace; }
111 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
112 inline void SetNamespace(const Aws::String& value) { m_namespaceHasBeenSet = true; m_namespace = value; }
113 inline void SetNamespace(Aws::String&& value) { m_namespaceHasBeenSet = true; m_namespace = std::move(value); }
114 inline void SetNamespace(const char* value) { m_namespaceHasBeenSet = true; m_namespace.assign(value); }
115 inline DeletePackageRequest& WithNamespace(const Aws::String& value) { SetNamespace(value); return *this;}
116 inline DeletePackageRequest& WithNamespace(Aws::String&& value) { SetNamespace(std::move(value)); return *this;}
117 inline DeletePackageRequest& WithNamespace(const char* value) { SetNamespace(value); return *this;}
119
121
124 inline const Aws::String& GetPackage() const{ return m_package; }
125 inline bool PackageHasBeenSet() const { return m_packageHasBeenSet; }
126 inline void SetPackage(const Aws::String& value) { m_packageHasBeenSet = true; m_package = value; }
127 inline void SetPackage(Aws::String&& value) { m_packageHasBeenSet = true; m_package = std::move(value); }
128 inline void SetPackage(const char* value) { m_packageHasBeenSet = true; m_package.assign(value); }
129 inline DeletePackageRequest& WithPackage(const Aws::String& value) { SetPackage(value); return *this;}
130 inline DeletePackageRequest& WithPackage(Aws::String&& value) { SetPackage(std::move(value)); return *this;}
131 inline DeletePackageRequest& WithPackage(const char* value) { SetPackage(value); return *this;}
133 private:
134
135 Aws::String m_domain;
136 bool m_domainHasBeenSet = false;
137
138 Aws::String m_domainOwner;
139 bool m_domainOwnerHasBeenSet = false;
140
141 Aws::String m_repository;
142 bool m_repositoryHasBeenSet = false;
143
144 PackageFormat m_format;
145 bool m_formatHasBeenSet = false;
146
147 Aws::String m_namespace;
148 bool m_namespaceHasBeenSet = false;
149
150 Aws::String m_package;
151 bool m_packageHasBeenSet = false;
152 };
153
154} // namespace Model
155} // namespace CodeArtifact
156} // namespace Aws
DeletePackageRequest & WithNamespace(const Aws::String &value)
DeletePackageRequest & WithDomain(const char *value)
DeletePackageRequest & WithRepository(const Aws::String &value)
DeletePackageRequest & WithPackage(const char *value)
DeletePackageRequest & WithDomainOwner(const Aws::String &value)
DeletePackageRequest & WithNamespace(Aws::String &&value)
DeletePackageRequest & WithFormat(const PackageFormat &value)
DeletePackageRequest & WithDomain(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
AWS_CODEARTIFACT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
DeletePackageRequest & WithRepository(const char *value)
DeletePackageRequest & WithFormat(PackageFormat &&value)
DeletePackageRequest & WithDomain(const Aws::String &value)
DeletePackageRequest & WithNamespace(const char *value)
DeletePackageRequest & WithPackage(const Aws::String &value)
DeletePackageRequest & WithDomainOwner(Aws::String &&value)
AWS_CODEARTIFACT_API Aws::String SerializePayload() const override
DeletePackageRequest & WithPackage(Aws::String &&value)
DeletePackageRequest & WithDomainOwner(const char *value)
DeletePackageRequest & WithRepository(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String