AWS SDK for C++

AWS SDK for C++ Version 1.11.926

Loading...
Searching...
No Matches
Prompt.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/lex-models/LexModelBuildingService_EXPORTS.h>
10#include <aws/lex-models/model/Message.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace LexModelBuildingService {
22namespace Model {
23
33class Prompt {
34 public:
35 AWS_LEXMODELBUILDINGSERVICE_API Prompt() = default;
36 AWS_LEXMODELBUILDINGSERVICE_API Prompt(Aws::Utils::Json::JsonView jsonValue);
37 AWS_LEXMODELBUILDINGSERVICE_API Prompt& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_LEXMODELBUILDINGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
46 inline const Aws::Vector<Message>& GetMessages() const { return m_messages; }
47 inline bool MessagesHasBeenSet() const { return m_messagesHasBeenSet; }
48 template <typename MessagesT = Aws::Vector<Message>>
49 void SetMessages(MessagesT&& value) {
50 m_messagesHasBeenSet = true;
51 m_messages = std::forward<MessagesT>(value);
52 }
53 template <typename MessagesT = Aws::Vector<Message>>
54 Prompt& WithMessages(MessagesT&& value) {
55 SetMessages(std::forward<MessagesT>(value));
56 return *this;
57 }
58 template <typename MessagesT = Message>
59 Prompt& AddMessages(MessagesT&& value) {
60 m_messagesHasBeenSet = true;
61 m_messages.emplace_back(std::forward<MessagesT>(value));
62 return *this;
63 }
65
67
70 inline int GetMaxAttempts() const { return m_maxAttempts; }
71 inline bool MaxAttemptsHasBeenSet() const { return m_maxAttemptsHasBeenSet; }
72 inline void SetMaxAttempts(int value) {
73 m_maxAttemptsHasBeenSet = true;
74 m_maxAttempts = value;
75 }
76 inline Prompt& WithMaxAttempts(int value) {
77 SetMaxAttempts(value);
78 return *this;
79 }
81
83
89 inline const Aws::String& GetResponseCard() const { return m_responseCard; }
90 inline bool ResponseCardHasBeenSet() const { return m_responseCardHasBeenSet; }
91 template <typename ResponseCardT = Aws::String>
92 void SetResponseCard(ResponseCardT&& value) {
93 m_responseCardHasBeenSet = true;
94 m_responseCard = std::forward<ResponseCardT>(value);
95 }
96 template <typename ResponseCardT = Aws::String>
97 Prompt& WithResponseCard(ResponseCardT&& value) {
98 SetResponseCard(std::forward<ResponseCardT>(value));
99 return *this;
100 }
102 private:
103 Aws::Vector<Message> m_messages;
104
105 int m_maxAttempts{0};
106
107 Aws::String m_responseCard;
108 bool m_messagesHasBeenSet = false;
109 bool m_maxAttemptsHasBeenSet = false;
110 bool m_responseCardHasBeenSet = false;
111};
112
113} // namespace Model
114} // namespace LexModelBuildingService
115} // namespace Aws
AWS_LEXMODELBUILDINGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetResponseCard(ResponseCardT &&value)
Definition Prompt.h:92
AWS_LEXMODELBUILDINGSERVICE_API Prompt()=default
const Aws::Vector< Message > & GetMessages() const
Definition Prompt.h:46
Prompt & WithResponseCard(ResponseCardT &&value)
Definition Prompt.h:97
void SetMessages(MessagesT &&value)
Definition Prompt.h:49
Prompt & WithMessages(MessagesT &&value)
Definition Prompt.h:54
Prompt & AddMessages(MessagesT &&value)
Definition Prompt.h:59
AWS_LEXMODELBUILDINGSERVICE_API Prompt(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetResponseCard() const
Definition Prompt.h:89
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