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-runtime/LexRuntimeV2_EXPORTS.h>
8#include <aws/lexv2-runtime/model/DialogActionType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/lexv2-runtime/model/StyleType.h>
11#include <aws/lexv2-runtime/model/ElicitSubSlot.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace LexRuntimeV2
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_LEXRUNTIMEV2_API DialogAction();
38 AWS_LEXRUNTIMEV2_API DialogAction(Aws::Utils::Json::JsonView jsonValue);
39 AWS_LEXRUNTIMEV2_API DialogAction& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_LEXRUNTIMEV2_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
57 inline const DialogActionType& GetType() const{ return m_type; }
58 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
59 inline void SetType(const DialogActionType& value) { m_typeHasBeenSet = true; m_type = value; }
60 inline void SetType(DialogActionType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
61 inline DialogAction& WithType(const DialogActionType& value) { SetType(value); return *this;}
62 inline DialogAction& WithType(DialogActionType&& value) { SetType(std::move(value)); return *this;}
64
66
69 inline const Aws::String& GetSlotToElicit() const{ return m_slotToElicit; }
70 inline bool SlotToElicitHasBeenSet() const { return m_slotToElicitHasBeenSet; }
71 inline void SetSlotToElicit(const Aws::String& value) { m_slotToElicitHasBeenSet = true; m_slotToElicit = value; }
72 inline void SetSlotToElicit(Aws::String&& value) { m_slotToElicitHasBeenSet = true; m_slotToElicit = std::move(value); }
73 inline void SetSlotToElicit(const char* value) { m_slotToElicitHasBeenSet = true; m_slotToElicit.assign(value); }
74 inline DialogAction& WithSlotToElicit(const Aws::String& value) { SetSlotToElicit(value); return *this;}
75 inline DialogAction& WithSlotToElicit(Aws::String&& value) { SetSlotToElicit(std::move(value)); return *this;}
76 inline DialogAction& WithSlotToElicit(const char* value) { SetSlotToElicit(value); return *this;}
78
80
89 inline const StyleType& GetSlotElicitationStyle() const{ return m_slotElicitationStyle; }
90 inline bool SlotElicitationStyleHasBeenSet() const { return m_slotElicitationStyleHasBeenSet; }
91 inline void SetSlotElicitationStyle(const StyleType& value) { m_slotElicitationStyleHasBeenSet = true; m_slotElicitationStyle = value; }
92 inline void SetSlotElicitationStyle(StyleType&& value) { m_slotElicitationStyleHasBeenSet = true; m_slotElicitationStyle = std::move(value); }
93 inline DialogAction& WithSlotElicitationStyle(const StyleType& value) { SetSlotElicitationStyle(value); return *this;}
94 inline DialogAction& WithSlotElicitationStyle(StyleType&& value) { SetSlotElicitationStyle(std::move(value)); return *this;}
96
98
102 inline const ElicitSubSlot& GetSubSlotToElicit() const{ return m_subSlotToElicit; }
103 inline bool SubSlotToElicitHasBeenSet() const { return m_subSlotToElicitHasBeenSet; }
104 inline void SetSubSlotToElicit(const ElicitSubSlot& value) { m_subSlotToElicitHasBeenSet = true; m_subSlotToElicit = value; }
105 inline void SetSubSlotToElicit(ElicitSubSlot&& value) { m_subSlotToElicitHasBeenSet = true; m_subSlotToElicit = std::move(value); }
106 inline DialogAction& WithSubSlotToElicit(const ElicitSubSlot& value) { SetSubSlotToElicit(value); return *this;}
107 inline DialogAction& WithSubSlotToElicit(ElicitSubSlot&& value) { SetSubSlotToElicit(std::move(value)); return *this;}
109 private:
110
111 DialogActionType m_type;
112 bool m_typeHasBeenSet = false;
113
114 Aws::String m_slotToElicit;
115 bool m_slotToElicitHasBeenSet = false;
116
117 StyleType m_slotElicitationStyle;
118 bool m_slotElicitationStyleHasBeenSet = false;
119
120 ElicitSubSlot m_subSlotToElicit;
121 bool m_subSlotToElicitHasBeenSet = false;
122 };
123
124} // namespace Model
125} // namespace LexRuntimeV2
126} // namespace Aws
void SetSlotToElicit(const char *value)
void SetSlotToElicit(const Aws::String &value)
DialogAction & WithSlotToElicit(Aws::String &&value)
const ElicitSubSlot & GetSubSlotToElicit() const
AWS_LEXRUNTIMEV2_API Aws::Utils::Json::JsonValue Jsonize() const
DialogAction & WithSlotElicitationStyle(const StyleType &value)
void SetSubSlotToElicit(const ElicitSubSlot &value)
DialogAction & WithSlotElicitationStyle(StyleType &&value)
void SetType(DialogActionType &&value)
AWS_LEXRUNTIMEV2_API DialogAction()
AWS_LEXRUNTIMEV2_API DialogAction & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetType(const DialogActionType &value)
DialogAction & WithSlotToElicit(const Aws::String &value)
DialogAction & WithType(DialogActionType &&value)
const StyleType & GetSlotElicitationStyle() const
DialogAction & WithSubSlotToElicit(ElicitSubSlot &&value)
DialogAction & WithSubSlotToElicit(const ElicitSubSlot &value)
void SetSlotElicitationStyle(const StyleType &value)
const Aws::String & GetSlotToElicit() const
const DialogActionType & GetType() const
AWS_LEXRUNTIMEV2_API DialogAction(Aws::Utils::Json::JsonView jsonValue)
DialogAction & WithType(const DialogActionType &value)
DialogAction & WithSlotToElicit(const char *value)
void SetSlotToElicit(Aws::String &&value)
void SetSlotElicitationStyle(StyleType &&value)
void SetSubSlotToElicit(ElicitSubSlot &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue