AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const DialogActionType& GetType() const{ return m_type; }
47 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
48 inline void SetType(const DialogActionType& value) { m_typeHasBeenSet = true; m_type = value; }
49 inline void SetType(DialogActionType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
50 inline DialogAction& WithType(const DialogActionType& value) { SetType(value); return *this;}
51 inline DialogAction& WithType(DialogActionType&& value) { SetType(std::move(value)); return *this;}
53
55
59 inline const Aws::String& GetSlotToElicit() const{ return m_slotToElicit; }
60 inline bool SlotToElicitHasBeenSet() const { return m_slotToElicitHasBeenSet; }
61 inline void SetSlotToElicit(const Aws::String& value) { m_slotToElicitHasBeenSet = true; m_slotToElicit = value; }
62 inline void SetSlotToElicit(Aws::String&& value) { m_slotToElicitHasBeenSet = true; m_slotToElicit = std::move(value); }
63 inline void SetSlotToElicit(const char* value) { m_slotToElicitHasBeenSet = true; m_slotToElicit.assign(value); }
64 inline DialogAction& WithSlotToElicit(const Aws::String& value) { SetSlotToElicit(value); return *this;}
65 inline DialogAction& WithSlotToElicit(Aws::String&& value) { SetSlotToElicit(std::move(value)); return *this;}
66 inline DialogAction& WithSlotToElicit(const char* value) { SetSlotToElicit(value); return *this;}
68
70
73 inline bool GetSuppressNextMessage() const{ return m_suppressNextMessage; }
74 inline bool SuppressNextMessageHasBeenSet() const { return m_suppressNextMessageHasBeenSet; }
75 inline void SetSuppressNextMessage(bool value) { m_suppressNextMessageHasBeenSet = true; m_suppressNextMessage = value; }
76 inline DialogAction& WithSuppressNextMessage(bool value) { SetSuppressNextMessage(value); return *this;}
78 private:
79
80 DialogActionType m_type;
81 bool m_typeHasBeenSet = false;
82
83 Aws::String m_slotToElicit;
84 bool m_slotToElicitHasBeenSet = false;
85
86 bool m_suppressNextMessage;
87 bool m_suppressNextMessageHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace LexModelsV2
92} // namespace Aws
AWS_LEXMODELSV2_API DialogAction()
const Aws::String & GetSlotToElicit() const
DialogAction & WithSlotToElicit(const char *value)
DialogAction & WithType(const DialogActionType &value)
void SetType(const DialogActionType &value)
void SetSlotToElicit(Aws::String &&value)
void SetSlotToElicit(const char *value)
DialogAction & WithSlotToElicit(Aws::String &&value)
DialogAction & WithSuppressNextMessage(bool value)
AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const
DialogAction & WithSlotToElicit(const Aws::String &value)
DialogAction & WithType(DialogActionType &&value)
void SetSlotToElicit(const Aws::String &value)
const DialogActionType & GetType() const
AWS_LEXMODELSV2_API DialogAction & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_LEXMODELSV2_API DialogAction(Aws::Utils::Json::JsonView jsonValue)
void SetType(DialogActionType &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue