/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The input fails to satisfy the constraints specified by the AWS service.
* Check your input values and try again.See Also:
AWS
* API Reference
The reason that validation failed.
*/ inline const ValidationExceptionReason& GetReason() const{ return m_reason; } /** *The reason that validation failed.
*/ inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; } /** *The reason that validation failed.
*/ inline void SetReason(const ValidationExceptionReason& value) { m_reasonHasBeenSet = true; m_reason = value; } /** *The reason that validation failed.
*/ inline void SetReason(ValidationExceptionReason&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); } /** *The reason that validation failed.
*/ inline ValidationException& WithReason(const ValidationExceptionReason& value) { SetReason(value); return *this;} /** *The reason that validation failed.
*/ inline ValidationException& WithReason(ValidationExceptionReason&& value) { SetReason(std::move(value)); return *this;} /** *Fields that failed validation.
*/ inline const Aws::VectorFields that failed validation.
*/ inline bool FieldsHasBeenSet() const { return m_fieldsHasBeenSet; } /** *Fields that failed validation.
*/ inline void SetFields(const Aws::VectorFields that failed validation.
*/ inline void SetFields(Aws::VectorFields that failed validation.
*/ inline ValidationException& WithFields(const Aws::VectorFields that failed validation.
*/ inline ValidationException& WithFields(Aws::VectorFields that failed validation.
*/ inline ValidationException& AddFields(const ValidationExceptionField& value) { m_fieldsHasBeenSet = true; m_fields.push_back(value); return *this; } /** *Fields that failed validation.
*/ inline ValidationException& AddFields(ValidationExceptionField&& value) { m_fieldsHasBeenSet = true; m_fields.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