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

Details about a field that failed policy validation.

See Also:

* AWS * API Reference

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

The path to the specific element that Verified Permissions found to be not * valid.

*/ inline const Aws::String& GetPath() const{ return m_path; } /** *

The path to the specific element that Verified Permissions found to be not * valid.

*/ inline bool PathHasBeenSet() const { return m_pathHasBeenSet; } /** *

The path to the specific element that Verified Permissions found to be not * valid.

*/ inline void SetPath(const Aws::String& value) { m_pathHasBeenSet = true; m_path = value; } /** *

The path to the specific element that Verified Permissions found to be not * valid.

*/ inline void SetPath(Aws::String&& value) { m_pathHasBeenSet = true; m_path = std::move(value); } /** *

The path to the specific element that Verified Permissions found to be not * valid.

*/ inline void SetPath(const char* value) { m_pathHasBeenSet = true; m_path.assign(value); } /** *

The path to the specific element that Verified Permissions found to be not * valid.

*/ inline ValidationExceptionField& WithPath(const Aws::String& value) { SetPath(value); return *this;} /** *

The path to the specific element that Verified Permissions found to be not * valid.

*/ inline ValidationExceptionField& WithPath(Aws::String&& value) { SetPath(std::move(value)); return *this;} /** *

The path to the specific element that Verified Permissions found to be not * valid.

*/ inline ValidationExceptionField& WithPath(const char* value) { SetPath(value); return *this;} /** *

Describes the policy validation error.

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

Describes the policy validation error.

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

Describes the policy validation error.

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

Describes the policy validation error.

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

Describes the policy validation error.

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

Describes the policy validation error.

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

Describes the policy validation error.

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

Describes the policy validation error.

*/ inline ValidationExceptionField& WithMessage(const char* value) { SetMessage(value); return *this;} private: Aws::String m_path; bool m_pathHasBeenSet = false; Aws::String m_message; bool m_messageHasBeenSet = false; }; } // namespace Model } // namespace VerifiedPermissions } // namespace Aws