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

CREATING - The calculation is in the process of being * created.

CREATED - The calculation has been created and is * ready to run.

QUEUED - The calculation has been queued for * processing.

RUNNING - The calculation is running.

* CANCELING - A request to cancel the calculation has been received * and the system is working to stop it.

CANCELED - The * calculation is no longer running as the result of a cancel request.

* COMPLETED - The calculation has completed without error.

* FAILED - The calculation failed and is no longer running.

*/ inline const CalculationExecutionState& GetState() const{ return m_state; } /** *

CREATING - The calculation is in the process of being * created.

CREATED - The calculation has been created and is * ready to run.

QUEUED - The calculation has been queued for * processing.

RUNNING - The calculation is running.

* CANCELING - A request to cancel the calculation has been received * and the system is working to stop it.

CANCELED - The * calculation is no longer running as the result of a cancel request.

* COMPLETED - The calculation has completed without error.

* FAILED - The calculation failed and is no longer running.

*/ inline void SetState(const CalculationExecutionState& value) { m_state = value; } /** *

CREATING - The calculation is in the process of being * created.

CREATED - The calculation has been created and is * ready to run.

QUEUED - The calculation has been queued for * processing.

RUNNING - The calculation is running.

* CANCELING - A request to cancel the calculation has been received * and the system is working to stop it.

CANCELED - The * calculation is no longer running as the result of a cancel request.

* COMPLETED - The calculation has completed without error.

* FAILED - The calculation failed and is no longer running.

*/ inline void SetState(CalculationExecutionState&& value) { m_state = std::move(value); } /** *

CREATING - The calculation is in the process of being * created.

CREATED - The calculation has been created and is * ready to run.

QUEUED - The calculation has been queued for * processing.

RUNNING - The calculation is running.

* CANCELING - A request to cancel the calculation has been received * and the system is working to stop it.

CANCELED - The * calculation is no longer running as the result of a cancel request.

* COMPLETED - The calculation has completed without error.

* FAILED - The calculation failed and is no longer running.

*/ inline StopCalculationExecutionResult& WithState(const CalculationExecutionState& value) { SetState(value); return *this;} /** *

CREATING - The calculation is in the process of being * created.

CREATED - The calculation has been created and is * ready to run.

QUEUED - The calculation has been queued for * processing.

RUNNING - The calculation is running.

* CANCELING - A request to cancel the calculation has been received * and the system is working to stop it.

CANCELED - The * calculation is no longer running as the result of a cancel request.

* COMPLETED - The calculation has completed without error.

* FAILED - The calculation failed and is no longer running.

*/ inline StopCalculationExecutionResult& WithState(CalculationExecutionState&& value) { SetState(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 StopCalculationExecutionResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline StopCalculationExecutionResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline StopCalculationExecutionResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: CalculationExecutionState m_state; Aws::String m_requestId; }; } // namespace Model } // namespace Athena } // namespace Aws