AWS SDK for C++

AWS SDK for C++ Version 1.11.750

Loading...
Searching...
No Matches
DialogAction.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/lexv2-models/LexModelsV2_EXPORTS.h>
9#include <aws/lexv2-models/model/DialogActionType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace LexModelsV2 {
21namespace Model {
22
30 public:
31 AWS_LEXMODELSV2_API DialogAction() = default;
32 AWS_LEXMODELSV2_API DialogAction(Aws::Utils::Json::JsonView jsonValue);
33 AWS_LEXMODELSV2_API DialogAction& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline DialogActionType GetType() const { return m_type; }
41 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
42 inline void SetType(DialogActionType value) {
43 m_typeHasBeenSet = true;
44 m_type = value;
45 }
47 SetType(value);
48 return *this;
49 }
51
53
57 inline const Aws::String& GetSlotToElicit() const { return m_slotToElicit; }
58 inline bool SlotToElicitHasBeenSet() const { return m_slotToElicitHasBeenSet; }
59 template <typename SlotToElicitT = Aws::String>
60 void SetSlotToElicit(SlotToElicitT&& value) {
61 m_slotToElicitHasBeenSet = true;
62 m_slotToElicit = std::forward<SlotToElicitT>(value);
63 }
64 template <typename SlotToElicitT = Aws::String>
65 DialogAction& WithSlotToElicit(SlotToElicitT&& value) {
66 SetSlotToElicit(std::forward<SlotToElicitT>(value));
67 return *this;
68 }
70
72
75 inline bool GetSuppressNextMessage() const { return m_suppressNextMessage; }
76 inline bool SuppressNextMessageHasBeenSet() const { return m_suppressNextMessageHasBeenSet; }
77 inline void SetSuppressNextMessage(bool value) {
78 m_suppressNextMessageHasBeenSet = true;
79 m_suppressNextMessage = value;
80 }
83 return *this;
84 }
86 private:
88
89 Aws::String m_slotToElicit;
90
91 bool m_suppressNextMessage{false};
92 bool m_typeHasBeenSet = false;
93 bool m_slotToElicitHasBeenSet = false;
94 bool m_suppressNextMessageHasBeenSet = false;
95};
96
97} // namespace Model
98} // namespace LexModelsV2
99} // namespace Aws
DialogActionType GetType() const
const Aws::String & GetSlotToElicit() const
DialogAction & WithType(DialogActionType value)
AWS_LEXMODELSV2_API DialogAction()=default
DialogAction & WithSuppressNextMessage(bool value)
AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetType(DialogActionType value)
DialogAction & WithSlotToElicit(SlotToElicitT &&value)
void SetSlotToElicit(SlotToElicitT &&value)
AWS_LEXMODELSV2_API DialogAction & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_LEXMODELSV2_API DialogAction(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue