AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
UpdateSessionDataRequest.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/qconnect/QConnectRequest.h>
10#include <aws/qconnect/QConnect_EXPORTS.h>
11#include <aws/qconnect/model/RuntimeSessionData.h>
12#include <aws/qconnect/model/SessionDataNamespace.h>
13
14#include <utility>
15
16namespace Aws {
17namespace QConnect {
18namespace Model {
19
23 public:
24 AWS_QCONNECT_API UpdateSessionDataRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "UpdateSessionData"; }
31
32 AWS_QCONNECT_API Aws::String SerializePayload() const override;
33
35
39 inline const Aws::String& GetAssistantId() const { return m_assistantId; }
40 inline bool AssistantIdHasBeenSet() const { return m_assistantIdHasBeenSet; }
41 template <typename AssistantIdT = Aws::String>
43 m_assistantIdHasBeenSet = true;
44 m_assistantId = std::forward<AssistantIdT>(value);
45 }
46 template <typename AssistantIdT = Aws::String>
48 SetAssistantId(std::forward<AssistantIdT>(value));
49 return *this;
50 }
52
54
58 inline const Aws::String& GetSessionId() const { return m_sessionId; }
59 inline bool SessionIdHasBeenSet() const { return m_sessionIdHasBeenSet; }
60 template <typename SessionIdT = Aws::String>
61 void SetSessionId(SessionIdT&& value) {
62 m_sessionIdHasBeenSet = true;
63 m_sessionId = std::forward<SessionIdT>(value);
64 }
65 template <typename SessionIdT = Aws::String>
67 SetSessionId(std::forward<SessionIdT>(value));
68 return *this;
69 }
71
73
77 inline SessionDataNamespace GetNamespace() const { return m_namespace; }
78 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
80 m_namespaceHasBeenSet = true;
81 m_namespace = value;
82 }
84 SetNamespace(value);
85 return *this;
86 }
88
90
93 inline const Aws::Vector<RuntimeSessionData>& GetData() const { return m_data; }
94 inline bool DataHasBeenSet() const { return m_dataHasBeenSet; }
95 template <typename DataT = Aws::Vector<RuntimeSessionData>>
96 void SetData(DataT&& value) {
97 m_dataHasBeenSet = true;
98 m_data = std::forward<DataT>(value);
99 }
100 template <typename DataT = Aws::Vector<RuntimeSessionData>>
102 SetData(std::forward<DataT>(value));
103 return *this;
104 }
105 template <typename DataT = RuntimeSessionData>
107 m_dataHasBeenSet = true;
108 m_data.emplace_back(std::forward<DataT>(value));
109 return *this;
110 }
112 private:
113 Aws::String m_assistantId;
114
115 Aws::String m_sessionId;
116
118
120 bool m_assistantIdHasBeenSet = false;
121 bool m_sessionIdHasBeenSet = false;
122 bool m_namespaceHasBeenSet = false;
123 bool m_dataHasBeenSet = false;
124};
125
126} // namespace Model
127} // namespace QConnect
128} // namespace Aws
UpdateSessionDataRequest & WithNamespace(SessionDataNamespace value)
UpdateSessionDataRequest & AddData(DataT &&value)
UpdateSessionDataRequest & WithAssistantId(AssistantIdT &&value)
const Aws::Vector< RuntimeSessionData > & GetData() const
virtual const char * GetServiceRequestName() const override
AWS_QCONNECT_API Aws::String SerializePayload() const override
UpdateSessionDataRequest & WithData(DataT &&value)
AWS_QCONNECT_API UpdateSessionDataRequest()=default
UpdateSessionDataRequest & WithSessionId(SessionIdT &&value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector