AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Prompt.h
1
6#pragma once
7#include <aws/lex-models/LexModelBuildingService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/lex-models/model/Message.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace LexModelBuildingService
24{
25namespace Model
26{
27
37 class Prompt
38 {
39 public:
40 AWS_LEXMODELBUILDINGSERVICE_API Prompt();
41 AWS_LEXMODELBUILDINGSERVICE_API Prompt(Aws::Utils::Json::JsonView jsonValue);
42 AWS_LEXMODELBUILDINGSERVICE_API Prompt& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_LEXMODELBUILDINGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
52 inline const Aws::Vector<Message>& GetMessages() const{ return m_messages; }
53 inline bool MessagesHasBeenSet() const { return m_messagesHasBeenSet; }
54 inline void SetMessages(const Aws::Vector<Message>& value) { m_messagesHasBeenSet = true; m_messages = value; }
55 inline void SetMessages(Aws::Vector<Message>&& value) { m_messagesHasBeenSet = true; m_messages = std::move(value); }
56 inline Prompt& WithMessages(const Aws::Vector<Message>& value) { SetMessages(value); return *this;}
57 inline Prompt& WithMessages(Aws::Vector<Message>&& value) { SetMessages(std::move(value)); return *this;}
58 inline Prompt& AddMessages(const Message& value) { m_messagesHasBeenSet = true; m_messages.push_back(value); return *this; }
59 inline Prompt& AddMessages(Message&& value) { m_messagesHasBeenSet = true; m_messages.push_back(std::move(value)); return *this; }
61
63
66 inline int GetMaxAttempts() const{ return m_maxAttempts; }
67 inline bool MaxAttemptsHasBeenSet() const { return m_maxAttemptsHasBeenSet; }
68 inline void SetMaxAttempts(int value) { m_maxAttemptsHasBeenSet = true; m_maxAttempts = value; }
69 inline Prompt& WithMaxAttempts(int value) { SetMaxAttempts(value); return *this;}
71
73
79 inline const Aws::String& GetResponseCard() const{ return m_responseCard; }
80 inline bool ResponseCardHasBeenSet() const { return m_responseCardHasBeenSet; }
81 inline void SetResponseCard(const Aws::String& value) { m_responseCardHasBeenSet = true; m_responseCard = value; }
82 inline void SetResponseCard(Aws::String&& value) { m_responseCardHasBeenSet = true; m_responseCard = std::move(value); }
83 inline void SetResponseCard(const char* value) { m_responseCardHasBeenSet = true; m_responseCard.assign(value); }
84 inline Prompt& WithResponseCard(const Aws::String& value) { SetResponseCard(value); return *this;}
85 inline Prompt& WithResponseCard(Aws::String&& value) { SetResponseCard(std::move(value)); return *this;}
86 inline Prompt& WithResponseCard(const char* value) { SetResponseCard(value); return *this;}
88 private:
89
90 Aws::Vector<Message> m_messages;
91 bool m_messagesHasBeenSet = false;
92
93 int m_maxAttempts;
94 bool m_maxAttemptsHasBeenSet = false;
95
96 Aws::String m_responseCard;
97 bool m_responseCardHasBeenSet = false;
98 };
99
100} // namespace Model
101} // namespace LexModelBuildingService
102} // namespace Aws
Prompt & WithResponseCard(const Aws::String &value)
Definition Prompt.h:84
void SetResponseCard(Aws::String &&value)
Definition Prompt.h:82
AWS_LEXMODELBUILDINGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
Prompt & AddMessages(Message &&value)
Definition Prompt.h:59
Prompt & AddMessages(const Message &value)
Definition Prompt.h:58
const Aws::Vector< Message > & GetMessages() const
Definition Prompt.h:52
Prompt & WithMessages(Aws::Vector< Message > &&value)
Definition Prompt.h:57
void SetMessages(Aws::Vector< Message > &&value)
Definition Prompt.h:55
AWS_LEXMODELBUILDINGSERVICE_API Prompt()
void SetMessages(const Aws::Vector< Message > &value)
Definition Prompt.h:54
void SetResponseCard(const Aws::String &value)
Definition Prompt.h:81
void SetResponseCard(const char *value)
Definition Prompt.h:83
Prompt & WithMessages(const Aws::Vector< Message > &value)
Definition Prompt.h:56
Prompt & WithResponseCard(Aws::String &&value)
Definition Prompt.h:85
AWS_LEXMODELBUILDINGSERVICE_API Prompt(Aws::Utils::Json::JsonView jsonValue)
Prompt & WithResponseCard(const char *value)
Definition Prompt.h:86
const Aws::String & GetResponseCard() const
Definition Prompt.h:79
AWS_LEXMODELBUILDINGSERVICE_API Prompt & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue