/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The request failed validation.See Also:
AWS
* API Reference
The list of fields that caused the error, if applicable.
*/ inline const Aws::VectorThe list of fields that caused the error, if applicable.
*/ inline bool FieldListHasBeenSet() const { return m_fieldListHasBeenSet; } /** *The list of fields that caused the error, if applicable.
*/ inline void SetFieldList(const Aws::VectorThe list of fields that caused the error, if applicable.
*/ inline void SetFieldList(Aws::VectorThe list of fields that caused the error, if applicable.
*/ inline ValidationException& WithFieldList(const Aws::VectorThe list of fields that caused the error, if applicable.
*/ inline ValidationException& WithFieldList(Aws::VectorThe list of fields that caused the error, if applicable.
*/ inline ValidationException& AddFieldList(const ValidationExceptionField& value) { m_fieldListHasBeenSet = true; m_fieldList.push_back(value); return *this; } /** *The list of fields that caused the error, if applicable.
*/ inline ValidationException& AddFieldList(ValidationExceptionField&& value) { m_fieldListHasBeenSet = true; m_fieldList.push_back(std::move(value)); return *this; } /** *Description of the error.
*/ inline const Aws::String& GetMessage() const{ return m_message; } /** *Description of the error.
*/ inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } /** *Description of the error.
*/ inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } /** *Description of the error.
*/ inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } /** *Description of the error.
*/ inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } /** *Description of the error.
*/ inline ValidationException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} /** *Description of the error.
*/ inline ValidationException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} /** *Description of the error.
*/ inline ValidationException& WithMessage(const char* value) { SetMessage(value); return *this;} /** *Reason the request failed validation.
*/ inline const ValidationExceptionReason& GetReason() const{ return m_reason; } /** *Reason the request failed validation.
*/ inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; } /** *Reason the request failed validation.
*/ inline void SetReason(const ValidationExceptionReason& value) { m_reasonHasBeenSet = true; m_reason = value; } /** *Reason the request failed validation.
*/ inline void SetReason(ValidationExceptionReason&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); } /** *Reason the request failed validation.
*/ inline ValidationException& WithReason(const ValidationExceptionReason& value) { SetReason(value); return *this;} /** *Reason the request failed validation.
*/ inline ValidationException& WithReason(ValidationExceptionReason&& value) { SetReason(std::move(value)); return *this;} private: Aws::Vector