/** * 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 LakeFormation { namespace Model { /** *

A structure for the output.

See Also:

AWS * API Reference

*/ class GetQueryStateResult { public: AWS_LAKEFORMATION_API GetQueryStateResult(); AWS_LAKEFORMATION_API GetQueryStateResult(const Aws::AmazonWebServiceResult& result); AWS_LAKEFORMATION_API GetQueryStateResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

An error message when the operation fails.

*/ inline const Aws::String& GetError() const{ return m_error; } /** *

An error message when the operation fails.

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

An error message when the operation fails.

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

An error message when the operation fails.

*/ inline void SetError(const char* value) { m_error.assign(value); } /** *

An error message when the operation fails.

*/ inline GetQueryStateResult& WithError(const Aws::String& value) { SetError(value); return *this;} /** *

An error message when the operation fails.

*/ inline GetQueryStateResult& WithError(Aws::String&& value) { SetError(std::move(value)); return *this;} /** *

An error message when the operation fails.

*/ inline GetQueryStateResult& WithError(const char* value) { SetError(value); return *this;} /** *

The state of a query previously submitted. The possible states are:

    *
  • PENDING: the query is pending.

  • WORKUNITS_AVAILABLE: * some work units are ready for retrieval and execution.

  • *

    FINISHED: the query planning finished successfully, and all work units are * ready for retrieval and execution.

  • ERROR: an error occurred * with the query, such as an invalid query ID or a backend error.

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

The state of a query previously submitted. The possible states are:

    *
  • PENDING: the query is pending.

  • WORKUNITS_AVAILABLE: * some work units are ready for retrieval and execution.

  • *

    FINISHED: the query planning finished successfully, and all work units are * ready for retrieval and execution.

  • ERROR: an error occurred * with the query, such as an invalid query ID or a backend error.

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

The state of a query previously submitted. The possible states are:

    *
  • PENDING: the query is pending.

  • WORKUNITS_AVAILABLE: * some work units are ready for retrieval and execution.

  • *

    FINISHED: the query planning finished successfully, and all work units are * ready for retrieval and execution.

  • ERROR: an error occurred * with the query, such as an invalid query ID or a backend error.

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

The state of a query previously submitted. The possible states are:

    *
  • PENDING: the query is pending.

  • WORKUNITS_AVAILABLE: * some work units are ready for retrieval and execution.

  • *

    FINISHED: the query planning finished successfully, and all work units are * ready for retrieval and execution.

  • ERROR: an error occurred * with the query, such as an invalid query ID or a backend error.

*/ inline GetQueryStateResult& WithState(const QueryStateString& value) { SetState(value); return *this;} /** *

The state of a query previously submitted. The possible states are:

    *
  • PENDING: the query is pending.

  • WORKUNITS_AVAILABLE: * some work units are ready for retrieval and execution.

  • *

    FINISHED: the query planning finished successfully, and all work units are * ready for retrieval and execution.

  • ERROR: an error occurred * with the query, such as an invalid query ID or a backend error.

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