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

If the input for PutDashboard was correct and the dashboard was * successfully created or modified, this result is empty.

If this result * includes only warning messages, then the input was valid enough for the * dashboard to be created or modified, but some elements of the dashboard might * not render.

If this result includes error messages, the input was not * valid and the operation failed.

*/ inline const Aws::Vector& GetDashboardValidationMessages() const{ return m_dashboardValidationMessages; } /** *

If the input for PutDashboard was correct and the dashboard was * successfully created or modified, this result is empty.

If this result * includes only warning messages, then the input was valid enough for the * dashboard to be created or modified, but some elements of the dashboard might * not render.

If this result includes error messages, the input was not * valid and the operation failed.

*/ inline void SetDashboardValidationMessages(const Aws::Vector& value) { m_dashboardValidationMessages = value; } /** *

If the input for PutDashboard was correct and the dashboard was * successfully created or modified, this result is empty.

If this result * includes only warning messages, then the input was valid enough for the * dashboard to be created or modified, but some elements of the dashboard might * not render.

If this result includes error messages, the input was not * valid and the operation failed.

*/ inline void SetDashboardValidationMessages(Aws::Vector&& value) { m_dashboardValidationMessages = std::move(value); } /** *

If the input for PutDashboard was correct and the dashboard was * successfully created or modified, this result is empty.

If this result * includes only warning messages, then the input was valid enough for the * dashboard to be created or modified, but some elements of the dashboard might * not render.

If this result includes error messages, the input was not * valid and the operation failed.

*/ inline PutDashboardResult& WithDashboardValidationMessages(const Aws::Vector& value) { SetDashboardValidationMessages(value); return *this;} /** *

If the input for PutDashboard was correct and the dashboard was * successfully created or modified, this result is empty.

If this result * includes only warning messages, then the input was valid enough for the * dashboard to be created or modified, but some elements of the dashboard might * not render.

If this result includes error messages, the input was not * valid and the operation failed.

*/ inline PutDashboardResult& WithDashboardValidationMessages(Aws::Vector&& value) { SetDashboardValidationMessages(std::move(value)); return *this;} /** *

If the input for PutDashboard was correct and the dashboard was * successfully created or modified, this result is empty.

If this result * includes only warning messages, then the input was valid enough for the * dashboard to be created or modified, but some elements of the dashboard might * not render.

If this result includes error messages, the input was not * valid and the operation failed.

*/ inline PutDashboardResult& AddDashboardValidationMessages(const DashboardValidationMessage& value) { m_dashboardValidationMessages.push_back(value); return *this; } /** *

If the input for PutDashboard was correct and the dashboard was * successfully created or modified, this result is empty.

If this result * includes only warning messages, then the input was valid enough for the * dashboard to be created or modified, but some elements of the dashboard might * not render.

If this result includes error messages, the input was not * valid and the operation failed.

*/ inline PutDashboardResult& AddDashboardValidationMessages(DashboardValidationMessage&& value) { m_dashboardValidationMessages.push_back(std::move(value)); return *this; } inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; } inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; } inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); } inline PutDashboardResult& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;} inline PutDashboardResult& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;} private: Aws::Vector m_dashboardValidationMessages; ResponseMetadata m_responseMetadata; }; } // namespace Model } // namespace CloudWatch } // namespace Aws