AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
34
35
37
40 inline const Aws::String& GetSessionId() const{ return m_sessionId; }
41 inline void SetSessionId(const Aws::String& value) { m_sessionId = value; }
42 inline void SetSessionId(Aws::String&& value) { m_sessionId = std::move(value); }
43 inline void SetSessionId(const char* value) { m_sessionId.assign(value); }
44 inline StartSessionResult& WithSessionId(const Aws::String& value) { SetSessionId(value); return *this;}
45 inline StartSessionResult& WithSessionId(Aws::String&& value) { SetSessionId(std::move(value)); return *this;}
46 inline StartSessionResult& WithSessionId(const char* value) { SetSessionId(value); return *this;}
48
50
62 inline const SessionState& GetState() const{ return m_state; }
63 inline void SetState(const SessionState& value) { m_state = value; }
64 inline void SetState(SessionState&& value) { m_state = std::move(value); }
65 inline StartSessionResult& WithState(const SessionState& value) { SetState(value); return *this;}
66 inline StartSessionResult& WithState(SessionState&& value) { SetState(std::move(value)); return *this;}
68
70
71 inline const Aws::String& GetRequestId() const{ return m_requestId; }
72 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
73 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
74 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
75 inline StartSessionResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
76 inline StartSessionResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
77 inline StartSessionResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
79 private:
80
81 Aws::String m_sessionId;
82
83 SessionState m_state;
84
85 Aws::String m_requestId;
86 };
87
88} // namespace Model
89} // namespace Athena
90} // namespace Aws
AWS_ATHENA_API StartSessionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
StartSessionResult & WithRequestId(const char *value)
StartSessionResult & WithRequestId(Aws::String &&value)
StartSessionResult & WithState(SessionState &&value)
void SetState(const SessionState &value)
StartSessionResult & WithRequestId(const Aws::String &value)
const Aws::String & GetRequestId() const
StartSessionResult & WithSessionId(const Aws::String &value)
const Aws::String & GetSessionId() const
StartSessionResult & WithState(const SessionState &value)
StartSessionResult & WithSessionId(Aws::String &&value)
StartSessionResult & WithSessionId(const char *value)
AWS_ATHENA_API StartSessionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetSessionId(const Aws::String &value)
void SetRequestId(const Aws::String &value)
const SessionState & GetState() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue