/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace Athena { namespace Model { class GetSessionResult { public: AWS_ATHENA_API GetSessionResult(); AWS_ATHENA_API GetSessionResult(const Aws::AmazonWebServiceResult& result); AWS_ATHENA_API GetSessionResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The session ID.

*/ inline const Aws::String& GetSessionId() const{ return m_sessionId; } /** *

The session ID.

*/ inline void SetSessionId(const Aws::String& value) { m_sessionId = value; } /** *

The session ID.

*/ inline void SetSessionId(Aws::String&& value) { m_sessionId = std::move(value); } /** *

The session ID.

*/ inline void SetSessionId(const char* value) { m_sessionId.assign(value); } /** *

The session ID.

*/ inline GetSessionResult& WithSessionId(const Aws::String& value) { SetSessionId(value); return *this;} /** *

The session ID.

*/ inline GetSessionResult& WithSessionId(Aws::String&& value) { SetSessionId(std::move(value)); return *this;} /** *

The session ID.

*/ inline GetSessionResult& WithSessionId(const char* value) { SetSessionId(value); return *this;} /** *

The session description.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

The session description.

*/ inline void SetDescription(const Aws::String& value) { m_description = value; } /** *

The session description.

*/ inline void SetDescription(Aws::String&& value) { m_description = std::move(value); } /** *

The session description.

*/ inline void SetDescription(const char* value) { m_description.assign(value); } /** *

The session description.

*/ inline GetSessionResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

The session description.

*/ inline GetSessionResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

The session description.

*/ inline GetSessionResult& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The workgroup to which the session belongs.

*/ inline const Aws::String& GetWorkGroup() const{ return m_workGroup; } /** *

The workgroup to which the session belongs.

*/ inline void SetWorkGroup(const Aws::String& value) { m_workGroup = value; } /** *

The workgroup to which the session belongs.

*/ inline void SetWorkGroup(Aws::String&& value) { m_workGroup = std::move(value); } /** *

The workgroup to which the session belongs.

*/ inline void SetWorkGroup(const char* value) { m_workGroup.assign(value); } /** *

The workgroup to which the session belongs.

*/ inline GetSessionResult& WithWorkGroup(const Aws::String& value) { SetWorkGroup(value); return *this;} /** *

The workgroup to which the session belongs.

*/ inline GetSessionResult& WithWorkGroup(Aws::String&& value) { SetWorkGroup(std::move(value)); return *this;} /** *

The workgroup to which the session belongs.

*/ inline GetSessionResult& WithWorkGroup(const char* value) { SetWorkGroup(value); return *this;} /** *

The engine version used by the session (for example, PySpark engine * version 3). You can get a list of engine versions by calling * ListEngineVersions.

*/ inline const Aws::String& GetEngineVersion() const{ return m_engineVersion; } /** *

The engine version used by the session (for example, PySpark engine * version 3). You can get a list of engine versions by calling * ListEngineVersions.

*/ inline void SetEngineVersion(const Aws::String& value) { m_engineVersion = value; } /** *

The engine version used by the session (for example, PySpark engine * version 3). You can get a list of engine versions by calling * ListEngineVersions.

*/ inline void SetEngineVersion(Aws::String&& value) { m_engineVersion = std::move(value); } /** *

The engine version used by the session (for example, PySpark engine * version 3). You can get a list of engine versions by calling * ListEngineVersions.

*/ inline void SetEngineVersion(const char* value) { m_engineVersion.assign(value); } /** *

The engine version used by the session (for example, PySpark engine * version 3). You can get a list of engine versions by calling * ListEngineVersions.

*/ inline GetSessionResult& WithEngineVersion(const Aws::String& value) { SetEngineVersion(value); return *this;} /** *

The engine version used by the session (for example, PySpark engine * version 3). You can get a list of engine versions by calling * ListEngineVersions.

*/ inline GetSessionResult& WithEngineVersion(Aws::String&& value) { SetEngineVersion(std::move(value)); return *this;} /** *

The engine version used by the session (for example, PySpark engine * version 3). You can get a list of engine versions by calling * ListEngineVersions.

*/ inline GetSessionResult& WithEngineVersion(const char* value) { SetEngineVersion(value); return *this;} /** *

Contains engine configuration information like DPU usage.

*/ inline const EngineConfiguration& GetEngineConfiguration() const{ return m_engineConfiguration; } /** *

Contains engine configuration information like DPU usage.

*/ inline void SetEngineConfiguration(const EngineConfiguration& value) { m_engineConfiguration = value; } /** *

Contains engine configuration information like DPU usage.

*/ inline void SetEngineConfiguration(EngineConfiguration&& value) { m_engineConfiguration = std::move(value); } /** *

Contains engine configuration information like DPU usage.

*/ inline GetSessionResult& WithEngineConfiguration(const EngineConfiguration& value) { SetEngineConfiguration(value); return *this;} /** *

Contains engine configuration information like DPU usage.

*/ inline GetSessionResult& WithEngineConfiguration(EngineConfiguration&& value) { SetEngineConfiguration(std::move(value)); return *this;} /** *

The notebook version.

*/ inline const Aws::String& GetNotebookVersion() const{ return m_notebookVersion; } /** *

The notebook version.

*/ inline void SetNotebookVersion(const Aws::String& value) { m_notebookVersion = value; } /** *

The notebook version.

*/ inline void SetNotebookVersion(Aws::String&& value) { m_notebookVersion = std::move(value); } /** *

The notebook version.

*/ inline void SetNotebookVersion(const char* value) { m_notebookVersion.assign(value); } /** *

The notebook version.

*/ inline GetSessionResult& WithNotebookVersion(const Aws::String& value) { SetNotebookVersion(value); return *this;} /** *

The notebook version.

*/ inline GetSessionResult& WithNotebookVersion(Aws::String&& value) { SetNotebookVersion(std::move(value)); return *this;} /** *

The notebook version.

*/ inline GetSessionResult& WithNotebookVersion(const char* value) { SetNotebookVersion(value); return *this;} /** *

Contains the workgroup configuration information used by the session.

*/ inline const SessionConfiguration& GetSessionConfiguration() const{ return m_sessionConfiguration; } /** *

Contains the workgroup configuration information used by the session.

*/ inline void SetSessionConfiguration(const SessionConfiguration& value) { m_sessionConfiguration = value; } /** *

Contains the workgroup configuration information used by the session.

*/ inline void SetSessionConfiguration(SessionConfiguration&& value) { m_sessionConfiguration = std::move(value); } /** *

Contains the workgroup configuration information used by the session.

*/ inline GetSessionResult& WithSessionConfiguration(const SessionConfiguration& value) { SetSessionConfiguration(value); return *this;} /** *

Contains the workgroup configuration information used by the session.

*/ inline GetSessionResult& WithSessionConfiguration(SessionConfiguration&& value) { SetSessionConfiguration(std::move(value)); return *this;} /** *

Contains information about the status of the session.

*/ inline const SessionStatus& GetStatus() const{ return m_status; } /** *

Contains information about the status of the session.

*/ inline void SetStatus(const SessionStatus& value) { m_status = value; } /** *

Contains information about the status of the session.

*/ inline void SetStatus(SessionStatus&& value) { m_status = std::move(value); } /** *

Contains information about the status of the session.

*/ inline GetSessionResult& WithStatus(const SessionStatus& value) { SetStatus(value); return *this;} /** *

Contains information about the status of the session.

*/ inline GetSessionResult& WithStatus(SessionStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

Contains the DPU execution time.

*/ inline const SessionStatistics& GetStatistics() const{ return m_statistics; } /** *

Contains the DPU execution time.

*/ inline void SetStatistics(const SessionStatistics& value) { m_statistics = value; } /** *

Contains the DPU execution time.

*/ inline void SetStatistics(SessionStatistics&& value) { m_statistics = std::move(value); } /** *

Contains the DPU execution time.

*/ inline GetSessionResult& WithStatistics(const SessionStatistics& value) { SetStatistics(value); return *this;} /** *

Contains the DPU execution time.

*/ inline GetSessionResult& WithStatistics(SessionStatistics&& value) { SetStatistics(std::move(value)); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline GetSessionResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetSessionResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetSessionResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_sessionId; Aws::String m_description; Aws::String m_workGroup; Aws::String m_engineVersion; EngineConfiguration m_engineConfiguration; Aws::String m_notebookVersion; SessionConfiguration m_sessionConfiguration; SessionStatus m_status; SessionStatistics m_statistics; Aws::String m_requestId; }; } // namespace Model } // namespace Athena } // namespace Aws