AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
SelfServiceConversationHistory.h
1
6#pragma once
7#include <aws/qconnect/QConnect_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace QConnect
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_QCONNECT_API SelfServiceConversationHistory() = default;
38 AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline int GetTurnNumber() const { return m_turnNumber; }
46 inline bool TurnNumberHasBeenSet() const { return m_turnNumberHasBeenSet; }
47 inline void SetTurnNumber(int value) { m_turnNumberHasBeenSet = true; m_turnNumber = value; }
48 inline SelfServiceConversationHistory& WithTurnNumber(int value) { SetTurnNumber(value); return *this;}
50
52
55 inline const Aws::String& GetInputTranscript() const { return m_inputTranscript; }
56 inline bool InputTranscriptHasBeenSet() const { return m_inputTranscriptHasBeenSet; }
57 template<typename InputTranscriptT = Aws::String>
58 void SetInputTranscript(InputTranscriptT&& value) { m_inputTranscriptHasBeenSet = true; m_inputTranscript = std::forward<InputTranscriptT>(value); }
59 template<typename InputTranscriptT = Aws::String>
60 SelfServiceConversationHistory& WithInputTranscript(InputTranscriptT&& value) { SetInputTranscript(std::forward<InputTranscriptT>(value)); return *this;}
62
64
67 inline const Aws::String& GetBotResponse() const { return m_botResponse; }
68 inline bool BotResponseHasBeenSet() const { return m_botResponseHasBeenSet; }
69 template<typename BotResponseT = Aws::String>
70 void SetBotResponse(BotResponseT&& value) { m_botResponseHasBeenSet = true; m_botResponse = std::forward<BotResponseT>(value); }
71 template<typename BotResponseT = Aws::String>
72 SelfServiceConversationHistory& WithBotResponse(BotResponseT&& value) { SetBotResponse(std::forward<BotResponseT>(value)); return *this;}
74 private:
75
76 int m_turnNumber{0};
77 bool m_turnNumberHasBeenSet = false;
78
79 Aws::String m_inputTranscript;
80 bool m_inputTranscriptHasBeenSet = false;
81
82 Aws::String m_botResponse;
83 bool m_botResponseHasBeenSet = false;
84 };
85
86} // namespace Model
87} // namespace QConnect
88} // namespace Aws
AWS_QCONNECT_API SelfServiceConversationHistory & operator=(Aws::Utils::Json::JsonView jsonValue)
SelfServiceConversationHistory & WithTurnNumber(int value)
SelfServiceConversationHistory & WithInputTranscript(InputTranscriptT &&value)
AWS_QCONNECT_API SelfServiceConversationHistory(Aws::Utils::Json::JsonView jsonValue)
AWS_QCONNECT_API SelfServiceConversationHistory()=default
AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
SelfServiceConversationHistory & WithBotResponse(BotResponseT &&value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue