AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename MessagesT = Aws::Vector<Message>>
55 void SetMessages(MessagesT&& value) { m_messagesHasBeenSet = true; m_messages = std::forward<MessagesT>(value); }
56 template<typename MessagesT = Aws::Vector<Message>>
57 Prompt& WithMessages(MessagesT&& value) { SetMessages(std::forward<MessagesT>(value)); return *this;}
58 template<typename MessagesT = Message>
59 Prompt& AddMessages(MessagesT&& value) { m_messagesHasBeenSet = true; m_messages.emplace_back(std::forward<MessagesT>(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 template<typename ResponseCardT = Aws::String>
82 void SetResponseCard(ResponseCardT&& value) { m_responseCardHasBeenSet = true; m_responseCard = std::forward<ResponseCardT>(value); }
83 template<typename ResponseCardT = Aws::String>
84 Prompt& WithResponseCard(ResponseCardT&& value) { SetResponseCard(std::forward<ResponseCardT>(value)); return *this;}
86 private:
87
88 Aws::Vector<Message> m_messages;
89 bool m_messagesHasBeenSet = false;
90
91 int m_maxAttempts{0};
92 bool m_maxAttemptsHasBeenSet = false;
93
94 Aws::String m_responseCard;
95 bool m_responseCardHasBeenSet = false;
96 };
97
98} // namespace Model
99} // namespace LexModelBuildingService
100} // namespace Aws
AWS_LEXMODELBUILDINGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetResponseCard(ResponseCardT &&value)
Definition Prompt.h:82
AWS_LEXMODELBUILDINGSERVICE_API Prompt()=default
const Aws::Vector< Message > & GetMessages() const
Definition Prompt.h:52
Prompt & WithResponseCard(ResponseCardT &&value)
Definition Prompt.h:84
void SetMessages(MessagesT &&value)
Definition Prompt.h:55
Prompt & WithMessages(MessagesT &&value)
Definition Prompt.h:57
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: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