AWS SDK for C++

AWS SDK for C++ Version 1.11.874

Loading...
Searching...
No Matches
TopicNamedEntity.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/quicksight/QuickSight_EXPORTS.h>
10#include <aws/quicksight/model/NamedEntityDefinition.h>
11#include <aws/quicksight/model/NamedEntitySort.h>
12#include <aws/quicksight/model/SemanticEntityType.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace QuickSight {
24namespace Model {
25
32 public:
33 AWS_QUICKSIGHT_API TopicNamedEntity() = default;
34 AWS_QUICKSIGHT_API TopicNamedEntity(Aws::Utils::Json::JsonView jsonValue);
36 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetEntityName() const { return m_entityName; }
43 inline bool EntityNameHasBeenSet() const { return m_entityNameHasBeenSet; }
44 template <typename EntityNameT = Aws::String>
45 void SetEntityName(EntityNameT&& value) {
46 m_entityNameHasBeenSet = true;
47 m_entityName = std::forward<EntityNameT>(value);
48 }
49 template <typename EntityNameT = Aws::String>
50 TopicNamedEntity& WithEntityName(EntityNameT&& value) {
51 SetEntityName(std::forward<EntityNameT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetEntityDescription() const { return m_entityDescription; }
61 inline bool EntityDescriptionHasBeenSet() const { return m_entityDescriptionHasBeenSet; }
62 template <typename EntityDescriptionT = Aws::String>
63 void SetEntityDescription(EntityDescriptionT&& value) {
64 m_entityDescriptionHasBeenSet = true;
65 m_entityDescription = std::forward<EntityDescriptionT>(value);
66 }
67 template <typename EntityDescriptionT = Aws::String>
68 TopicNamedEntity& WithEntityDescription(EntityDescriptionT&& value) {
69 SetEntityDescription(std::forward<EntityDescriptionT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::Vector<Aws::String>& GetEntitySynonyms() const { return m_entitySynonyms; }
79 inline bool EntitySynonymsHasBeenSet() const { return m_entitySynonymsHasBeenSet; }
80 template <typename EntitySynonymsT = Aws::Vector<Aws::String>>
81 void SetEntitySynonyms(EntitySynonymsT&& value) {
82 m_entitySynonymsHasBeenSet = true;
83 m_entitySynonyms = std::forward<EntitySynonymsT>(value);
84 }
85 template <typename EntitySynonymsT = Aws::Vector<Aws::String>>
86 TopicNamedEntity& WithEntitySynonyms(EntitySynonymsT&& value) {
87 SetEntitySynonyms(std::forward<EntitySynonymsT>(value));
88 return *this;
89 }
90 template <typename EntitySynonymsT = Aws::String>
91 TopicNamedEntity& AddEntitySynonyms(EntitySynonymsT&& value) {
92 m_entitySynonymsHasBeenSet = true;
93 m_entitySynonyms.emplace_back(std::forward<EntitySynonymsT>(value));
94 return *this;
95 }
97
99
102 inline const SemanticEntityType& GetSemanticEntityType() const { return m_semanticEntityType; }
103 inline bool SemanticEntityTypeHasBeenSet() const { return m_semanticEntityTypeHasBeenSet; }
104 template <typename SemanticEntityTypeT = SemanticEntityType>
105 void SetSemanticEntityType(SemanticEntityTypeT&& value) {
106 m_semanticEntityTypeHasBeenSet = true;
107 m_semanticEntityType = std::forward<SemanticEntityTypeT>(value);
108 }
109 template <typename SemanticEntityTypeT = SemanticEntityType>
110 TopicNamedEntity& WithSemanticEntityType(SemanticEntityTypeT&& value) {
111 SetSemanticEntityType(std::forward<SemanticEntityTypeT>(value));
112 return *this;
113 }
115
117
120 inline const Aws::Vector<NamedEntityDefinition>& GetDefinition() const { return m_definition; }
121 inline bool DefinitionHasBeenSet() const { return m_definitionHasBeenSet; }
122 template <typename DefinitionT = Aws::Vector<NamedEntityDefinition>>
123 void SetDefinition(DefinitionT&& value) {
124 m_definitionHasBeenSet = true;
125 m_definition = std::forward<DefinitionT>(value);
126 }
127 template <typename DefinitionT = Aws::Vector<NamedEntityDefinition>>
128 TopicNamedEntity& WithDefinition(DefinitionT&& value) {
129 SetDefinition(std::forward<DefinitionT>(value));
130 return *this;
131 }
132 template <typename DefinitionT = NamedEntityDefinition>
133 TopicNamedEntity& AddDefinition(DefinitionT&& value) {
134 m_definitionHasBeenSet = true;
135 m_definition.emplace_back(std::forward<DefinitionT>(value));
136 return *this;
137 }
139
141
144 inline const Aws::Vector<NamedEntitySort>& GetSort() const { return m_sort; }
145 inline bool SortHasBeenSet() const { return m_sortHasBeenSet; }
146 template <typename SortT = Aws::Vector<NamedEntitySort>>
147 void SetSort(SortT&& value) {
148 m_sortHasBeenSet = true;
149 m_sort = std::forward<SortT>(value);
150 }
151 template <typename SortT = Aws::Vector<NamedEntitySort>>
152 TopicNamedEntity& WithSort(SortT&& value) {
153 SetSort(std::forward<SortT>(value));
154 return *this;
155 }
156 template <typename SortT = NamedEntitySort>
157 TopicNamedEntity& AddSort(SortT&& value) {
158 m_sortHasBeenSet = true;
159 m_sort.emplace_back(std::forward<SortT>(value));
160 return *this;
161 }
163
165
168 inline int GetRankOrder() const { return m_rankOrder; }
169 inline bool RankOrderHasBeenSet() const { return m_rankOrderHasBeenSet; }
170 inline void SetRankOrder(int value) {
171 m_rankOrderHasBeenSet = true;
172 m_rankOrder = value;
173 }
174 inline TopicNamedEntity& WithRankOrder(int value) {
175 SetRankOrder(value);
176 return *this;
177 }
179
181
184 inline int GetPresentationOrder() const { return m_presentationOrder; }
185 inline bool PresentationOrderHasBeenSet() const { return m_presentationOrderHasBeenSet; }
186 inline void SetPresentationOrder(int value) {
187 m_presentationOrderHasBeenSet = true;
188 m_presentationOrder = value;
189 }
192 return *this;
193 }
195 private:
196 Aws::String m_entityName;
197
198 Aws::String m_entityDescription;
199
200 Aws::Vector<Aws::String> m_entitySynonyms;
201
202 SemanticEntityType m_semanticEntityType;
203
205
207
208 int m_rankOrder{0};
209
210 int m_presentationOrder{0};
211 bool m_entityNameHasBeenSet = false;
212 bool m_entityDescriptionHasBeenSet = false;
213 bool m_entitySynonymsHasBeenSet = false;
214 bool m_semanticEntityTypeHasBeenSet = false;
215 bool m_definitionHasBeenSet = false;
216 bool m_sortHasBeenSet = false;
217 bool m_rankOrderHasBeenSet = false;
218 bool m_presentationOrderHasBeenSet = false;
219};
220
221} // namespace Model
222} // namespace QuickSight
223} // namespace Aws
const Aws::String & GetEntityDescription() const
const Aws::Vector< Aws::String > & GetEntitySynonyms() const
const SemanticEntityType & GetSemanticEntityType() const
void SetEntityDescription(EntityDescriptionT &&value)
TopicNamedEntity & WithPresentationOrder(int value)
const Aws::String & GetEntityName() const
const Aws::Vector< NamedEntityDefinition > & GetDefinition() const
AWS_QUICKSIGHT_API TopicNamedEntity & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< NamedEntitySort > & GetSort() const
TopicNamedEntity & AddSort(SortT &&value)
TopicNamedEntity & AddEntitySynonyms(EntitySynonymsT &&value)
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_QUICKSIGHT_API TopicNamedEntity(Aws::Utils::Json::JsonView jsonValue)
TopicNamedEntity & WithSemanticEntityType(SemanticEntityTypeT &&value)
TopicNamedEntity & AddDefinition(DefinitionT &&value)
void SetSemanticEntityType(SemanticEntityTypeT &&value)
TopicNamedEntity & WithSort(SortT &&value)
TopicNamedEntity & WithDefinition(DefinitionT &&value)
TopicNamedEntity & WithEntitySynonyms(EntitySynonymsT &&value)
TopicNamedEntity & WithRankOrder(int value)
void SetEntitySynonyms(EntitySynonymsT &&value)
TopicNamedEntity & WithEntityDescription(EntityDescriptionT &&value)
AWS_QUICKSIGHT_API TopicNamedEntity()=default
TopicNamedEntity & WithEntityName(EntityNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue