/** * 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 #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Glue { namespace Model { /** *

The period in which a remote Spark runtime environment is * running.

See Also:

AWS API * Reference

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

The ID of the session.

*/ inline const Aws::String& GetId() const{ return m_id; } /** *

The ID of the session.

*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *

The ID of the session.

*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *

The ID of the session.

*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *

The ID of the session.

*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *

The ID of the session.

*/ inline Session& WithId(const Aws::String& value) { SetId(value); return *this;} /** *

The ID of the session.

*/ inline Session& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *

The ID of the session.

*/ inline Session& WithId(const char* value) { SetId(value); return *this;} /** *

The time and date when the session was created.

*/ inline const Aws::Utils::DateTime& GetCreatedOn() const{ return m_createdOn; } /** *

The time and date when the session was created.

*/ inline bool CreatedOnHasBeenSet() const { return m_createdOnHasBeenSet; } /** *

The time and date when the session was created.

*/ inline void SetCreatedOn(const Aws::Utils::DateTime& value) { m_createdOnHasBeenSet = true; m_createdOn = value; } /** *

The time and date when the session was created.

*/ inline void SetCreatedOn(Aws::Utils::DateTime&& value) { m_createdOnHasBeenSet = true; m_createdOn = std::move(value); } /** *

The time and date when the session was created.

*/ inline Session& WithCreatedOn(const Aws::Utils::DateTime& value) { SetCreatedOn(value); return *this;} /** *

The time and date when the session was created.

*/ inline Session& WithCreatedOn(Aws::Utils::DateTime&& value) { SetCreatedOn(std::move(value)); return *this;} /** *

The session status.

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

The session status.

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

The session status.

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

The session status.

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

The session status.

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

The session status.

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

The error message displayed during the session.

*/ inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; } /** *

The error message displayed during the session.

*/ inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; } /** *

The error message displayed during the session.

*/ inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; } /** *

The error message displayed during the session.

*/ inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); } /** *

The error message displayed during the session.

*/ inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); } /** *

The error message displayed during the session.

*/ inline Session& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;} /** *

The error message displayed during the session.

*/ inline Session& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;} /** *

The error message displayed during the session.

*/ inline Session& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;} /** *

The description of the session.

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

The description of the session.

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

The description of the session.

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

The description of the session.

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

The description of the session.

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

The description of the session.

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

The description of the session.

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

The description of the session.

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

The name or Amazon Resource Name (ARN) of the IAM role associated with the * Session.

*/ inline const Aws::String& GetRole() const{ return m_role; } /** *

The name or Amazon Resource Name (ARN) of the IAM role associated with the * Session.

*/ inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; } /** *

The name or Amazon Resource Name (ARN) of the IAM role associated with the * Session.

*/ inline void SetRole(const Aws::String& value) { m_roleHasBeenSet = true; m_role = value; } /** *

The name or Amazon Resource Name (ARN) of the IAM role associated with the * Session.

*/ inline void SetRole(Aws::String&& value) { m_roleHasBeenSet = true; m_role = std::move(value); } /** *

The name or Amazon Resource Name (ARN) of the IAM role associated with the * Session.

*/ inline void SetRole(const char* value) { m_roleHasBeenSet = true; m_role.assign(value); } /** *

The name or Amazon Resource Name (ARN) of the IAM role associated with the * Session.

*/ inline Session& WithRole(const Aws::String& value) { SetRole(value); return *this;} /** *

The name or Amazon Resource Name (ARN) of the IAM role associated with the * Session.

*/ inline Session& WithRole(Aws::String&& value) { SetRole(std::move(value)); return *this;} /** *

The name or Amazon Resource Name (ARN) of the IAM role associated with the * Session.

*/ inline Session& WithRole(const char* value) { SetRole(value); return *this;} /** *

The command object.See SessionCommand.

*/ inline const SessionCommand& GetCommand() const{ return m_command; } /** *

The command object.See SessionCommand.

*/ inline bool CommandHasBeenSet() const { return m_commandHasBeenSet; } /** *

The command object.See SessionCommand.

*/ inline void SetCommand(const SessionCommand& value) { m_commandHasBeenSet = true; m_command = value; } /** *

The command object.See SessionCommand.

*/ inline void SetCommand(SessionCommand&& value) { m_commandHasBeenSet = true; m_command = std::move(value); } /** *

The command object.See SessionCommand.

*/ inline Session& WithCommand(const SessionCommand& value) { SetCommand(value); return *this;} /** *

The command object.See SessionCommand.

*/ inline Session& WithCommand(SessionCommand&& value) { SetCommand(std::move(value)); return *this;} /** *

A map array of key-value pairs. Max is 75 pairs.

*/ inline const Aws::Map& GetDefaultArguments() const{ return m_defaultArguments; } /** *

A map array of key-value pairs. Max is 75 pairs.

*/ inline bool DefaultArgumentsHasBeenSet() const { return m_defaultArgumentsHasBeenSet; } /** *

A map array of key-value pairs. Max is 75 pairs.

*/ inline void SetDefaultArguments(const Aws::Map& value) { m_defaultArgumentsHasBeenSet = true; m_defaultArguments = value; } /** *

A map array of key-value pairs. Max is 75 pairs.

*/ inline void SetDefaultArguments(Aws::Map&& value) { m_defaultArgumentsHasBeenSet = true; m_defaultArguments = std::move(value); } /** *

A map array of key-value pairs. Max is 75 pairs.

*/ inline Session& WithDefaultArguments(const Aws::Map& value) { SetDefaultArguments(value); return *this;} /** *

A map array of key-value pairs. Max is 75 pairs.

*/ inline Session& WithDefaultArguments(Aws::Map&& value) { SetDefaultArguments(std::move(value)); return *this;} /** *

A map array of key-value pairs. Max is 75 pairs.

*/ inline Session& AddDefaultArguments(const Aws::String& key, const Aws::String& value) { m_defaultArgumentsHasBeenSet = true; m_defaultArguments.emplace(key, value); return *this; } /** *

A map array of key-value pairs. Max is 75 pairs.

*/ inline Session& AddDefaultArguments(Aws::String&& key, const Aws::String& value) { m_defaultArgumentsHasBeenSet = true; m_defaultArguments.emplace(std::move(key), value); return *this; } /** *

A map array of key-value pairs. Max is 75 pairs.

*/ inline Session& AddDefaultArguments(const Aws::String& key, Aws::String&& value) { m_defaultArgumentsHasBeenSet = true; m_defaultArguments.emplace(key, std::move(value)); return *this; } /** *

A map array of key-value pairs. Max is 75 pairs.

*/ inline Session& AddDefaultArguments(Aws::String&& key, Aws::String&& value) { m_defaultArgumentsHasBeenSet = true; m_defaultArguments.emplace(std::move(key), std::move(value)); return *this; } /** *

A map array of key-value pairs. Max is 75 pairs.

*/ inline Session& AddDefaultArguments(const char* key, Aws::String&& value) { m_defaultArgumentsHasBeenSet = true; m_defaultArguments.emplace(key, std::move(value)); return *this; } /** *

A map array of key-value pairs. Max is 75 pairs.

*/ inline Session& AddDefaultArguments(Aws::String&& key, const char* value) { m_defaultArgumentsHasBeenSet = true; m_defaultArguments.emplace(std::move(key), value); return *this; } /** *

A map array of key-value pairs. Max is 75 pairs.

*/ inline Session& AddDefaultArguments(const char* key, const char* value) { m_defaultArgumentsHasBeenSet = true; m_defaultArguments.emplace(key, value); return *this; } /** *

The number of connections used for the session.

*/ inline const ConnectionsList& GetConnections() const{ return m_connections; } /** *

The number of connections used for the session.

*/ inline bool ConnectionsHasBeenSet() const { return m_connectionsHasBeenSet; } /** *

The number of connections used for the session.

*/ inline void SetConnections(const ConnectionsList& value) { m_connectionsHasBeenSet = true; m_connections = value; } /** *

The number of connections used for the session.

*/ inline void SetConnections(ConnectionsList&& value) { m_connectionsHasBeenSet = true; m_connections = std::move(value); } /** *

The number of connections used for the session.

*/ inline Session& WithConnections(const ConnectionsList& value) { SetConnections(value); return *this;} /** *

The number of connections used for the session.

*/ inline Session& WithConnections(ConnectionsList&& value) { SetConnections(std::move(value)); return *this;} /** *

The code execution progress of the session.

*/ inline double GetProgress() const{ return m_progress; } /** *

The code execution progress of the session.

*/ inline bool ProgressHasBeenSet() const { return m_progressHasBeenSet; } /** *

The code execution progress of the session.

*/ inline void SetProgress(double value) { m_progressHasBeenSet = true; m_progress = value; } /** *

The code execution progress of the session.

*/ inline Session& WithProgress(double value) { SetProgress(value); return *this;} /** *

The number of Glue data processing units (DPUs) that can be allocated when * the job runs. A DPU is a relative measure of processing power that consists of 4 * vCPUs of compute capacity and 16 GB memory.

*/ inline double GetMaxCapacity() const{ return m_maxCapacity; } /** *

The number of Glue data processing units (DPUs) that can be allocated when * the job runs. A DPU is a relative measure of processing power that consists of 4 * vCPUs of compute capacity and 16 GB memory.

*/ inline bool MaxCapacityHasBeenSet() const { return m_maxCapacityHasBeenSet; } /** *

The number of Glue data processing units (DPUs) that can be allocated when * the job runs. A DPU is a relative measure of processing power that consists of 4 * vCPUs of compute capacity and 16 GB memory.

*/ inline void SetMaxCapacity(double value) { m_maxCapacityHasBeenSet = true; m_maxCapacity = value; } /** *

The number of Glue data processing units (DPUs) that can be allocated when * the job runs. A DPU is a relative measure of processing power that consists of 4 * vCPUs of compute capacity and 16 GB memory.

*/ inline Session& WithMaxCapacity(double value) { SetMaxCapacity(value); return *this;} /** *

The name of the SecurityConfiguration structure to be used with the * session.

*/ inline const Aws::String& GetSecurityConfiguration() const{ return m_securityConfiguration; } /** *

The name of the SecurityConfiguration structure to be used with the * session.

*/ inline bool SecurityConfigurationHasBeenSet() const { return m_securityConfigurationHasBeenSet; } /** *

The name of the SecurityConfiguration structure to be used with the * session.

*/ inline void SetSecurityConfiguration(const Aws::String& value) { m_securityConfigurationHasBeenSet = true; m_securityConfiguration = value; } /** *

The name of the SecurityConfiguration structure to be used with the * session.

*/ inline void SetSecurityConfiguration(Aws::String&& value) { m_securityConfigurationHasBeenSet = true; m_securityConfiguration = std::move(value); } /** *

The name of the SecurityConfiguration structure to be used with the * session.

*/ inline void SetSecurityConfiguration(const char* value) { m_securityConfigurationHasBeenSet = true; m_securityConfiguration.assign(value); } /** *

The name of the SecurityConfiguration structure to be used with the * session.

*/ inline Session& WithSecurityConfiguration(const Aws::String& value) { SetSecurityConfiguration(value); return *this;} /** *

The name of the SecurityConfiguration structure to be used with the * session.

*/ inline Session& WithSecurityConfiguration(Aws::String&& value) { SetSecurityConfiguration(std::move(value)); return *this;} /** *

The name of the SecurityConfiguration structure to be used with the * session.

*/ inline Session& WithSecurityConfiguration(const char* value) { SetSecurityConfiguration(value); return *this;} /** *

The Glue version determines the versions of Apache Spark and Python that Glue * supports. The GlueVersion must be greater than 2.0.

*/ inline const Aws::String& GetGlueVersion() const{ return m_glueVersion; } /** *

The Glue version determines the versions of Apache Spark and Python that Glue * supports. The GlueVersion must be greater than 2.0.

*/ inline bool GlueVersionHasBeenSet() const { return m_glueVersionHasBeenSet; } /** *

The Glue version determines the versions of Apache Spark and Python that Glue * supports. The GlueVersion must be greater than 2.0.

*/ inline void SetGlueVersion(const Aws::String& value) { m_glueVersionHasBeenSet = true; m_glueVersion = value; } /** *

The Glue version determines the versions of Apache Spark and Python that Glue * supports. The GlueVersion must be greater than 2.0.

*/ inline void SetGlueVersion(Aws::String&& value) { m_glueVersionHasBeenSet = true; m_glueVersion = std::move(value); } /** *

The Glue version determines the versions of Apache Spark and Python that Glue * supports. The GlueVersion must be greater than 2.0.

*/ inline void SetGlueVersion(const char* value) { m_glueVersionHasBeenSet = true; m_glueVersion.assign(value); } /** *

The Glue version determines the versions of Apache Spark and Python that Glue * supports. The GlueVersion must be greater than 2.0.

*/ inline Session& WithGlueVersion(const Aws::String& value) { SetGlueVersion(value); return *this;} /** *

The Glue version determines the versions of Apache Spark and Python that Glue * supports. The GlueVersion must be greater than 2.0.

*/ inline Session& WithGlueVersion(Aws::String&& value) { SetGlueVersion(std::move(value)); return *this;} /** *

The Glue version determines the versions of Apache Spark and Python that Glue * supports. The GlueVersion must be greater than 2.0.

*/ inline Session& WithGlueVersion(const char* value) { SetGlueVersion(value); return *this;} private: Aws::String m_id; bool m_idHasBeenSet = false; Aws::Utils::DateTime m_createdOn; bool m_createdOnHasBeenSet = false; SessionStatus m_status; bool m_statusHasBeenSet = false; Aws::String m_errorMessage; bool m_errorMessageHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::String m_role; bool m_roleHasBeenSet = false; SessionCommand m_command; bool m_commandHasBeenSet = false; Aws::Map m_defaultArguments; bool m_defaultArgumentsHasBeenSet = false; ConnectionsList m_connections; bool m_connectionsHasBeenSet = false; double m_progress; bool m_progressHasBeenSet = false; double m_maxCapacity; bool m_maxCapacityHasBeenSet = false; Aws::String m_securityConfiguration; bool m_securityConfigurationHasBeenSet = false; Aws::String m_glueVersion; bool m_glueVersionHasBeenSet = false; }; } // namespace Model } // namespace Glue } // namespace Aws