/** * 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 { /** *

Analysis error.

See Also:

AWS * API Reference

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

The type of the analysis error.

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

The type of the analysis error.

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

The type of the analysis error.

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

The type of the analysis error.

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

The type of the analysis error.

*/ inline AnalysisError& WithType(const AnalysisErrorType& value) { SetType(value); return *this;} /** *

The type of the analysis error.

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

The message associated with the analysis error.

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

The message associated with the analysis error.

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

The message associated with the analysis error.

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

The message associated with the analysis error.

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

The message associated with the analysis error.

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

The message associated with the analysis error.

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

The message associated with the analysis error.

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

The message associated with the analysis error.

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

Lists the violated entities that caused the analysis error

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

Lists the violated entities that caused the analysis error

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

Lists the violated entities that caused the analysis error

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

Lists the violated entities that caused the analysis error

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

Lists the violated entities that caused the analysis error

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

Lists the violated entities that caused the analysis error

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

Lists the violated entities that caused the analysis error

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

Lists the violated entities that caused the analysis error

*/ inline AnalysisError& AddViolatedEntities(Entity&& value) { m_violatedEntitiesHasBeenSet = true; m_violatedEntities.push_back(std::move(value)); return *this; } private: AnalysisErrorType 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