AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
StartSessionResult.h
1
6#pragma once
7#include <aws/athena/Athena_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/athena/model/SessionState.h>
10#include <utility>
11
12namespace Aws
13{
14template<typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace Athena
25{
26namespace Model
27{
29 {
30 public:
31 AWS_ATHENA_API StartSessionResult() = default;
34
35
37
40 inline const Aws::String& GetSessionId() const { return m_sessionId; }
41 template<typename SessionIdT = Aws::String>
42 void SetSessionId(SessionIdT&& value) { m_sessionIdHasBeenSet = true; m_sessionId = std::forward<SessionIdT>(value); }
43 template<typename SessionIdT = Aws::String>
44 StartSessionResult& WithSessionId(SessionIdT&& value) { SetSessionId(std::forward<SessionIdT>(value)); return *this;}
46
48
60 inline SessionState GetState() const { return m_state; }
61 inline void SetState(SessionState value) { m_stateHasBeenSet = true; m_state = value; }
62 inline StartSessionResult& WithState(SessionState value) { SetState(value); return *this;}
64
66
67 inline const Aws::String& GetRequestId() const { return m_requestId; }
68 template<typename RequestIdT = Aws::String>
69 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
70 template<typename RequestIdT = Aws::String>
71 StartSessionResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
73 private:
74
75 Aws::String m_sessionId;
76 bool m_sessionIdHasBeenSet = false;
77
79 bool m_stateHasBeenSet = false;
80
81 Aws::String m_requestId;
82 bool m_requestIdHasBeenSet = false;
83 };
84
85} // namespace Model
86} // namespace Athena
87} // namespace Aws
StartSessionResult & WithState(SessionState value)
AWS_ATHENA_API StartSessionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::String & GetRequestId() const
StartSessionResult & WithRequestId(RequestIdT &&value)
StartSessionResult & WithSessionId(SessionIdT &&value)
const Aws::String & GetSessionId() const
AWS_ATHENA_API StartSessionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_ATHENA_API StartSessionResult()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue