AWS SDK for C++

AWS SDK for C++ Version 1.11.695

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& GetClientToken() const { return m_clientToken; }
40 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
41 template <typename ClientTokenT = Aws::String>
42 void SetClientToken(ClientTokenT&& value) {
43 m_clientTokenHasBeenSet = true;
44 m_clientToken = std::forward<ClientTokenT>(value);
45 }
46 template <typename ClientTokenT = Aws::String>
48 SetClientToken(std::forward<ClientTokenT>(value));
49 return *this;
50 }
52
54
58 inline const Aws::String& GetDomainIdentifier() const { return m_domainIdentifier; }
59 inline bool DomainIdentifierHasBeenSet() const { return m_domainIdentifierHasBeenSet; }
60 template <typename DomainIdentifierT = Aws::String>
61 void SetDomainIdentifier(DomainIdentifierT&& value) {
62 m_domainIdentifierHasBeenSet = true;
63 m_domainIdentifier = std::forward<DomainIdentifierT>(value);
64 }
65 template <typename DomainIdentifierT = Aws::String>
66 CreateGlossaryTermRequest& WithDomainIdentifier(DomainIdentifierT&& value) {
67 SetDomainIdentifier(std::forward<DomainIdentifierT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetGlossaryIdentifier() const { return m_glossaryIdentifier; }
77 inline bool GlossaryIdentifierHasBeenSet() const { return m_glossaryIdentifierHasBeenSet; }
78 template <typename GlossaryIdentifierT = Aws::String>
79 void SetGlossaryIdentifier(GlossaryIdentifierT&& value) {
80 m_glossaryIdentifierHasBeenSet = true;
81 m_glossaryIdentifier = std::forward<GlossaryIdentifierT>(value);
82 }
83 template <typename GlossaryIdentifierT = Aws::String>
84 CreateGlossaryTermRequest& WithGlossaryIdentifier(GlossaryIdentifierT&& value) {
85 SetGlossaryIdentifier(std::forward<GlossaryIdentifierT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::String& GetLongDescription() const { return m_longDescription; }
95 inline bool LongDescriptionHasBeenSet() const { return m_longDescriptionHasBeenSet; }
96 template <typename LongDescriptionT = Aws::String>
97 void SetLongDescription(LongDescriptionT&& value) {
98 m_longDescriptionHasBeenSet = true;
99 m_longDescription = std::forward<LongDescriptionT>(value);
100 }
101 template <typename LongDescriptionT = Aws::String>
103 SetLongDescription(std::forward<LongDescriptionT>(value));
104 return *this;
105 }
107
109
112 inline const Aws::String& GetName() const { return m_name; }
113 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
114 template <typename NameT = Aws::String>
115 void SetName(NameT&& value) {
116 m_nameHasBeenSet = true;
117 m_name = std::forward<NameT>(value);
118 }
119 template <typename NameT = Aws::String>
121 SetName(std::forward<NameT>(value));
122 return *this;
123 }
125
127
130 inline const Aws::String& GetShortDescription() const { return m_shortDescription; }
131 inline bool ShortDescriptionHasBeenSet() const { return m_shortDescriptionHasBeenSet; }
132 template <typename ShortDescriptionT = Aws::String>
133 void SetShortDescription(ShortDescriptionT&& value) {
134 m_shortDescriptionHasBeenSet = true;
135 m_shortDescription = std::forward<ShortDescriptionT>(value);
136 }
137 template <typename ShortDescriptionT = Aws::String>
139 SetShortDescription(std::forward<ShortDescriptionT>(value));
140 return *this;
141 }
143
145
148 inline GlossaryTermStatus GetStatus() const { return m_status; }
149 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
150 inline void SetStatus(GlossaryTermStatus value) {
151 m_statusHasBeenSet = true;
152 m_status = value;
153 }
155 SetStatus(value);
156 return *this;
157 }
159
161
164 inline const TermRelations& GetTermRelations() const { return m_termRelations; }
165 inline bool TermRelationsHasBeenSet() const { return m_termRelationsHasBeenSet; }
166 template <typename TermRelationsT = TermRelations>
167 void SetTermRelations(TermRelationsT&& value) {
168 m_termRelationsHasBeenSet = true;
169 m_termRelations = std::forward<TermRelationsT>(value);
170 }
171 template <typename TermRelationsT = TermRelations>
173 SetTermRelations(std::forward<TermRelationsT>(value));
174 return *this;
175 }
177 private:
179 bool m_clientTokenHasBeenSet = true;
180
181 Aws::String m_domainIdentifier;
182 bool m_domainIdentifierHasBeenSet = false;
183
184 Aws::String m_glossaryIdentifier;
185 bool m_glossaryIdentifierHasBeenSet = false;
186
187 Aws::String m_longDescription;
188 bool m_longDescriptionHasBeenSet = false;
189
190 Aws::String m_name;
191 bool m_nameHasBeenSet = false;
192
193 Aws::String m_shortDescription;
194 bool m_shortDescriptionHasBeenSet = false;
195
197 bool m_statusHasBeenSet = false;
198
199 TermRelations m_termRelations;
200 bool m_termRelationsHasBeenSet = false;
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