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

Contains a description of an evaluation error.

This data type is used * as a request parameter in the IsAuthorized * and IsAuthorizedWithToken * operations.

See Also:

AWS * API Reference

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

The error description.

*/ inline const Aws::String& GetErrorDescription() const{ return m_errorDescription; } /** *

The error description.

*/ inline bool ErrorDescriptionHasBeenSet() const { return m_errorDescriptionHasBeenSet; } /** *

The error description.

*/ inline void SetErrorDescription(const Aws::String& value) { m_errorDescriptionHasBeenSet = true; m_errorDescription = value; } /** *

The error description.

*/ inline void SetErrorDescription(Aws::String&& value) { m_errorDescriptionHasBeenSet = true; m_errorDescription = std::move(value); } /** *

The error description.

*/ inline void SetErrorDescription(const char* value) { m_errorDescriptionHasBeenSet = true; m_errorDescription.assign(value); } /** *

The error description.

*/ inline EvaluationErrorItem& WithErrorDescription(const Aws::String& value) { SetErrorDescription(value); return *this;} /** *

The error description.

*/ inline EvaluationErrorItem& WithErrorDescription(Aws::String&& value) { SetErrorDescription(std::move(value)); return *this;} /** *

The error description.

*/ inline EvaluationErrorItem& WithErrorDescription(const char* value) { SetErrorDescription(value); return *this;} private: Aws::String m_errorDescription; bool m_errorDescriptionHasBeenSet = false; }; } // namespace Model } // namespace VerifiedPermissions } // namespace Aws