7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/inspector-scan/Inspectorscan_EXPORTS.h>
10#include <aws/inspector-scan/model/ValidationExceptionField.h>
11#include <aws/inspector-scan/model/ValidationExceptionReason.h>
22namespace inspectorscan {
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 FieldsHasBeenSet() const
ValidationExceptionReason GetReason() const
ValidationException & WithMessage(MessageT &&value)
void SetReason(ValidationExceptionReason value)
AWS_INSPECTORSCAN_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< ValidationExceptionField > & GetFields() const
void SetFields(FieldsT &&value)
const Aws::String & GetMessage() const
ValidationException & WithReason(ValidationExceptionReason value)
ValidationException & AddFields(FieldsT &&value)
ValidationException & WithFields(FieldsT &&value)
AWS_INSPECTORSCAN_API ValidationException & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_INSPECTORSCAN_API ValidationException(Aws::Utils::Json::JsonView jsonValue)
AWS_INSPECTORSCAN_API ValidationException()=default
bool ReasonHasBeenSet() const
void SetMessage(MessageT &&value)
bool MessageHasBeenSet() const
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