AWS SDK for C++

AWS SDK for C++ Version 1.11.782

Loading...
Searching...
No Matches
VocabularyEntity.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/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace BedrockDataAutomation {
24namespace Model {
25
32 public:
33 AWS_BEDROCKDATAAUTOMATION_API VocabularyEntity() = 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
107
108 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
109 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
110 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
112 m_lastModifiedTimeHasBeenSet = true;
113 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
114 }
115 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
117 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
118 return *this;
119 }
121 private:
122 Aws::String m_entityId;
123
124 Aws::String m_description;
125
126 Language m_language{Language::NOT_SET};
127
128 Aws::Vector<Phrase> m_phrases;
129
130 Aws::Utils::DateTime m_lastModifiedTime{};
131 bool m_entityIdHasBeenSet = false;
132 bool m_descriptionHasBeenSet = false;
133 bool m_languageHasBeenSet = false;
134 bool m_phrasesHasBeenSet = false;
135 bool m_lastModifiedTimeHasBeenSet = false;
136};
137
138} // namespace Model
139} // namespace BedrockDataAutomation
140} // namespace Aws
VocabularyEntity & WithDescription(DescriptionT &&value)
VocabularyEntity & WithLastModifiedTime(LastModifiedTimeT &&value)
VocabularyEntity & WithEntityId(EntityIdT &&value)
AWS_BEDROCKDATAAUTOMATION_API VocabularyEntity()=default
const Aws::Utils::DateTime & GetLastModifiedTime() const
AWS_BEDROCKDATAAUTOMATION_API Aws::Utils::Json::JsonValue Jsonize() const
VocabularyEntity & AddPhrases(PhrasesT &&value)
VocabularyEntity & WithPhrases(PhrasesT &&value)
const Aws::Vector< Phrase > & GetPhrases() const
AWS_BEDROCKDATAAUTOMATION_API VocabularyEntity & operator=(Aws::Utils::Json::JsonView jsonValue)
VocabularyEntity & WithLanguage(Language value)
AWS_BEDROCKDATAAUTOMATION_API VocabularyEntity(Aws::Utils::Json::JsonView jsonValue)
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