/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace CloudWatchLogs { namespace Model { /** *

The query string is not valid. Details about this error are displayed in a * QueryCompileError object. For more information, see QueryCompileError.

*

For more information about valid query syntax, see CloudWatch * Logs Insights Query Syntax.

See Also:

AWS * API Reference

*/ class MalformedQueryException { public: AWS_CLOUDWATCHLOGS_API MalformedQueryException(); AWS_CLOUDWATCHLOGS_API MalformedQueryException(Aws::Utils::Json::JsonView jsonValue); AWS_CLOUDWATCHLOGS_API MalformedQueryException& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const; inline const QueryCompileError& GetQueryCompileError() const{ return m_queryCompileError; } inline bool QueryCompileErrorHasBeenSet() const { return m_queryCompileErrorHasBeenSet; } inline void SetQueryCompileError(const QueryCompileError& value) { m_queryCompileErrorHasBeenSet = true; m_queryCompileError = value; } inline void SetQueryCompileError(QueryCompileError&& value) { m_queryCompileErrorHasBeenSet = true; m_queryCompileError = std::move(value); } inline MalformedQueryException& WithQueryCompileError(const QueryCompileError& value) { SetQueryCompileError(value); return *this;} inline MalformedQueryException& WithQueryCompileError(QueryCompileError&& value) { SetQueryCompileError(std::move(value)); return *this;} private: QueryCompileError m_queryCompileError; bool m_queryCompileErrorHasBeenSet = false; }; } // namespace Model } // namespace CloudWatchLogs } // namespace Aws