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

Reserved.

See Also:

AWS * API Reference

*/ class QueryCompileError { public: AWS_CLOUDWATCHLOGS_API QueryCompileError(); AWS_CLOUDWATCHLOGS_API QueryCompileError(Aws::Utils::Json::JsonView jsonValue); AWS_CLOUDWATCHLOGS_API QueryCompileError& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

Reserved.

*/ inline const QueryCompileErrorLocation& GetLocation() const{ return m_location; } /** *

Reserved.

*/ inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; } /** *

Reserved.

*/ inline void SetLocation(const QueryCompileErrorLocation& value) { m_locationHasBeenSet = true; m_location = value; } /** *

Reserved.

*/ inline void SetLocation(QueryCompileErrorLocation&& value) { m_locationHasBeenSet = true; m_location = std::move(value); } /** *

Reserved.

*/ inline QueryCompileError& WithLocation(const QueryCompileErrorLocation& value) { SetLocation(value); return *this;} /** *

Reserved.

*/ inline QueryCompileError& WithLocation(QueryCompileErrorLocation&& value) { SetLocation(std::move(value)); return *this;} /** *

Reserved.

*/ inline const Aws::String& GetMessage() const{ return m_message; } /** *

Reserved.

*/ inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } /** *

Reserved.

*/ inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } /** *

Reserved.

*/ inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } /** *

Reserved.

*/ inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } /** *

Reserved.

*/ inline QueryCompileError& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} /** *

Reserved.

*/ inline QueryCompileError& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} /** *

Reserved.

*/ inline QueryCompileError& WithMessage(const char* value) { SetMessage(value); return *this;} private: QueryCompileErrorLocation m_location; bool m_locationHasBeenSet = false; Aws::String m_message; bool m_messageHasBeenSet = false; }; } // namespace Model } // namespace CloudWatchLogs } // namespace Aws