/** * 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 { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace PaymentCryptographyData { namespace Model { /** *

The request was denied due to an invalid request error.

See * Also:

AWS * API Reference

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

The request was denied due to an invalid request error.

*/ inline const Aws::Vector& GetFieldList() const{ return m_fieldList; } /** *

The request was denied due to an invalid request error.

*/ inline bool FieldListHasBeenSet() const { return m_fieldListHasBeenSet; } /** *

The request was denied due to an invalid request error.

*/ inline void SetFieldList(const Aws::Vector& value) { m_fieldListHasBeenSet = true; m_fieldList = value; } /** *

The request was denied due to an invalid request error.

*/ inline void SetFieldList(Aws::Vector&& value) { m_fieldListHasBeenSet = true; m_fieldList = std::move(value); } /** *

The request was denied due to an invalid request error.

*/ inline ValidationException& WithFieldList(const Aws::Vector& value) { SetFieldList(value); return *this;} /** *

The request was denied due to an invalid request error.

*/ inline ValidationException& WithFieldList(Aws::Vector&& value) { SetFieldList(std::move(value)); return *this;} /** *

The request was denied due to an invalid request error.

*/ inline ValidationException& AddFieldList(const ValidationExceptionField& value) { m_fieldListHasBeenSet = true; m_fieldList.push_back(value); return *this; } /** *

The request was denied due to an invalid request error.

*/ inline ValidationException& AddFieldList(ValidationExceptionField&& value) { m_fieldListHasBeenSet = true; m_fieldList.push_back(std::move(value)); return *this; } inline const Aws::String& GetMessage() const{ return m_message; } inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } inline ValidationException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} inline ValidationException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} inline ValidationException& WithMessage(const char* value) { SetMessage(value); return *this;} private: Aws::Vector m_fieldList; bool m_fieldListHasBeenSet = false; Aws::String m_message; bool m_messageHasBeenSet = false; }; } // namespace Model } // namespace PaymentCryptographyData } // namespace Aws