AWS SDK for C++

AWS SDK for C++ Version 1.11.787

Loading...
Searching...
No Matches
UpdateSessionDataResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.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 {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace QConnect {
26namespace Model {
28 public:
29 AWS_QCONNECT_API UpdateSessionDataResult() = default;
32
34
37 inline const Aws::String& GetSessionArn() const { return m_sessionArn; }
38 template <typename SessionArnT = Aws::String>
39 void SetSessionArn(SessionArnT&& value) {
40 m_sessionArnHasBeenSet = true;
41 m_sessionArn = std::forward<SessionArnT>(value);
42 }
43 template <typename SessionArnT = Aws::String>
45 SetSessionArn(std::forward<SessionArnT>(value));
46 return *this;
47 }
49
51
54 inline const Aws::String& GetSessionId() const { return m_sessionId; }
55 template <typename SessionIdT = Aws::String>
56 void SetSessionId(SessionIdT&& value) {
57 m_sessionIdHasBeenSet = true;
58 m_sessionId = std::forward<SessionIdT>(value);
59 }
60 template <typename SessionIdT = Aws::String>
62 SetSessionId(std::forward<SessionIdT>(value));
63 return *this;
64 }
66
68
72 inline SessionDataNamespace GetNamespace() const { return m_namespace; }
74 m_namespaceHasBeenSet = true;
75 m_namespace = value;
76 }
78 SetNamespace(value);
79 return *this;
80 }
82
84
87 inline const Aws::Vector<RuntimeSessionData>& GetData() const { return m_data; }
88 template <typename DataT = Aws::Vector<RuntimeSessionData>>
89 void SetData(DataT&& value) {
90 m_dataHasBeenSet = true;
91 m_data = std::forward<DataT>(value);
92 }
93 template <typename DataT = Aws::Vector<RuntimeSessionData>>
95 SetData(std::forward<DataT>(value));
96 return *this;
97 }
98 template <typename DataT = RuntimeSessionData>
100 m_dataHasBeenSet = true;
101 m_data.emplace_back(std::forward<DataT>(value));
102 return *this;
103 }
105
107
108 inline const Aws::String& GetRequestId() const { return m_requestId; }
109 template <typename RequestIdT = Aws::String>
110 void SetRequestId(RequestIdT&& value) {
111 m_requestIdHasBeenSet = true;
112 m_requestId = std::forward<RequestIdT>(value);
113 }
114 template <typename RequestIdT = Aws::String>
116 SetRequestId(std::forward<RequestIdT>(value));
117 return *this;
118 }
120 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
121
122 private:
123 Aws::String m_sessionArn;
124
125 Aws::String m_sessionId;
126
128
130
131 Aws::String m_requestId;
132 Aws::Http::HttpResponseCode m_HttpResponseCode;
133 bool m_sessionArnHasBeenSet = false;
134 bool m_sessionIdHasBeenSet = false;
135 bool m_namespaceHasBeenSet = false;
136 bool m_dataHasBeenSet = false;
137 bool m_requestIdHasBeenSet = false;
138};
139
140} // namespace Model
141} // namespace QConnect
142} // namespace Aws
UpdateSessionDataResult & AddData(DataT &&value)
UpdateSessionDataResult & WithSessionId(SessionIdT &&value)
const Aws::Vector< RuntimeSessionData > & GetData() const
UpdateSessionDataResult & WithData(DataT &&value)
UpdateSessionDataResult & WithNamespace(SessionDataNamespace value)
AWS_QCONNECT_API UpdateSessionDataResult()=default
AWS_QCONNECT_API UpdateSessionDataResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdateSessionDataResult & WithRequestId(RequestIdT &&value)
AWS_QCONNECT_API UpdateSessionDataResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
UpdateSessionDataResult & WithSessionArn(SessionArnT &&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
Aws::Utils::Json::JsonValue JsonValue