7#include <aws/codeguru-security/CodeGuruSecurity_EXPORTS.h>
8#include <aws/codeguru-security/model/ValidationExceptionField.h>
9#include <aws/codeguru-security/model/ValidationExceptionReason.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
22namespace CodeGuruSecurity {
44 template <
typename ErrorCodeT = Aws::String>
46 m_errorCodeHasBeenSet =
true;
47 m_errorCode = std::forward<ErrorCodeT>(value);
49 template <
typename ErrorCodeT = Aws::String>
62 template <
typename MessageT = Aws::String>
64 m_messageHasBeenSet =
true;
65 m_message = std::forward<MessageT>(value);
67 template <
typename MessageT = Aws::String>
81 m_reasonHasBeenSet =
true;
96 template <
typename FieldListT = Aws::Vector<Val
idationExceptionField>>
98 m_fieldListHasBeenSet =
true;
99 m_fieldList = std::forward<FieldListT>(value);
101 template <
typename FieldListT = Aws::Vector<Val
idationExceptionField>>
106 template <
typename FieldListT = Val
idationExceptionField>
108 m_fieldListHasBeenSet =
true;
109 m_fieldList.emplace_back(std::forward<FieldListT>(value));
121 bool m_errorCodeHasBeenSet =
false;
122 bool m_messageHasBeenSet =
false;
123 bool m_reasonHasBeenSet =
false;
124 bool m_fieldListHasBeenSet =
false;
void SetErrorCode(ErrorCodeT &&value)
bool ErrorCodeHasBeenSet() const
ValidationException & WithErrorCode(ErrorCodeT &&value)
ValidationException & WithReason(ValidationExceptionReason value)
void SetMessage(MessageT &&value)
AWS_CODEGURUSECURITY_API ValidationException()=default
bool FieldListHasBeenSet() const
ValidationException & WithFieldList(FieldListT &&value)
AWS_CODEGURUSECURITY_API Aws::Utils::Json::JsonValue Jsonize() const
ValidationExceptionReason GetReason() const
const Aws::String & GetMessage() const
ValidationException & WithMessage(MessageT &&value)
AWS_CODEGURUSECURITY_API ValidationException(Aws::Utils::Json::JsonView jsonValue)
void SetReason(ValidationExceptionReason value)
AWS_CODEGURUSECURITY_API ValidationException & operator=(Aws::Utils::Json::JsonView jsonValue)
bool ReasonHasBeenSet() const
const Aws::String & GetErrorCode() const
const Aws::Vector< ValidationExceptionField > & GetFieldList() const
void SetFieldList(FieldListT &&value)
bool MessageHasBeenSet() const
ValidationException & AddFieldList(FieldListT &&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