AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CreatePackageGroupRequest.h
1
6#pragma once
7#include <aws/codeartifact/CodeArtifactRequest.h>
8#include <aws/codeartifact/CodeArtifact_EXPORTS.h>
9#include <aws/codeartifact/model/Tag.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Http {
17class URI;
18} // namespace Http
19namespace CodeArtifact {
20namespace Model {
21
25 public:
26 AWS_CODEARTIFACT_API CreatePackageGroupRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreatePackageGroup"; }
33
34 AWS_CODEARTIFACT_API Aws::String SerializePayload() const override;
35
36 AWS_CODEARTIFACT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
37
39
42 inline const Aws::String& GetDomain() const { return m_domain; }
43 inline bool DomainHasBeenSet() const { return m_domainHasBeenSet; }
44 template <typename DomainT = Aws::String>
45 void SetDomain(DomainT&& value) {
46 m_domainHasBeenSet = true;
47 m_domain = std::forward<DomainT>(value);
48 }
49 template <typename DomainT = Aws::String>
51 SetDomain(std::forward<DomainT>(value));
52 return *this;
53 }
55
57
61 inline const Aws::String& GetDomainOwner() const { return m_domainOwner; }
62 inline bool DomainOwnerHasBeenSet() const { return m_domainOwnerHasBeenSet; }
63 template <typename DomainOwnerT = Aws::String>
64 void SetDomainOwner(DomainOwnerT&& value) {
65 m_domainOwnerHasBeenSet = true;
66 m_domainOwner = std::forward<DomainOwnerT>(value);
67 }
68 template <typename DomainOwnerT = Aws::String>
70 SetDomainOwner(std::forward<DomainOwnerT>(value));
71 return *this;
72 }
74
76
80 inline const Aws::String& GetPackageGroup() const { return m_packageGroup; }
81 inline bool PackageGroupHasBeenSet() const { return m_packageGroupHasBeenSet; }
82 template <typename PackageGroupT = Aws::String>
83 void SetPackageGroup(PackageGroupT&& value) {
84 m_packageGroupHasBeenSet = true;
85 m_packageGroup = std::forward<PackageGroupT>(value);
86 }
87 template <typename PackageGroupT = Aws::String>
89 SetPackageGroup(std::forward<PackageGroupT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::String& GetContactInfo() const { return m_contactInfo; }
99 inline bool ContactInfoHasBeenSet() const { return m_contactInfoHasBeenSet; }
100 template <typename ContactInfoT = Aws::String>
101 void SetContactInfo(ContactInfoT&& value) {
102 m_contactInfoHasBeenSet = true;
103 m_contactInfo = std::forward<ContactInfoT>(value);
104 }
105 template <typename ContactInfoT = Aws::String>
107 SetContactInfo(std::forward<ContactInfoT>(value));
108 return *this;
109 }
111
113
116 inline const Aws::String& GetDescription() const { return m_description; }
117 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
118 template <typename DescriptionT = Aws::String>
119 void SetDescription(DescriptionT&& value) {
120 m_descriptionHasBeenSet = true;
121 m_description = std::forward<DescriptionT>(value);
122 }
123 template <typename DescriptionT = Aws::String>
125 SetDescription(std::forward<DescriptionT>(value));
126 return *this;
127 }
129
131
134 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
135 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
136 template <typename TagsT = Aws::Vector<Tag>>
137 void SetTags(TagsT&& value) {
138 m_tagsHasBeenSet = true;
139 m_tags = std::forward<TagsT>(value);
140 }
141 template <typename TagsT = Aws::Vector<Tag>>
143 SetTags(std::forward<TagsT>(value));
144 return *this;
145 }
146 template <typename TagsT = Tag>
148 m_tagsHasBeenSet = true;
149 m_tags.emplace_back(std::forward<TagsT>(value));
150 return *this;
151 }
153 private:
154 Aws::String m_domain;
155
156 Aws::String m_domainOwner;
157
158 Aws::String m_packageGroup;
159
160 Aws::String m_contactInfo;
161
162 Aws::String m_description;
163
164 Aws::Vector<Tag> m_tags;
165 bool m_domainHasBeenSet = false;
166 bool m_domainOwnerHasBeenSet = false;
167 bool m_packageGroupHasBeenSet = false;
168 bool m_contactInfoHasBeenSet = false;
169 bool m_descriptionHasBeenSet = false;
170 bool m_tagsHasBeenSet = false;
171};
172
173} // namespace Model
174} // namespace CodeArtifact
175} // namespace Aws
CreatePackageGroupRequest & WithTags(TagsT &&value)
CreatePackageGroupRequest & WithDescription(DescriptionT &&value)
CreatePackageGroupRequest & WithPackageGroup(PackageGroupT &&value)
CreatePackageGroupRequest & WithDomain(DomainT &&value)
CreatePackageGroupRequest & AddTags(TagsT &&value)
AWS_CODEARTIFACT_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
CreatePackageGroupRequest & WithDomainOwner(DomainOwnerT &&value)
AWS_CODEARTIFACT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
AWS_CODEARTIFACT_API CreatePackageGroupRequest()=default
CreatePackageGroupRequest & WithContactInfo(ContactInfoT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector