AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
NewCustomVocabularyItem.h
1
6#pragma once
7#include <aws/lexv2-models/LexModelsV2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace LexModelsV2
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_LEXMODELSV2_API NewCustomVocabularyItem() = default;
38 AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
46 inline const Aws::String& GetPhrase() const { return m_phrase; }
47 inline bool PhraseHasBeenSet() const { return m_phraseHasBeenSet; }
48 template<typename PhraseT = Aws::String>
49 void SetPhrase(PhraseT&& value) { m_phraseHasBeenSet = true; m_phrase = std::forward<PhraseT>(value); }
50 template<typename PhraseT = Aws::String>
51 NewCustomVocabularyItem& WithPhrase(PhraseT&& value) { SetPhrase(std::forward<PhraseT>(value)); return *this;}
53
55
59 inline int GetWeight() const { return m_weight; }
60 inline bool WeightHasBeenSet() const { return m_weightHasBeenSet; }
61 inline void SetWeight(int value) { m_weightHasBeenSet = true; m_weight = value; }
62 inline NewCustomVocabularyItem& WithWeight(int value) { SetWeight(value); return *this;}
64
66
70 inline const Aws::String& GetDisplayAs() const { return m_displayAs; }
71 inline bool DisplayAsHasBeenSet() const { return m_displayAsHasBeenSet; }
72 template<typename DisplayAsT = Aws::String>
73 void SetDisplayAs(DisplayAsT&& value) { m_displayAsHasBeenSet = true; m_displayAs = std::forward<DisplayAsT>(value); }
74 template<typename DisplayAsT = Aws::String>
75 NewCustomVocabularyItem& WithDisplayAs(DisplayAsT&& value) { SetDisplayAs(std::forward<DisplayAsT>(value)); return *this;}
77 private:
78
79 Aws::String m_phrase;
80 bool m_phraseHasBeenSet = false;
81
82 int m_weight{0};
83 bool m_weightHasBeenSet = false;
84
85 Aws::String m_displayAs;
86 bool m_displayAsHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace LexModelsV2
91} // 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