7#include <aws/codeguru-security/CodeGuruSecurity_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/codeguru-security/model/ValidationExceptionReason.h>
11#include <aws/codeguru-security/model/ValidationExceptionField.h>
24namespace CodeGuruSecurity
50 template<
typename ErrorCodeT = Aws::String>
51 void SetErrorCode(ErrorCodeT&& value) { m_errorCodeHasBeenSet =
true; m_errorCode = std::forward<ErrorCodeT>(value); }
52 template<
typename ErrorCodeT = Aws::String>
62 template<
typename FieldListT = Aws::Vector<Val
idationExceptionField>>
63 void SetFieldList(FieldListT&& value) { m_fieldListHasBeenSet =
true; m_fieldList = std::forward<FieldListT>(value); }
64 template<
typename FieldListT = Aws::Vector<Val
idationExceptionField>>
66 template<
typename FieldListT = Val
idationExceptionField>
76 template<
typename MessageT = Aws::String>
77 void SetMessage(MessageT&& value) { m_messageHasBeenSet =
true; m_message = std::forward<MessageT>(value); }
78 template<
typename MessageT = Aws::String>
94 bool m_errorCodeHasBeenSet =
false;
97 bool m_fieldListHasBeenSet =
false;
100 bool m_messageHasBeenSet =
false;
103 bool m_reasonHasBeenSet =
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