AWS SDK for C++

AWS SDK for C++ Version 1.11.553

All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
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() = default;
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 template<typename DomainT = Aws::String>
49 void SetDomain(DomainT&& value) { m_domainHasBeenSet = true; m_domain = std::forward<DomainT>(value); }
50 template<typename DomainT = Aws::String>
51 DeletePackageRequest& WithDomain(DomainT&& value) { SetDomain(std::forward<DomainT>(value)); return *this;}
53
55
59 inline const Aws::String& GetDomainOwner() const { return m_domainOwner; }
60 inline bool DomainOwnerHasBeenSet() const { return m_domainOwnerHasBeenSet; }
61 template<typename DomainOwnerT = Aws::String>
62 void SetDomainOwner(DomainOwnerT&& value) { m_domainOwnerHasBeenSet = true; m_domainOwner = std::forward<DomainOwnerT>(value); }
63 template<typename DomainOwnerT = Aws::String>
64 DeletePackageRequest& WithDomainOwner(DomainOwnerT&& value) { SetDomainOwner(std::forward<DomainOwnerT>(value)); return *this;}
66
68
71 inline const Aws::String& GetRepository() const { return m_repository; }
72 inline bool RepositoryHasBeenSet() const { return m_repositoryHasBeenSet; }
73 template<typename RepositoryT = Aws::String>
74 void SetRepository(RepositoryT&& value) { m_repositoryHasBeenSet = true; m_repository = std::forward<RepositoryT>(value); }
75 template<typename RepositoryT = Aws::String>
76 DeletePackageRequest& WithRepository(RepositoryT&& value) { SetRepository(std::forward<RepositoryT>(value)); return *this;}
78
80
83 inline PackageFormat GetFormat() const { return m_format; }
84 inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
85 inline void SetFormat(PackageFormat value) { m_formatHasBeenSet = true; m_format = value; }
86 inline DeletePackageRequest& WithFormat(PackageFormat value) { SetFormat(value); return *this;}
88
90
102 inline const Aws::String& GetNamespace() const { return m_namespace; }
103 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
104 template<typename NamespaceT = Aws::String>
105 void SetNamespace(NamespaceT&& value) { m_namespaceHasBeenSet = true; m_namespace = std::forward<NamespaceT>(value); }
106 template<typename NamespaceT = Aws::String>
107 DeletePackageRequest& WithNamespace(NamespaceT&& value) { SetNamespace(std::forward<NamespaceT>(value)); return *this;}
109
111
114 inline const Aws::String& GetPackage() const { return m_package; }
115 inline bool PackageHasBeenSet() const { return m_packageHasBeenSet; }
116 template<typename PackageT = Aws::String>
117 void SetPackage(PackageT&& value) { m_packageHasBeenSet = true; m_package = std::forward<PackageT>(value); }
118 template<typename PackageT = Aws::String>
119 DeletePackageRequest& WithPackage(PackageT&& value) { SetPackage(std::forward<PackageT>(value)); return *this;}
121 private:
122
123 Aws::String m_domain;
124 bool m_domainHasBeenSet = false;
125
126 Aws::String m_domainOwner;
127 bool m_domainOwnerHasBeenSet = false;
128
129 Aws::String m_repository;
130 bool m_repositoryHasBeenSet = false;
131
133 bool m_formatHasBeenSet = false;
134
135 Aws::String m_namespace;
136 bool m_namespaceHasBeenSet = false;
137
138 Aws::String m_package;
139 bool m_packageHasBeenSet = false;
140 };
141
142} // namespace Model
143} // namespace CodeArtifact
144} // 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