AWS SDK for C++

AWS SDK for C++ Version 1.11.782

Loading...
Searching...
No Matches
VocabularyEntityInfo.h
1
6#pragma once
7#include <aws/bedrock-data-automation/BedrockDataAutomation_EXPORTS.h>
8#include <aws/bedrock-data-automation/model/Language.h>
9#include <aws/bedrock-data-automation/model/Phrase.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace BedrockDataAutomation {
23namespace Model {
24
32 public:
33 AWS_BEDROCKDATAAUTOMATION_API VocabularyEntityInfo() = default;
36 AWS_BEDROCKDATAAUTOMATION_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
40 inline const Aws::String& GetEntityId() const { return m_entityId; }
41 inline bool EntityIdHasBeenSet() const { return m_entityIdHasBeenSet; }
42 template <typename EntityIdT = Aws::String>
43 void SetEntityId(EntityIdT&& value) {
44 m_entityIdHasBeenSet = true;
45 m_entityId = std::forward<EntityIdT>(value);
46 }
47 template <typename EntityIdT = Aws::String>
49 SetEntityId(std::forward<EntityIdT>(value));
50 return *this;
51 }
53
55
56 inline const Aws::String& GetDescription() const { return m_description; }
57 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
58 template <typename DescriptionT = Aws::String>
60 m_descriptionHasBeenSet = true;
61 m_description = std::forward<DescriptionT>(value);
62 }
63 template <typename DescriptionT = Aws::String>
65 SetDescription(std::forward<DescriptionT>(value));
66 return *this;
67 }
69
71
72 inline Language GetLanguage() const { return m_language; }
73 inline bool LanguageHasBeenSet() const { return m_languageHasBeenSet; }
74 inline void SetLanguage(Language value) {
75 m_languageHasBeenSet = true;
76 m_language = value;
77 }
79 SetLanguage(value);
80 return *this;
81 }
83
85
86 inline const Aws::Vector<Phrase>& GetPhrases() const { return m_phrases; }
87 inline bool PhrasesHasBeenSet() const { return m_phrasesHasBeenSet; }
88 template <typename PhrasesT = Aws::Vector<Phrase>>
89 void SetPhrases(PhrasesT&& value) {
90 m_phrasesHasBeenSet = true;
91 m_phrases = std::forward<PhrasesT>(value);
92 }
93 template <typename PhrasesT = Aws::Vector<Phrase>>
95 SetPhrases(std::forward<PhrasesT>(value));
96 return *this;
97 }
98 template <typename PhrasesT = Phrase>
100 m_phrasesHasBeenSet = true;
101 m_phrases.emplace_back(std::forward<PhrasesT>(value));
102 return *this;
103 }
105 private:
106 Aws::String m_entityId;
107
108 Aws::String m_description;
109
110 Language m_language{Language::NOT_SET};
111
112 Aws::Vector<Phrase> m_phrases;
113 bool m_entityIdHasBeenSet = false;
114 bool m_descriptionHasBeenSet = false;
115 bool m_languageHasBeenSet = false;
116 bool m_phrasesHasBeenSet = false;
117};
118
119} // namespace Model
120} // namespace BedrockDataAutomation
121} // namespace Aws
AWS_BEDROCKDATAAUTOMATION_API VocabularyEntityInfo(Aws::Utils::Json::JsonView jsonValue)
VocabularyEntityInfo & WithDescription(DescriptionT &&value)
AWS_BEDROCKDATAAUTOMATION_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BEDROCKDATAAUTOMATION_API VocabularyEntityInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKDATAAUTOMATION_API VocabularyEntityInfo()=default
VocabularyEntityInfo & AddPhrases(PhrasesT &&value)
VocabularyEntityInfo & WithPhrases(PhrasesT &&value)
VocabularyEntityInfo & WithEntityId(EntityIdT &&value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue