/** * 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 Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace CloudWatch { namespace Model { /** *

An error or warning for the operation.

See Also:

AWS * API Reference

*/ class DashboardValidationMessage { public: AWS_CLOUDWATCH_API DashboardValidationMessage(); AWS_CLOUDWATCH_API DashboardValidationMessage(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_CLOUDWATCH_API DashboardValidationMessage& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

The data path related to the message.

*/ inline const Aws::String& GetDataPath() const{ return m_dataPath; } /** *

The data path related to the message.

*/ inline bool DataPathHasBeenSet() const { return m_dataPathHasBeenSet; } /** *

The data path related to the message.

*/ inline void SetDataPath(const Aws::String& value) { m_dataPathHasBeenSet = true; m_dataPath = value; } /** *

The data path related to the message.

*/ inline void SetDataPath(Aws::String&& value) { m_dataPathHasBeenSet = true; m_dataPath = std::move(value); } /** *

The data path related to the message.

*/ inline void SetDataPath(const char* value) { m_dataPathHasBeenSet = true; m_dataPath.assign(value); } /** *

The data path related to the message.

*/ inline DashboardValidationMessage& WithDataPath(const Aws::String& value) { SetDataPath(value); return *this;} /** *

The data path related to the message.

*/ inline DashboardValidationMessage& WithDataPath(Aws::String&& value) { SetDataPath(std::move(value)); return *this;} /** *

The data path related to the message.

*/ inline DashboardValidationMessage& WithDataPath(const char* value) { SetDataPath(value); return *this;} /** *

A message describing the error or warning.

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

A message describing the error or warning.

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

A message describing the error or warning.

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

A message describing the error or warning.

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

A message describing the error or warning.

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

A message describing the error or warning.

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

A message describing the error or warning.

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

A message describing the error or warning.

*/ inline DashboardValidationMessage& WithMessage(const char* value) { SetMessage(value); return *this;} private: Aws::String m_dataPath; bool m_dataPathHasBeenSet = false; Aws::String m_message; bool m_messageHasBeenSet = false; }; } // namespace Model } // namespace CloudWatch } // namespace Aws