AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
SelfServiceConversationHistory.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/qconnect/QConnect_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace QConnect {
21namespace Model {
22
30 public:
31 AWS_QCONNECT_API SelfServiceConversationHistory() = default;
34 AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline int GetTurnNumber() const { return m_turnNumber; }
41 inline bool TurnNumberHasBeenSet() const { return m_turnNumberHasBeenSet; }
42 inline void SetTurnNumber(int value) {
43 m_turnNumberHasBeenSet = true;
44 m_turnNumber = value;
45 }
47 SetTurnNumber(value);
48 return *this;
49 }
51
53
56 inline const Aws::String& GetInputTranscript() const { return m_inputTranscript; }
57 inline bool InputTranscriptHasBeenSet() const { return m_inputTranscriptHasBeenSet; }
58 template <typename InputTranscriptT = Aws::String>
60 m_inputTranscriptHasBeenSet = true;
61 m_inputTranscript = std::forward<InputTranscriptT>(value);
62 }
63 template <typename InputTranscriptT = Aws::String>
65 SetInputTranscript(std::forward<InputTranscriptT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetBotResponse() const { return m_botResponse; }
75 inline bool BotResponseHasBeenSet() const { return m_botResponseHasBeenSet; }
76 template <typename BotResponseT = Aws::String>
78 m_botResponseHasBeenSet = true;
79 m_botResponse = std::forward<BotResponseT>(value);
80 }
81 template <typename BotResponseT = Aws::String>
83 SetBotResponse(std::forward<BotResponseT>(value));
84 return *this;
85 }
87
89
92 inline const Aws::Utils::DateTime& GetTimestamp() const { return m_timestamp; }
93 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
94 template <typename TimestampT = Aws::Utils::DateTime>
95 void SetTimestamp(TimestampT&& value) {
96 m_timestampHasBeenSet = true;
97 m_timestamp = std::forward<TimestampT>(value);
98 }
99 template <typename TimestampT = Aws::Utils::DateTime>
101 SetTimestamp(std::forward<TimestampT>(value));
102 return *this;
103 }
105 private:
106 int m_turnNumber{0};
107
108 Aws::String m_inputTranscript;
109
110 Aws::String m_botResponse;
111
112 Aws::Utils::DateTime m_timestamp{};
113 bool m_turnNumberHasBeenSet = false;
114 bool m_inputTranscriptHasBeenSet = false;
115 bool m_botResponseHasBeenSet = false;
116 bool m_timestampHasBeenSet = false;
117};
118
119} // namespace Model
120} // namespace QConnect
121} // 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 & WithTimestamp(TimestampT &&value)
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