7#include <aws/mgn/Mgn_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/mgn/model/ValidationExceptionReason.h>
11#include <aws/mgn/model/ValidationExceptionField.h>
47 template<
typename CodeT = Aws::String>
48 void SetCode(CodeT&& value) { m_codeHasBeenSet =
true; m_code = std::forward<CodeT>(value); }
49 template<
typename CodeT = Aws::String>
59 template<
typename FieldListT = Aws::Vector<Val
idationExceptionField>>
60 void SetFieldList(FieldListT&& value) { m_fieldListHasBeenSet =
true; m_fieldList = std::forward<FieldListT>(value); }
61 template<
typename FieldListT = Aws::Vector<Val
idationExceptionField>>
63 template<
typename FieldListT = Val
idationExceptionField>
71 template<
typename MessageT = Aws::String>
72 void SetMessage(MessageT&& value) { m_messageHasBeenSet =
true; m_message = std::forward<MessageT>(value); }
73 template<
typename MessageT = Aws::String>
89 bool m_codeHasBeenSet =
false;
92 bool m_fieldListHasBeenSet =
false;
95 bool m_messageHasBeenSet =
false;
98 bool m_reasonHasBeenSet =
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