AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
DialogAction.h
1
6#pragma once
7#include <aws/lexv2-models/LexModelsV2_EXPORTS.h>
8#include <aws/lexv2-models/model/DialogActionType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace LexModelsV2
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_LEXMODELSV2_API DialogAction() = default;
37 AWS_LEXMODELSV2_API DialogAction(Aws::Utils::Json::JsonView jsonValue);
38 AWS_LEXMODELSV2_API DialogAction& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline DialogActionType GetType() const { return m_type; }
47 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
48 inline void SetType(DialogActionType value) { m_typeHasBeenSet = true; m_type = value; }
49 inline DialogAction& WithType(DialogActionType value) { SetType(value); return *this;}
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) { m_slotToElicitHasBeenSet = true; m_slotToElicit = std::forward<SlotToElicitT>(value); }
61 template<typename SlotToElicitT = Aws::String>
62 DialogAction& WithSlotToElicit(SlotToElicitT&& value) { SetSlotToElicit(std::forward<SlotToElicitT>(value)); return *this;}
64
66
69 inline bool GetSuppressNextMessage() const { return m_suppressNextMessage; }
70 inline bool SuppressNextMessageHasBeenSet() const { return m_suppressNextMessageHasBeenSet; }
71 inline void SetSuppressNextMessage(bool value) { m_suppressNextMessageHasBeenSet = true; m_suppressNextMessage = value; }
72 inline DialogAction& WithSuppressNextMessage(bool value) { SetSuppressNextMessage(value); return *this;}
74 private:
75
77 bool m_typeHasBeenSet = false;
78
79 Aws::String m_slotToElicit;
80 bool m_slotToElicitHasBeenSet = false;
81
82 bool m_suppressNextMessage{false};
83 bool m_suppressNextMessageHasBeenSet = false;
84 };
85
86} // namespace Model
87} // namespace LexModelsV2
88} // 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