AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreateSessionResult.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/bedrock-agent-runtime/model/SessionStatus.h>
11#include <utility>
12
13namespace Aws
14{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace BedrockAgentRuntime
26{
27namespace Model
28{
30 {
31 public:
32 AWS_BEDROCKAGENTRUNTIME_API CreateSessionResult() = default;
35
36
38
41 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
42 template<typename CreatedAtT = Aws::Utils::DateTime>
43 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
44 template<typename CreatedAtT = Aws::Utils::DateTime>
45 CreateSessionResult& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
47
49
52 inline const Aws::String& GetSessionArn() const { return m_sessionArn; }
53 template<typename SessionArnT = Aws::String>
54 void SetSessionArn(SessionArnT&& value) { m_sessionArnHasBeenSet = true; m_sessionArn = std::forward<SessionArnT>(value); }
55 template<typename SessionArnT = Aws::String>
56 CreateSessionResult& WithSessionArn(SessionArnT&& value) { SetSessionArn(std::forward<SessionArnT>(value)); return *this;}
58
60
63 inline const Aws::String& GetSessionId() const { return m_sessionId; }
64 template<typename SessionIdT = Aws::String>
65 void SetSessionId(SessionIdT&& value) { m_sessionIdHasBeenSet = true; m_sessionId = std::forward<SessionIdT>(value); }
66 template<typename SessionIdT = Aws::String>
67 CreateSessionResult& WithSessionId(SessionIdT&& value) { SetSessionId(std::forward<SessionIdT>(value)); return *this;}
69
71
74 inline SessionStatus GetSessionStatus() const { return m_sessionStatus; }
75 inline void SetSessionStatus(SessionStatus value) { m_sessionStatusHasBeenSet = true; m_sessionStatus = value; }
78
80
81 inline const Aws::String& GetRequestId() const { return m_requestId; }
82 template<typename RequestIdT = Aws::String>
83 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
84 template<typename RequestIdT = Aws::String>
85 CreateSessionResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
87 private:
88
89 Aws::Utils::DateTime m_createdAt{};
90 bool m_createdAtHasBeenSet = false;
91
92 Aws::String m_sessionArn;
93 bool m_sessionArnHasBeenSet = false;
94
95 Aws::String m_sessionId;
96 bool m_sessionIdHasBeenSet = false;
97
99 bool m_sessionStatusHasBeenSet = false;
100
101 Aws::String m_requestId;
102 bool m_requestIdHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace BedrockAgentRuntime
107} // namespace Aws
CreateSessionResult & WithRequestId(RequestIdT &&value)
CreateSessionResult & WithCreatedAt(CreatedAtT &&value)
CreateSessionResult & WithSessionArn(SessionArnT &&value)
AWS_BEDROCKAGENTRUNTIME_API CreateSessionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_BEDROCKAGENTRUNTIME_API CreateSessionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateSessionResult & WithSessionId(SessionIdT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
CreateSessionResult & WithSessionStatus(SessionStatus value)
AWS_BEDROCKAGENTRUNTIME_API CreateSessionResult()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue