AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetPhrase(const Aws::String& value) { m_phraseHasBeenSet = true; m_phrase = value; }
49 inline void SetPhrase(Aws::String&& value) { m_phraseHasBeenSet = true; m_phrase = std::move(value); }
50 inline void SetPhrase(const char* value) { m_phraseHasBeenSet = true; m_phrase.assign(value); }
51 inline NewCustomVocabularyItem& WithPhrase(const Aws::String& value) { SetPhrase(value); return *this;}
52 inline NewCustomVocabularyItem& WithPhrase(Aws::String&& value) { SetPhrase(std::move(value)); return *this;}
53 inline NewCustomVocabularyItem& WithPhrase(const char* value) { SetPhrase(value); return *this;}
55
57
61 inline int GetWeight() const{ return m_weight; }
62 inline bool WeightHasBeenSet() const { return m_weightHasBeenSet; }
63 inline void SetWeight(int value) { m_weightHasBeenSet = true; m_weight = value; }
64 inline NewCustomVocabularyItem& WithWeight(int value) { SetWeight(value); return *this;}
66
68
72 inline const Aws::String& GetDisplayAs() const{ return m_displayAs; }
73 inline bool DisplayAsHasBeenSet() const { return m_displayAsHasBeenSet; }
74 inline void SetDisplayAs(const Aws::String& value) { m_displayAsHasBeenSet = true; m_displayAs = value; }
75 inline void SetDisplayAs(Aws::String&& value) { m_displayAsHasBeenSet = true; m_displayAs = std::move(value); }
76 inline void SetDisplayAs(const char* value) { m_displayAsHasBeenSet = true; m_displayAs.assign(value); }
77 inline NewCustomVocabularyItem& WithDisplayAs(const Aws::String& value) { SetDisplayAs(value); return *this;}
78 inline NewCustomVocabularyItem& WithDisplayAs(Aws::String&& value) { SetDisplayAs(std::move(value)); return *this;}
79 inline NewCustomVocabularyItem& WithDisplayAs(const char* value) { SetDisplayAs(value); return *this;}
81 private:
82
83 Aws::String m_phrase;
84 bool m_phraseHasBeenSet = false;
85
86 int m_weight;
87 bool m_weightHasBeenSet = false;
88
89 Aws::String m_displayAs;
90 bool m_displayAsHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace LexModelsV2
95} // namespace Aws
NewCustomVocabularyItem & WithDisplayAs(const Aws::String &value)
NewCustomVocabularyItem & WithDisplayAs(Aws::String &&value)
NewCustomVocabularyItem & WithDisplayAs(const char *value)
AWS_LEXMODELSV2_API NewCustomVocabularyItem(Aws::Utils::Json::JsonView jsonValue)
NewCustomVocabularyItem & WithPhrase(const Aws::String &value)
NewCustomVocabularyItem & WithPhrase(Aws::String &&value)
AWS_LEXMODELSV2_API NewCustomVocabularyItem & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const
NewCustomVocabularyItem & WithPhrase(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue