/** * 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 StartCalculationExecutionResult { public: AWS_ATHENA_API StartCalculationExecutionResult(); AWS_ATHENA_API StartCalculationExecutionResult(const Aws::AmazonWebServiceResult& result); AWS_ATHENA_API StartCalculationExecutionResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The calculation execution UUID.

*/ inline const Aws::String& GetCalculationExecutionId() const{ return m_calculationExecutionId; } /** *

The calculation execution UUID.

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

The calculation execution UUID.

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

The calculation execution UUID.

*/ inline void SetCalculationExecutionId(const char* value) { m_calculationExecutionId.assign(value); } /** *

The calculation execution UUID.

*/ inline StartCalculationExecutionResult& WithCalculationExecutionId(const Aws::String& value) { SetCalculationExecutionId(value); return *this;} /** *

The calculation execution UUID.

*/ inline StartCalculationExecutionResult& WithCalculationExecutionId(Aws::String&& value) { SetCalculationExecutionId(std::move(value)); return *this;} /** *

The calculation execution UUID.

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