/** * 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 an executor.

See Also:

AWS * API Reference

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

The UUID of the executor.

*/ inline const Aws::String& GetExecutorId() const{ return m_executorId; } /** *

The UUID of the executor.

*/ inline bool ExecutorIdHasBeenSet() const { return m_executorIdHasBeenSet; } /** *

The UUID of the executor.

*/ inline void SetExecutorId(const Aws::String& value) { m_executorIdHasBeenSet = true; m_executorId = value; } /** *

The UUID of the executor.

*/ inline void SetExecutorId(Aws::String&& value) { m_executorIdHasBeenSet = true; m_executorId = std::move(value); } /** *

The UUID of the executor.

*/ inline void SetExecutorId(const char* value) { m_executorIdHasBeenSet = true; m_executorId.assign(value); } /** *

The UUID of the executor.

*/ inline ExecutorsSummary& WithExecutorId(const Aws::String& value) { SetExecutorId(value); return *this;} /** *

The UUID of the executor.

*/ inline ExecutorsSummary& WithExecutorId(Aws::String&& value) { SetExecutorId(std::move(value)); return *this;} /** *

The UUID of the executor.

*/ inline ExecutorsSummary& WithExecutorId(const char* value) { SetExecutorId(value); return *this;} /** *

The type of executor used for the application (COORDINATOR, * GATEWAY, or WORKER).

*/ inline const ExecutorType& GetExecutorType() const{ return m_executorType; } /** *

The type of executor used for the application (COORDINATOR, * GATEWAY, or WORKER).

*/ inline bool ExecutorTypeHasBeenSet() const { return m_executorTypeHasBeenSet; } /** *

The type of executor used for the application (COORDINATOR, * GATEWAY, or WORKER).

*/ inline void SetExecutorType(const ExecutorType& value) { m_executorTypeHasBeenSet = true; m_executorType = value; } /** *

The type of executor used for the application (COORDINATOR, * GATEWAY, or WORKER).

*/ inline void SetExecutorType(ExecutorType&& value) { m_executorTypeHasBeenSet = true; m_executorType = std::move(value); } /** *

The type of executor used for the application (COORDINATOR, * GATEWAY, or WORKER).

*/ inline ExecutorsSummary& WithExecutorType(const ExecutorType& value) { SetExecutorType(value); return *this;} /** *

The type of executor used for the application (COORDINATOR, * GATEWAY, or WORKER).

*/ inline ExecutorsSummary& WithExecutorType(ExecutorType&& value) { SetExecutorType(std::move(value)); return *this;} /** *

The date and time that the executor started.

*/ inline long long GetStartDateTime() const{ return m_startDateTime; } /** *

The date and time that the executor started.

*/ inline bool StartDateTimeHasBeenSet() const { return m_startDateTimeHasBeenSet; } /** *

The date and time that the executor started.

*/ inline void SetStartDateTime(long long value) { m_startDateTimeHasBeenSet = true; m_startDateTime = value; } /** *

The date and time that the executor started.

*/ inline ExecutorsSummary& WithStartDateTime(long long value) { SetStartDateTime(value); return *this;} /** *

The date and time that the executor was terminated.

*/ inline long long GetTerminationDateTime() const{ return m_terminationDateTime; } /** *

The date and time that the executor was terminated.

*/ inline bool TerminationDateTimeHasBeenSet() const { return m_terminationDateTimeHasBeenSet; } /** *

The date and time that the executor was terminated.

*/ inline void SetTerminationDateTime(long long value) { m_terminationDateTimeHasBeenSet = true; m_terminationDateTime = value; } /** *

The date and time that the executor was terminated.

*/ inline ExecutorsSummary& WithTerminationDateTime(long long value) { SetTerminationDateTime(value); return *this;} /** *

The processing state of the executor. A description of each state * follows.

CREATING - The executor is being started, * including acquiring resources.

CREATED - The executor has * been started.

REGISTERED - The executor has been * registered.

TERMINATING - The executor is in the process of * shutting down.

TERMINATED - The executor is no longer * running.

FAILED - Due to a failure, the executor is no * longer running.

*/ inline const ExecutorState& GetExecutorState() const{ return m_executorState; } /** *

The processing state of the executor. A description of each state * follows.

CREATING - The executor is being started, * including acquiring resources.

CREATED - The executor has * been started.

REGISTERED - The executor has been * registered.

TERMINATING - The executor is in the process of * shutting down.

TERMINATED - The executor is no longer * running.

FAILED - Due to a failure, the executor is no * longer running.

*/ inline bool ExecutorStateHasBeenSet() const { return m_executorStateHasBeenSet; } /** *

The processing state of the executor. A description of each state * follows.

CREATING - The executor is being started, * including acquiring resources.

CREATED - The executor has * been started.

REGISTERED - The executor has been * registered.

TERMINATING - The executor is in the process of * shutting down.

TERMINATED - The executor is no longer * running.

FAILED - Due to a failure, the executor is no * longer running.

*/ inline void SetExecutorState(const ExecutorState& value) { m_executorStateHasBeenSet = true; m_executorState = value; } /** *

The processing state of the executor. A description of each state * follows.

CREATING - The executor is being started, * including acquiring resources.

CREATED - The executor has * been started.

REGISTERED - The executor has been * registered.

TERMINATING - The executor is in the process of * shutting down.

TERMINATED - The executor is no longer * running.

FAILED - Due to a failure, the executor is no * longer running.

*/ inline void SetExecutorState(ExecutorState&& value) { m_executorStateHasBeenSet = true; m_executorState = std::move(value); } /** *

The processing state of the executor. A description of each state * follows.

CREATING - The executor is being started, * including acquiring resources.

CREATED - The executor has * been started.

REGISTERED - The executor has been * registered.

TERMINATING - The executor is in the process of * shutting down.

TERMINATED - The executor is no longer * running.

FAILED - Due to a failure, the executor is no * longer running.

*/ inline ExecutorsSummary& WithExecutorState(const ExecutorState& value) { SetExecutorState(value); return *this;} /** *

The processing state of the executor. A description of each state * follows.

CREATING - The executor is being started, * including acquiring resources.

CREATED - The executor has * been started.

REGISTERED - The executor has been * registered.

TERMINATING - The executor is in the process of * shutting down.

TERMINATED - The executor is no longer * running.

FAILED - Due to a failure, the executor is no * longer running.

*/ inline ExecutorsSummary& WithExecutorState(ExecutorState&& value) { SetExecutorState(std::move(value)); return *this;} /** *

The smallest unit of compute that a session can request from Athena. Size is * measured in data processing unit (DPU) values, a relative measure of processing * power.

*/ inline long long GetExecutorSize() const{ return m_executorSize; } /** *

The smallest unit of compute that a session can request from Athena. Size is * measured in data processing unit (DPU) values, a relative measure of processing * power.

*/ inline bool ExecutorSizeHasBeenSet() const { return m_executorSizeHasBeenSet; } /** *

The smallest unit of compute that a session can request from Athena. Size is * measured in data processing unit (DPU) values, a relative measure of processing * power.

*/ inline void SetExecutorSize(long long value) { m_executorSizeHasBeenSet = true; m_executorSize = value; } /** *

The smallest unit of compute that a session can request from Athena. Size is * measured in data processing unit (DPU) values, a relative measure of processing * power.

*/ inline ExecutorsSummary& WithExecutorSize(long long value) { SetExecutorSize(value); return *this;} private: Aws::String m_executorId; bool m_executorIdHasBeenSet = false; ExecutorType m_executorType; bool m_executorTypeHasBeenSet = false; long long m_startDateTime; bool m_startDateTimeHasBeenSet = false; long long m_terminationDateTime; bool m_terminationDateTimeHasBeenSet = false; ExecutorState m_executorState; bool m_executorStateHasBeenSet = false; long long m_executorSize; bool m_executorSizeHasBeenSet = false; }; } // namespace Model } // namespace Athena } // namespace Aws