7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/greengrassv2/GreengrassV2_EXPORTS.h>
10#include <aws/greengrassv2/model/ValidationExceptionField.h>
11#include <aws/greengrassv2/model/ValidationExceptionReason.h>
22namespace GreengrassV2 {
42 template <
typename MessageT = Aws::String>
44 m_messageHasBeenSet =
true;
45 m_message = std::forward<MessageT>(value);
47 template <
typename MessageT = Aws::String>
61 m_reasonHasBeenSet =
true;
76 template <
typename FieldsT = Aws::Vector<Val
idationExceptionField>>
78 m_fieldsHasBeenSet =
true;
79 m_fields = std::forward<FieldsT>(value);
81 template <
typename FieldsT = Aws::Vector<Val
idationExceptionField>>
86 template <
typename FieldsT = Val
idationExceptionField>
88 m_fieldsHasBeenSet =
true;
89 m_fields.emplace_back(std::forward<FieldsT>(value));
99 bool m_messageHasBeenSet =
false;
100 bool m_reasonHasBeenSet =
false;
101 bool m_fieldsHasBeenSet =
false;
bool ReasonHasBeenSet() const
ValidationExceptionReason GetReason() const
ValidationException & WithFields(FieldsT &&value)
bool FieldsHasBeenSet() const
AWS_GREENGRASSV2_API ValidationException & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetFields(FieldsT &&value)
const Aws::String & GetMessage() const
ValidationException & WithReason(ValidationExceptionReason value)
void SetMessage(MessageT &&value)
ValidationException & WithMessage(MessageT &&value)
AWS_GREENGRASSV2_API ValidationException()=default
const Aws::Vector< ValidationExceptionField > & GetFields() const
AWS_GREENGRASSV2_API Aws::Utils::Json::JsonValue Jsonize() const
ValidationException & AddFields(FieldsT &&value)
bool MessageHasBeenSet() const
void SetReason(ValidationExceptionReason value)
AWS_GREENGRASSV2_API ValidationException(Aws::Utils::Json::JsonView jsonValue)
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