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

A CancellationMessage is returned when a * CancelQuery request for the query specified by QueryId * has already been issued.

*/ inline const Aws::String& GetCancellationMessage() const{ return m_cancellationMessage; } /** *

A CancellationMessage is returned when a * CancelQuery request for the query specified by QueryId * has already been issued.

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

A CancellationMessage is returned when a * CancelQuery request for the query specified by QueryId * has already been issued.

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

A CancellationMessage is returned when a * CancelQuery request for the query specified by QueryId * has already been issued.

*/ inline void SetCancellationMessage(const char* value) { m_cancellationMessage.assign(value); } /** *

A CancellationMessage is returned when a * CancelQuery request for the query specified by QueryId * has already been issued.

*/ inline CancelQueryResult& WithCancellationMessage(const Aws::String& value) { SetCancellationMessage(value); return *this;} /** *

A CancellationMessage is returned when a * CancelQuery request for the query specified by QueryId * has already been issued.

*/ inline CancelQueryResult& WithCancellationMessage(Aws::String&& value) { SetCancellationMessage(std::move(value)); return *this;} /** *

A CancellationMessage is returned when a * CancelQuery request for the query specified by QueryId * has already been issued.

*/ inline CancelQueryResult& WithCancellationMessage(const char* value) { SetCancellationMessage(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 CancelQueryResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline CancelQueryResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline CancelQueryResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_cancellationMessage; Aws::String m_requestId; }; } // namespace Model } // namespace TimestreamQuery } // namespace Aws