AWS SDK for C++

AWS SDK for C++ Version 1.11.638

Loading...
Searching...
No Matches
CreateGlossaryTermResult.h
1
6#pragma once
7#include <aws/datazone/DataZone_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/datazone/model/GlossaryTermStatus.h>
10#include <aws/datazone/model/TermRelations.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/datazone/model/GlossaryUsageRestriction.h>
13#include <utility>
14
15namespace Aws
16{
17template<typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace DataZone
28{
29namespace Model
30{
32 {
33 public:
34 AWS_DATAZONE_API CreateGlossaryTermResult() = default;
37
38
40
44 inline const Aws::String& GetDomainId() const { return m_domainId; }
45 template<typename DomainIdT = Aws::String>
46 void SetDomainId(DomainIdT&& value) { m_domainIdHasBeenSet = true; m_domainId = std::forward<DomainIdT>(value); }
47 template<typename DomainIdT = Aws::String>
48 CreateGlossaryTermResult& WithDomainId(DomainIdT&& value) { SetDomainId(std::forward<DomainIdT>(value)); return *this;}
50
52
55 inline const Aws::String& GetGlossaryId() const { return m_glossaryId; }
56 template<typename GlossaryIdT = Aws::String>
57 void SetGlossaryId(GlossaryIdT&& value) { m_glossaryIdHasBeenSet = true; m_glossaryId = std::forward<GlossaryIdT>(value); }
58 template<typename GlossaryIdT = Aws::String>
59 CreateGlossaryTermResult& WithGlossaryId(GlossaryIdT&& value) { SetGlossaryId(std::forward<GlossaryIdT>(value)); return *this;}
61
63
66 inline const Aws::String& GetId() const { return m_id; }
67 template<typename IdT = Aws::String>
68 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
69 template<typename IdT = Aws::String>
70 CreateGlossaryTermResult& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
72
74
77 inline const Aws::String& GetLongDescription() const { return m_longDescription; }
78 template<typename LongDescriptionT = Aws::String>
79 void SetLongDescription(LongDescriptionT&& value) { m_longDescriptionHasBeenSet = true; m_longDescription = std::forward<LongDescriptionT>(value); }
80 template<typename LongDescriptionT = Aws::String>
81 CreateGlossaryTermResult& WithLongDescription(LongDescriptionT&& value) { SetLongDescription(std::forward<LongDescriptionT>(value)); return *this;}
83
85
88 inline const Aws::String& GetName() const { return m_name; }
89 template<typename NameT = Aws::String>
90 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
91 template<typename NameT = Aws::String>
92 CreateGlossaryTermResult& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
94
96
99 inline const Aws::String& GetShortDescription() const { return m_shortDescription; }
100 template<typename ShortDescriptionT = Aws::String>
101 void SetShortDescription(ShortDescriptionT&& value) { m_shortDescriptionHasBeenSet = true; m_shortDescription = std::forward<ShortDescriptionT>(value); }
102 template<typename ShortDescriptionT = Aws::String>
103 CreateGlossaryTermResult& WithShortDescription(ShortDescriptionT&& value) { SetShortDescription(std::forward<ShortDescriptionT>(value)); return *this;}
105
107
110 inline GlossaryTermStatus GetStatus() const { return m_status; }
111 inline void SetStatus(GlossaryTermStatus value) { m_statusHasBeenSet = true; m_status = value; }
112 inline CreateGlossaryTermResult& WithStatus(GlossaryTermStatus value) { SetStatus(value); return *this;}
114
116
119 inline const TermRelations& GetTermRelations() const { return m_termRelations; }
120 template<typename TermRelationsT = TermRelations>
121 void SetTermRelations(TermRelationsT&& value) { m_termRelationsHasBeenSet = true; m_termRelations = std::forward<TermRelationsT>(value); }
122 template<typename TermRelationsT = TermRelations>
123 CreateGlossaryTermResult& WithTermRelations(TermRelationsT&& value) { SetTermRelations(std::forward<TermRelationsT>(value)); return *this;}
125
127
130 inline const Aws::Vector<GlossaryUsageRestriction>& GetUsageRestrictions() const { return m_usageRestrictions; }
131 template<typename UsageRestrictionsT = Aws::Vector<GlossaryUsageRestriction>>
132 void SetUsageRestrictions(UsageRestrictionsT&& value) { m_usageRestrictionsHasBeenSet = true; m_usageRestrictions = std::forward<UsageRestrictionsT>(value); }
133 template<typename UsageRestrictionsT = Aws::Vector<GlossaryUsageRestriction>>
134 CreateGlossaryTermResult& WithUsageRestrictions(UsageRestrictionsT&& value) { SetUsageRestrictions(std::forward<UsageRestrictionsT>(value)); return *this;}
135 inline CreateGlossaryTermResult& AddUsageRestrictions(GlossaryUsageRestriction value) { m_usageRestrictionsHasBeenSet = true; m_usageRestrictions.push_back(value); return *this; }
137
139
140 inline const Aws::String& GetRequestId() const { return m_requestId; }
141 template<typename RequestIdT = Aws::String>
142 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
143 template<typename RequestIdT = Aws::String>
144 CreateGlossaryTermResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
146 private:
147
148 Aws::String m_domainId;
149 bool m_domainIdHasBeenSet = false;
150
151 Aws::String m_glossaryId;
152 bool m_glossaryIdHasBeenSet = false;
153
154 Aws::String m_id;
155 bool m_idHasBeenSet = false;
156
157 Aws::String m_longDescription;
158 bool m_longDescriptionHasBeenSet = false;
159
160 Aws::String m_name;
161 bool m_nameHasBeenSet = false;
162
163 Aws::String m_shortDescription;
164 bool m_shortDescriptionHasBeenSet = false;
165
167 bool m_statusHasBeenSet = false;
168
169 TermRelations m_termRelations;
170 bool m_termRelationsHasBeenSet = false;
171
172 Aws::Vector<GlossaryUsageRestriction> m_usageRestrictions;
173 bool m_usageRestrictionsHasBeenSet = false;
174
175 Aws::String m_requestId;
176 bool m_requestIdHasBeenSet = false;
177 };
178
179} // namespace Model
180} // namespace DataZone
181} // namespace Aws
AWS_DATAZONE_API CreateGlossaryTermResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateGlossaryTermResult & WithGlossaryId(GlossaryIdT &&value)
CreateGlossaryTermResult & WithShortDescription(ShortDescriptionT &&value)
CreateGlossaryTermResult & WithLongDescription(LongDescriptionT &&value)
CreateGlossaryTermResult & WithDomainId(DomainIdT &&value)
CreateGlossaryTermResult & WithRequestId(RequestIdT &&value)
AWS_DATAZONE_API CreateGlossaryTermResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateGlossaryTermResult & WithName(NameT &&value)
const Aws::Vector< GlossaryUsageRestriction > & GetUsageRestrictions() const
CreateGlossaryTermResult & WithTermRelations(TermRelationsT &&value)
CreateGlossaryTermResult & WithId(IdT &&value)
CreateGlossaryTermResult & AddUsageRestrictions(GlossaryUsageRestriction value)
CreateGlossaryTermResult & WithUsageRestrictions(UsageRestrictionsT &&value)
CreateGlossaryTermResult & WithStatus(GlossaryTermStatus value)
AWS_DATAZONE_API CreateGlossaryTermResult()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue