AWS SDK for C++

AWS SDK for C++ Version 1.11.761

Loading...
Searching...
No Matches
NewCustomVocabularyItem.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/lexv2-models/LexModelsV2_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace LexModelsV2 {
20namespace Model {
21
29 public:
30 AWS_LEXMODELSV2_API NewCustomVocabularyItem() = default;
33 AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
40 inline const Aws::String& GetPhrase() const { return m_phrase; }
41 inline bool PhraseHasBeenSet() const { return m_phraseHasBeenSet; }
42 template <typename PhraseT = Aws::String>
43 void SetPhrase(PhraseT&& value) {
44 m_phraseHasBeenSet = true;
45 m_phrase = std::forward<PhraseT>(value);
46 }
47 template <typename PhraseT = Aws::String>
49 SetPhrase(std::forward<PhraseT>(value));
50 return *this;
51 }
53
55
59 inline int GetWeight() const { return m_weight; }
60 inline bool WeightHasBeenSet() const { return m_weightHasBeenSet; }
61 inline void SetWeight(int value) {
62 m_weightHasBeenSet = true;
63 m_weight = value;
64 }
66 SetWeight(value);
67 return *this;
68 }
70
72
76 inline const Aws::String& GetDisplayAs() const { return m_displayAs; }
77 inline bool DisplayAsHasBeenSet() const { return m_displayAsHasBeenSet; }
78 template <typename DisplayAsT = Aws::String>
79 void SetDisplayAs(DisplayAsT&& value) {
80 m_displayAsHasBeenSet = true;
81 m_displayAs = std::forward<DisplayAsT>(value);
82 }
83 template <typename DisplayAsT = Aws::String>
85 SetDisplayAs(std::forward<DisplayAsT>(value));
86 return *this;
87 }
89 private:
90 Aws::String m_phrase;
91
92 int m_weight{0};
93
94 Aws::String m_displayAs;
95 bool m_phraseHasBeenSet = false;
96 bool m_weightHasBeenSet = false;
97 bool m_displayAsHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace LexModelsV2
102} // namespace Aws
AWS_LEXMODELSV2_API NewCustomVocabularyItem()=default
NewCustomVocabularyItem & WithPhrase(PhraseT &&value)
AWS_LEXMODELSV2_API NewCustomVocabularyItem(Aws::Utils::Json::JsonView jsonValue)
AWS_LEXMODELSV2_API NewCustomVocabularyItem & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const
NewCustomVocabularyItem & WithDisplayAs(DisplayAsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue