AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
CreateGlossaryTermRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/datazone/DataZoneRequest.h>
10#include <aws/datazone/DataZone_EXPORTS.h>
11#include <aws/datazone/model/GlossaryTermStatus.h>
12#include <aws/datazone/model/TermRelations.h>
13
14#include <utility>
15
16namespace Aws {
17namespace DataZone {
18namespace Model {
19
23 public:
24 AWS_DATAZONE_API CreateGlossaryTermRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateGlossaryTerm"; }
31
32 AWS_DATAZONE_API Aws::String SerializePayload() const override;
33
35
39 inline const Aws::String& GetDomainIdentifier() const { return m_domainIdentifier; }
40 inline bool DomainIdentifierHasBeenSet() const { return m_domainIdentifierHasBeenSet; }
41 template <typename DomainIdentifierT = Aws::String>
42 void SetDomainIdentifier(DomainIdentifierT&& value) {
43 m_domainIdentifierHasBeenSet = true;
44 m_domainIdentifier = std::forward<DomainIdentifierT>(value);
45 }
46 template <typename DomainIdentifierT = Aws::String>
47 CreateGlossaryTermRequest& WithDomainIdentifier(DomainIdentifierT&& value) {
48 SetDomainIdentifier(std::forward<DomainIdentifierT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetGlossaryIdentifier() const { return m_glossaryIdentifier; }
58 inline bool GlossaryIdentifierHasBeenSet() const { return m_glossaryIdentifierHasBeenSet; }
59 template <typename GlossaryIdentifierT = Aws::String>
60 void SetGlossaryIdentifier(GlossaryIdentifierT&& value) {
61 m_glossaryIdentifierHasBeenSet = true;
62 m_glossaryIdentifier = std::forward<GlossaryIdentifierT>(value);
63 }
64 template <typename GlossaryIdentifierT = Aws::String>
65 CreateGlossaryTermRequest& WithGlossaryIdentifier(GlossaryIdentifierT&& value) {
66 SetGlossaryIdentifier(std::forward<GlossaryIdentifierT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetName() const { return m_name; }
76 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
77 template <typename NameT = Aws::String>
78 void SetName(NameT&& value) {
79 m_nameHasBeenSet = true;
80 m_name = std::forward<NameT>(value);
81 }
82 template <typename NameT = Aws::String>
84 SetName(std::forward<NameT>(value));
85 return *this;
86 }
88
90
93 inline GlossaryTermStatus GetStatus() const { return m_status; }
94 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
95 inline void SetStatus(GlossaryTermStatus value) {
96 m_statusHasBeenSet = true;
97 m_status = value;
98 }
100 SetStatus(value);
101 return *this;
102 }
104
106
109 inline const Aws::String& GetShortDescription() const { return m_shortDescription; }
110 inline bool ShortDescriptionHasBeenSet() const { return m_shortDescriptionHasBeenSet; }
111 template <typename ShortDescriptionT = Aws::String>
112 void SetShortDescription(ShortDescriptionT&& value) {
113 m_shortDescriptionHasBeenSet = true;
114 m_shortDescription = std::forward<ShortDescriptionT>(value);
115 }
116 template <typename ShortDescriptionT = Aws::String>
118 SetShortDescription(std::forward<ShortDescriptionT>(value));
119 return *this;
120 }
122
124
127 inline const Aws::String& GetLongDescription() const { return m_longDescription; }
128 inline bool LongDescriptionHasBeenSet() const { return m_longDescriptionHasBeenSet; }
129 template <typename LongDescriptionT = Aws::String>
130 void SetLongDescription(LongDescriptionT&& value) {
131 m_longDescriptionHasBeenSet = true;
132 m_longDescription = std::forward<LongDescriptionT>(value);
133 }
134 template <typename LongDescriptionT = Aws::String>
136 SetLongDescription(std::forward<LongDescriptionT>(value));
137 return *this;
138 }
140
142
145 inline const TermRelations& GetTermRelations() const { return m_termRelations; }
146 inline bool TermRelationsHasBeenSet() const { return m_termRelationsHasBeenSet; }
147 template <typename TermRelationsT = TermRelations>
148 void SetTermRelations(TermRelationsT&& value) {
149 m_termRelationsHasBeenSet = true;
150 m_termRelations = std::forward<TermRelationsT>(value);
151 }
152 template <typename TermRelationsT = TermRelations>
154 SetTermRelations(std::forward<TermRelationsT>(value));
155 return *this;
156 }
158
160
164 inline const Aws::String& GetClientToken() const { return m_clientToken; }
165 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
166 template <typename ClientTokenT = Aws::String>
167 void SetClientToken(ClientTokenT&& value) {
168 m_clientTokenHasBeenSet = true;
169 m_clientToken = std::forward<ClientTokenT>(value);
170 }
171 template <typename ClientTokenT = Aws::String>
173 SetClientToken(std::forward<ClientTokenT>(value));
174 return *this;
175 }
177 private:
178 Aws::String m_domainIdentifier;
179
180 Aws::String m_glossaryIdentifier;
181
182 Aws::String m_name;
183
185
186 Aws::String m_shortDescription;
187
188 Aws::String m_longDescription;
189
190 TermRelations m_termRelations;
191
193 bool m_domainIdentifierHasBeenSet = false;
194 bool m_glossaryIdentifierHasBeenSet = false;
195 bool m_nameHasBeenSet = false;
196 bool m_statusHasBeenSet = false;
197 bool m_shortDescriptionHasBeenSet = false;
198 bool m_longDescriptionHasBeenSet = false;
199 bool m_termRelationsHasBeenSet = false;
200 bool m_clientTokenHasBeenSet = true;
201};
202
203} // namespace Model
204} // namespace DataZone
205} // namespace Aws
AWS_DATAZONE_API Aws::String SerializePayload() const override
CreateGlossaryTermRequest & WithDomainIdentifier(DomainIdentifierT &&value)
CreateGlossaryTermRequest & WithName(NameT &&value)
CreateGlossaryTermRequest & WithClientToken(ClientTokenT &&value)
CreateGlossaryTermRequest & WithLongDescription(LongDescriptionT &&value)
virtual const char * GetServiceRequestName() const override
CreateGlossaryTermRequest & WithStatus(GlossaryTermStatus value)
CreateGlossaryTermRequest & WithShortDescription(ShortDescriptionT &&value)
CreateGlossaryTermRequest & WithGlossaryIdentifier(GlossaryIdentifierT &&value)
AWS_DATAZONE_API CreateGlossaryTermRequest()=default
CreateGlossaryTermRequest & WithTermRelations(TermRelationsT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String