/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Exception that indicates that the parameters passed to the API are invalid.
* If available, this exception includes details in additional properties.
* See Also:
AWS
* API Reference
Additional information about the exception.
*/ inline const ValidationExceptionReason& GetReason() const{ return m_reason; } /** *Additional information about the exception.
*/ inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; } /** *Additional information about the exception.
*/ inline void SetReason(const ValidationExceptionReason& value) { m_reasonHasBeenSet = true; m_reason = value; } /** *Additional information about the exception.
*/ inline void SetReason(ValidationExceptionReason&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); } /** *Additional information about the exception.
*/ inline InvalidParameterException& WithReason(const ValidationExceptionReason& value) { SetReason(value); return *this;} /** *Additional information about the exception.
*/ inline InvalidParameterException& WithReason(ValidationExceptionReason&& value) { SetReason(std::move(value)); return *this;} /** *Fields that caused the exception.
*/ inline const Aws::VectorFields that caused the exception.
*/ inline bool FieldsHasBeenSet() const { return m_fieldsHasBeenSet; } /** *Fields that caused the exception.
*/ inline void SetFields(const Aws::VectorFields that caused the exception.
*/ inline void SetFields(Aws::VectorFields that caused the exception.
*/ inline InvalidParameterException& WithFields(const Aws::VectorFields that caused the exception.
*/ inline InvalidParameterException& WithFields(Aws::VectorFields that caused the exception.
*/ inline InvalidParameterException& AddFields(const ValidationExceptionField& value) { m_fieldsHasBeenSet = true; m_fields.push_back(value); return *this; } /** *Fields that caused the exception.
*/ inline InvalidParameterException& 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