AWS SDK for C++

AWS SDK for C++ Version 1.11.744

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/SemanticEntityType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace QuickSight {
23namespace Model {
24
31 public:
32 AWS_QUICKSIGHT_API TopicNamedEntity() = default;
33 AWS_QUICKSIGHT_API TopicNamedEntity(Aws::Utils::Json::JsonView jsonValue);
35 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetEntityName() const { return m_entityName; }
42 inline bool EntityNameHasBeenSet() const { return m_entityNameHasBeenSet; }
43 template <typename EntityNameT = Aws::String>
44 void SetEntityName(EntityNameT&& value) {
45 m_entityNameHasBeenSet = true;
46 m_entityName = std::forward<EntityNameT>(value);
47 }
48 template <typename EntityNameT = Aws::String>
49 TopicNamedEntity& WithEntityName(EntityNameT&& value) {
50 SetEntityName(std::forward<EntityNameT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetEntityDescription() const { return m_entityDescription; }
60 inline bool EntityDescriptionHasBeenSet() const { return m_entityDescriptionHasBeenSet; }
61 template <typename EntityDescriptionT = Aws::String>
62 void SetEntityDescription(EntityDescriptionT&& value) {
63 m_entityDescriptionHasBeenSet = true;
64 m_entityDescription = std::forward<EntityDescriptionT>(value);
65 }
66 template <typename EntityDescriptionT = Aws::String>
67 TopicNamedEntity& WithEntityDescription(EntityDescriptionT&& value) {
68 SetEntityDescription(std::forward<EntityDescriptionT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::Vector<Aws::String>& GetEntitySynonyms() const { return m_entitySynonyms; }
78 inline bool EntitySynonymsHasBeenSet() const { return m_entitySynonymsHasBeenSet; }
79 template <typename EntitySynonymsT = Aws::Vector<Aws::String>>
80 void SetEntitySynonyms(EntitySynonymsT&& value) {
81 m_entitySynonymsHasBeenSet = true;
82 m_entitySynonyms = std::forward<EntitySynonymsT>(value);
83 }
84 template <typename EntitySynonymsT = Aws::Vector<Aws::String>>
85 TopicNamedEntity& WithEntitySynonyms(EntitySynonymsT&& value) {
86 SetEntitySynonyms(std::forward<EntitySynonymsT>(value));
87 return *this;
88 }
89 template <typename EntitySynonymsT = Aws::String>
90 TopicNamedEntity& AddEntitySynonyms(EntitySynonymsT&& value) {
91 m_entitySynonymsHasBeenSet = true;
92 m_entitySynonyms.emplace_back(std::forward<EntitySynonymsT>(value));
93 return *this;
94 }
96
98
101 inline const SemanticEntityType& GetSemanticEntityType() const { return m_semanticEntityType; }
102 inline bool SemanticEntityTypeHasBeenSet() const { return m_semanticEntityTypeHasBeenSet; }
103 template <typename SemanticEntityTypeT = SemanticEntityType>
104 void SetSemanticEntityType(SemanticEntityTypeT&& value) {
105 m_semanticEntityTypeHasBeenSet = true;
106 m_semanticEntityType = std::forward<SemanticEntityTypeT>(value);
107 }
108 template <typename SemanticEntityTypeT = SemanticEntityType>
109 TopicNamedEntity& WithSemanticEntityType(SemanticEntityTypeT&& value) {
110 SetSemanticEntityType(std::forward<SemanticEntityTypeT>(value));
111 return *this;
112 }
114
116
119 inline const Aws::Vector<NamedEntityDefinition>& GetDefinition() const { return m_definition; }
120 inline bool DefinitionHasBeenSet() const { return m_definitionHasBeenSet; }
121 template <typename DefinitionT = Aws::Vector<NamedEntityDefinition>>
122 void SetDefinition(DefinitionT&& value) {
123 m_definitionHasBeenSet = true;
124 m_definition = std::forward<DefinitionT>(value);
125 }
126 template <typename DefinitionT = Aws::Vector<NamedEntityDefinition>>
127 TopicNamedEntity& WithDefinition(DefinitionT&& value) {
128 SetDefinition(std::forward<DefinitionT>(value));
129 return *this;
130 }
131 template <typename DefinitionT = NamedEntityDefinition>
132 TopicNamedEntity& AddDefinition(DefinitionT&& value) {
133 m_definitionHasBeenSet = true;
134 m_definition.emplace_back(std::forward<DefinitionT>(value));
135 return *this;
136 }
138 private:
139 Aws::String m_entityName;
140
141 Aws::String m_entityDescription;
142
143 Aws::Vector<Aws::String> m_entitySynonyms;
144
145 SemanticEntityType m_semanticEntityType;
146
148 bool m_entityNameHasBeenSet = false;
149 bool m_entityDescriptionHasBeenSet = false;
150 bool m_entitySynonymsHasBeenSet = false;
151 bool m_semanticEntityTypeHasBeenSet = false;
152 bool m_definitionHasBeenSet = false;
153};
154
155} // namespace Model
156} // namespace QuickSight
157} // namespace Aws
const Aws::String & GetEntityDescription() const
const Aws::Vector< Aws::String > & GetEntitySynonyms() const
const SemanticEntityType & GetSemanticEntityType() const
void SetEntityDescription(EntityDescriptionT &&value)
const Aws::String & GetEntityName() const
const Aws::Vector< NamedEntityDefinition > & GetDefinition() const
AWS_QUICKSIGHT_API TopicNamedEntity & operator=(Aws::Utils::Json::JsonView jsonValue)
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 & WithDefinition(DefinitionT &&value)
TopicNamedEntity & WithEntitySynonyms(EntitySynonymsT &&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