/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Athena { namespace Model { /** *

Contains summary information about a session.

See Also:

AWS * API Reference

*/ class SessionSummary { public: AWS_ATHENA_API SessionSummary(); AWS_ATHENA_API SessionSummary(Aws::Utils::Json::JsonView jsonValue); AWS_ATHENA_API SessionSummary& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_ATHENA_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The session ID.

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

The session ID.

*/ inline bool SessionIdHasBeenSet() const { return m_sessionIdHasBeenSet; } /** *

The session ID.

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

The session ID.

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

The session ID.

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

The session ID.

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

The session ID.

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

The session ID.

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

The session description.

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

The session description.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

The session description.

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

The session description.

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

The session description.

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

The session description.

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

The session description.

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

The session description.

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

The engine version used by the session (for example, PySpark engine * version 3).

*/ inline const EngineVersion& GetEngineVersion() const{ return m_engineVersion; } /** *

The engine version used by the session (for example, PySpark engine * version 3).

*/ inline bool EngineVersionHasBeenSet() const { return m_engineVersionHasBeenSet; } /** *

The engine version used by the session (for example, PySpark engine * version 3).

*/ inline void SetEngineVersion(const EngineVersion& value) { m_engineVersionHasBeenSet = true; m_engineVersion = value; } /** *

The engine version used by the session (for example, PySpark engine * version 3).

*/ inline void SetEngineVersion(EngineVersion&& value) { m_engineVersionHasBeenSet = true; m_engineVersion = std::move(value); } /** *

The engine version used by the session (for example, PySpark engine * version 3).

*/ inline SessionSummary& WithEngineVersion(const EngineVersion& value) { SetEngineVersion(value); return *this;} /** *

The engine version used by the session (for example, PySpark engine * version 3).

*/ inline SessionSummary& WithEngineVersion(EngineVersion&& value) { SetEngineVersion(std::move(value)); return *this;} /** *

The notebook version.

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

The notebook version.

*/ inline bool NotebookVersionHasBeenSet() const { return m_notebookVersionHasBeenSet; } /** *

The notebook version.

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

The notebook version.

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

The notebook version.

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

The notebook version.

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

The notebook version.

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

The notebook version.

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

Contains information about the session status.

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

Contains information about the session status.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

Contains information about the session status.

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

Contains information about the session status.

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

Contains information about the session status.

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

Contains information about the session status.

*/ inline SessionSummary& WithStatus(SessionStatus&& value) { SetStatus(std::move(value)); return *this;} private: Aws::String m_sessionId; bool m_sessionIdHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; EngineVersion m_engineVersion; bool m_engineVersionHasBeenSet = false; Aws::String m_notebookVersion; bool m_notebookVersionHasBeenSet = false; SessionStatus m_status; bool m_statusHasBeenSet = false; }; } // namespace Model } // namespace Athena } // namespace Aws