AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
EndSessionResult.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/bedrock-agent-runtime/model/SessionStatus.h>
9#include <aws/core/http/HttpResponse.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace BedrockAgentRuntime {
24namespace Model {
26 public:
27 AWS_BEDROCKAGENTRUNTIME_API EndSessionResult() = default;
30
32
35 inline const Aws::String& GetSessionArn() const { return m_sessionArn; }
36 template <typename SessionArnT = Aws::String>
37 void SetSessionArn(SessionArnT&& value) {
38 m_sessionArnHasBeenSet = true;
39 m_sessionArn = std::forward<SessionArnT>(value);
40 }
41 template <typename SessionArnT = Aws::String>
43 SetSessionArn(std::forward<SessionArnT>(value));
44 return *this;
45 }
47
49
52 inline const Aws::String& GetSessionId() const { return m_sessionId; }
53 template <typename SessionIdT = Aws::String>
54 void SetSessionId(SessionIdT&& value) {
55 m_sessionIdHasBeenSet = true;
56 m_sessionId = std::forward<SessionIdT>(value);
57 }
58 template <typename SessionIdT = Aws::String>
60 SetSessionId(std::forward<SessionIdT>(value));
61 return *this;
62 }
64
66
69 inline SessionStatus GetSessionStatus() const { return m_sessionStatus; }
70 inline void SetSessionStatus(SessionStatus value) {
71 m_sessionStatusHasBeenSet = true;
72 m_sessionStatus = value;
73 }
75 SetSessionStatus(value);
76 return *this;
77 }
79
81
82 inline const Aws::String& GetRequestId() const { return m_requestId; }
83 template <typename RequestIdT = Aws::String>
84 void SetRequestId(RequestIdT&& value) {
85 m_requestIdHasBeenSet = true;
86 m_requestId = std::forward<RequestIdT>(value);
87 }
88 template <typename RequestIdT = Aws::String>
90 SetRequestId(std::forward<RequestIdT>(value));
91 return *this;
92 }
94 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
95
96 private:
97 Aws::String m_sessionArn;
98
99 Aws::String m_sessionId;
100
101 SessionStatus m_sessionStatus{SessionStatus::NOT_SET};
102
103 Aws::String m_requestId;
104 Aws::Http::HttpResponseCode m_HttpResponseCode;
105 bool m_sessionArnHasBeenSet = false;
106 bool m_sessionIdHasBeenSet = false;
107 bool m_sessionStatusHasBeenSet = false;
108 bool m_requestIdHasBeenSet = false;
109};
110
111} // namespace Model
112} // namespace BedrockAgentRuntime
113} // namespace Aws
EndSessionResult & WithRequestId(RequestIdT &&value)
EndSessionResult & WithSessionId(SessionIdT &&value)
EndSessionResult & WithSessionArn(SessionArnT &&value)
AWS_BEDROCKAGENTRUNTIME_API EndSessionResult()=default
EndSessionResult & WithSessionStatus(SessionStatus value)
AWS_BEDROCKAGENTRUNTIME_API EndSessionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AWS_BEDROCKAGENTRUNTIME_API EndSessionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
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