AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ConversationContext.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/qconnect/QConnect_EXPORTS.h>
9#include <aws/qconnect/model/SelfServiceConversationHistory.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 ConversationContext() = default;
34 AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
42 return m_selfServiceConversationHistory;
43 }
44 inline bool SelfServiceConversationHistoryHasBeenSet() const { return m_selfServiceConversationHistoryHasBeenSet; }
45 template <typename SelfServiceConversationHistoryT = Aws::Vector<SelfServiceConversationHistory>>
46 void SetSelfServiceConversationHistory(SelfServiceConversationHistoryT&& value) {
47 m_selfServiceConversationHistoryHasBeenSet = true;
48 m_selfServiceConversationHistory = std::forward<SelfServiceConversationHistoryT>(value);
49 }
50 template <typename SelfServiceConversationHistoryT = Aws::Vector<SelfServiceConversationHistory>>
51 ConversationContext& WithSelfServiceConversationHistory(SelfServiceConversationHistoryT&& value) {
52 SetSelfServiceConversationHistory(std::forward<SelfServiceConversationHistoryT>(value));
53 return *this;
54 }
55 template <typename SelfServiceConversationHistoryT = SelfServiceConversationHistory>
56 ConversationContext& AddSelfServiceConversationHistory(SelfServiceConversationHistoryT&& value) {
57 m_selfServiceConversationHistoryHasBeenSet = true;
58 m_selfServiceConversationHistory.emplace_back(std::forward<SelfServiceConversationHistoryT>(value));
59 return *this;
60 }
62 private:
63 Aws::Vector<SelfServiceConversationHistory> m_selfServiceConversationHistory;
64 bool m_selfServiceConversationHistoryHasBeenSet = false;
65};
66
67} // namespace Model
68} // namespace QConnect
69} // namespace Aws
AWS_QCONNECT_API ConversationContext()=default
const Aws::Vector< SelfServiceConversationHistory > & GetSelfServiceConversationHistory() const
AWS_QCONNECT_API ConversationContext & operator=(Aws::Utils::Json::JsonView jsonValue)
ConversationContext & WithSelfServiceConversationHistory(SelfServiceConversationHistoryT &&value)
void SetSelfServiceConversationHistory(SelfServiceConversationHistoryT &&value)
AWS_QCONNECT_API ConversationContext(Aws::Utils::Json::JsonView jsonValue)
AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
ConversationContext & AddSelfServiceConversationHistory(SelfServiceConversationHistoryT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue