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

Dashboard error.

See Also:

AWS * API Reference

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

Type.

*/ inline const DashboardErrorType& GetType() const{ return m_type; } /** *

Type.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

Type.

*/ inline void SetType(const DashboardErrorType& value) { m_typeHasBeenSet = true; m_type = value; } /** *

Type.

*/ inline void SetType(DashboardErrorType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

Type.

*/ inline DashboardError& WithType(const DashboardErrorType& value) { SetType(value); return *this;} /** *

Type.

*/ inline DashboardError& WithType(DashboardErrorType&& value) { SetType(std::move(value)); return *this;} /** *

Message.

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

Message.

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

Message.

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

Message.

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

Message.

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

Message.

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

Message.

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

Message.

*/ inline DashboardError& WithMessage(const char* value) { SetMessage(value); return *this;} /** *

Lists the violated entities that caused the dashboard error.

*/ inline const Aws::Vector& GetViolatedEntities() const{ return m_violatedEntities; } /** *

Lists the violated entities that caused the dashboard error.

*/ inline bool ViolatedEntitiesHasBeenSet() const { return m_violatedEntitiesHasBeenSet; } /** *

Lists the violated entities that caused the dashboard error.

*/ inline void SetViolatedEntities(const Aws::Vector& value) { m_violatedEntitiesHasBeenSet = true; m_violatedEntities = value; } /** *

Lists the violated entities that caused the dashboard error.

*/ inline void SetViolatedEntities(Aws::Vector&& value) { m_violatedEntitiesHasBeenSet = true; m_violatedEntities = std::move(value); } /** *

Lists the violated entities that caused the dashboard error.

*/ inline DashboardError& WithViolatedEntities(const Aws::Vector& value) { SetViolatedEntities(value); return *this;} /** *

Lists the violated entities that caused the dashboard error.

*/ inline DashboardError& WithViolatedEntities(Aws::Vector&& value) { SetViolatedEntities(std::move(value)); return *this;} /** *

Lists the violated entities that caused the dashboard error.

*/ inline DashboardError& AddViolatedEntities(const Entity& value) { m_violatedEntitiesHasBeenSet = true; m_violatedEntities.push_back(value); return *this; } /** *

Lists the violated entities that caused the dashboard error.

*/ inline DashboardError& AddViolatedEntities(Entity&& value) { m_violatedEntitiesHasBeenSet = true; m_violatedEntities.push_back(std::move(value)); return *this; } private: DashboardErrorType m_type; bool m_typeHasBeenSet = false; Aws::String m_message; bool m_messageHasBeenSet = false; Aws::Vector m_violatedEntities; bool m_violatedEntitiesHasBeenSet = false; }; } // namespace Model } // namespace QuickSight } // namespace Aws