AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
IntentDisambiguationSettings.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
31 public:
32 AWS_LEXMODELSV2_API IntentDisambiguationSettings() = default;
35 AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
44 inline bool GetEnabled() const { return m_enabled; }
45 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
46 inline void SetEnabled(bool value) {
47 m_enabledHasBeenSet = true;
48 m_enabled = value;
49 }
51 SetEnabled(value);
52 return *this;
53 }
55
57
63 inline int GetMaxDisambiguationIntents() const { return m_maxDisambiguationIntents; }
64 inline bool MaxDisambiguationIntentsHasBeenSet() const { return m_maxDisambiguationIntentsHasBeenSet; }
65 inline void SetMaxDisambiguationIntents(int value) {
66 m_maxDisambiguationIntentsHasBeenSet = true;
67 m_maxDisambiguationIntents = value;
68 }
71 return *this;
72 }
74
76
82 inline const Aws::String& GetCustomDisambiguationMessage() const { return m_customDisambiguationMessage; }
83 inline bool CustomDisambiguationMessageHasBeenSet() const { return m_customDisambiguationMessageHasBeenSet; }
84 template <typename CustomDisambiguationMessageT = Aws::String>
85 void SetCustomDisambiguationMessage(CustomDisambiguationMessageT&& value) {
86 m_customDisambiguationMessageHasBeenSet = true;
87 m_customDisambiguationMessage = std::forward<CustomDisambiguationMessageT>(value);
88 }
89 template <typename CustomDisambiguationMessageT = Aws::String>
90 IntentDisambiguationSettings& WithCustomDisambiguationMessage(CustomDisambiguationMessageT&& value) {
91 SetCustomDisambiguationMessage(std::forward<CustomDisambiguationMessageT>(value));
92 return *this;
93 }
95 private:
96 bool m_enabled{false};
97
98 int m_maxDisambiguationIntents{0};
99
100 Aws::String m_customDisambiguationMessage;
101 bool m_enabledHasBeenSet = false;
102 bool m_maxDisambiguationIntentsHasBeenSet = false;
103 bool m_customDisambiguationMessageHasBeenSet = false;
104};
105
106} // namespace Model
107} // namespace LexModelsV2
108} // namespace Aws
IntentDisambiguationSettings & WithCustomDisambiguationMessage(CustomDisambiguationMessageT &&value)
AWS_LEXMODELSV2_API IntentDisambiguationSettings & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_LEXMODELSV2_API IntentDisambiguationSettings()=default
void SetCustomDisambiguationMessage(CustomDisambiguationMessageT &&value)
IntentDisambiguationSettings & WithMaxDisambiguationIntents(int value)
AWS_LEXMODELSV2_API IntentDisambiguationSettings(Aws::Utils::Json::JsonView jsonValue)
AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue