7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/mgn/Mgn_EXPORTS.h>
10#include <aws/mgn/model/ValidationExceptionField.h>
11#include <aws/mgn/model/ValidationExceptionReason.h>
41 template <
typename MessageT = Aws::String>
43 m_messageHasBeenSet =
true;
44 m_message = std::forward<MessageT>(value);
46 template <
typename MessageT = Aws::String>
57 template <
typename CodeT = Aws::String>
59 m_codeHasBeenSet =
true;
60 m_code = std::forward<CodeT>(value);
62 template <
typename CodeT = Aws::String>
64 SetCode(std::forward<CodeT>(value));
76 m_reasonHasBeenSet =
true;
91 template <
typename FieldListT = Aws::Vector<Val
idationExceptionField>>
93 m_fieldListHasBeenSet =
true;
94 m_fieldList = std::forward<FieldListT>(value);
96 template <
typename FieldListT = Aws::Vector<Val
idationExceptionField>>
101 template <
typename FieldListT = Val
idationExceptionField>
103 m_fieldListHasBeenSet =
true;
104 m_fieldList.emplace_back(std::forward<FieldListT>(value));
116 bool m_messageHasBeenSet =
false;
117 bool m_codeHasBeenSet =
false;
118 bool m_reasonHasBeenSet =
false;
119 bool m_fieldListHasBeenSet =
false;
ValidationException & WithCode(CodeT &&value)
const Aws::Vector< ValidationExceptionField > & GetFieldList() const
AWS_MGN_API ValidationException(Aws::Utils::Json::JsonView jsonValue)
void SetFieldList(FieldListT &&value)
AWS_MGN_API ValidationException & operator=(Aws::Utils::Json::JsonView jsonValue)
ValidationException & WithFieldList(FieldListT &&value)
bool ReasonHasBeenSet() const
void SetReason(ValidationExceptionReason value)
void SetMessage(MessageT &&value)
bool MessageHasBeenSet() const
bool FieldListHasBeenSet() const
ValidationException & AddFieldList(FieldListT &&value)
ValidationException & WithReason(ValidationExceptionReason value)
const Aws::String & GetCode() const
AWS_MGN_API ValidationException()=default
const Aws::String & GetMessage() const
AWS_MGN_API Aws::Utils::Json::JsonValue Jsonize() const
void SetCode(CodeT &&value)
ValidationExceptionReason GetReason() const
bool CodeHasBeenSet() const
ValidationException & WithMessage(MessageT &&value)
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