/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Validation exception error.See Also:
AWS
* API Reference
The reason for the exception.
*/ inline const ValidationExceptionReason& GetReason() const{ return m_reason; } /** *The reason for the exception.
*/ inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; } /** *The reason for the exception.
*/ inline void SetReason(const ValidationExceptionReason& value) { m_reasonHasBeenSet = true; m_reason = value; } /** *The reason for the exception.
*/ inline void SetReason(ValidationExceptionReason&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); } /** *The reason for the exception.
*/ inline ValidationException& WithReason(const ValidationExceptionReason& value) { SetReason(value); return *this;} /** *The reason for the exception.
*/ inline ValidationException& WithReason(ValidationExceptionReason&& value) { SetReason(std::move(value)); return *this;} /** *A list of fields that didn't validate.
*/ inline const Aws::VectorA list of fields that didn't validate.
*/ inline bool FieldListHasBeenSet() const { return m_fieldListHasBeenSet; } /** *A list of fields that didn't validate.
*/ inline void SetFieldList(const Aws::VectorA list of fields that didn't validate.
*/ inline void SetFieldList(Aws::VectorA list of fields that didn't validate.
*/ inline ValidationException& WithFieldList(const Aws::VectorA list of fields that didn't validate.
*/ inline ValidationException& WithFieldList(Aws::VectorA list of fields that didn't validate.
*/ inline ValidationException& AddFieldList(const ValidationExceptionField& value) { m_fieldListHasBeenSet = true; m_fieldList.push_back(value); return *this; } /** *A list of fields that didn't validate.
*/ inline ValidationException& AddFieldList(ValidationExceptionField&& value) { m_fieldListHasBeenSet = true; m_fieldList.push_back(std::move(value)); return *this; } private: Aws::String m_message; bool m_messageHasBeenSet = false; ValidationExceptionReason m_reason; bool m_reasonHasBeenSet = false; Aws::Vector