7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/wellarchitected/WellArchitected_EXPORTS.h>
10#include <aws/wellarchitected/model/ValidationExceptionField.h>
11#include <aws/wellarchitected/model/ValidationExceptionReason.h>
22namespace WellArchitected {
41 template <
typename MessageT = Aws::String>
43 m_messageHasBeenSet =
true;
44 m_message = std::forward<MessageT>(value);
46 template <
typename MessageT = Aws::String>
58 m_reasonHasBeenSet =
true;
71 template <
typename FieldsT = Aws::Vector<Val
idationExceptionField>>
73 m_fieldsHasBeenSet =
true;
74 m_fields = std::forward<FieldsT>(value);
76 template <
typename FieldsT = Aws::Vector<Val
idationExceptionField>>
81 template <
typename FieldsT = Val
idationExceptionField>
83 m_fieldsHasBeenSet =
true;
84 m_fields.emplace_back(std::forward<FieldsT>(value));
94 bool m_messageHasBeenSet =
false;
95 bool m_reasonHasBeenSet =
false;
96 bool m_fieldsHasBeenSet =
false;
ValidationExceptionReason GetReason() const
AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const
void SetReason(ValidationExceptionReason value)
void SetFields(FieldsT &&value)
bool ReasonHasBeenSet() const
AWS_WELLARCHITECTED_API ValidationException(Aws::Utils::Json::JsonView jsonValue)
AWS_WELLARCHITECTED_API ValidationException()=default
const Aws::Vector< ValidationExceptionField > & GetFields() const
AWS_WELLARCHITECTED_API ValidationException & operator=(Aws::Utils::Json::JsonView jsonValue)
ValidationException & WithReason(ValidationExceptionReason value)
void SetMessage(MessageT &&value)
ValidationException & AddFields(FieldsT &&value)
ValidationException & WithMessage(MessageT &&value)
bool FieldsHasBeenSet() const
ValidationException & WithFields(FieldsT &&value)
bool MessageHasBeenSet() const
const Aws::String & GetMessage() const
ValidationExceptionReason
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue