7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/qbusiness/QBusiness_EXPORTS.h>
10#include <aws/qbusiness/model/ValidationExceptionField.h>
11#include <aws/qbusiness/model/ValidationExceptionReason.h>
44 template <
typename MessageT = Aws::String>
46 m_messageHasBeenSet =
true;
47 m_message = std::forward<MessageT>(value);
49 template <
typename MessageT = Aws::String>
63 m_reasonHasBeenSet =
true;
78 template <
typename FieldsT = Aws::Vector<Val
idationExceptionField>>
80 m_fieldsHasBeenSet =
true;
81 m_fields = std::forward<FieldsT>(value);
83 template <
typename FieldsT = Aws::Vector<Val
idationExceptionField>>
88 template <
typename FieldsT = Val
idationExceptionField>
90 m_fieldsHasBeenSet =
true;
91 m_fields.emplace_back(std::forward<FieldsT>(value));
101 bool m_messageHasBeenSet =
false;
102 bool m_reasonHasBeenSet =
false;
103 bool m_fieldsHasBeenSet =
false;
const Aws::Vector< ValidationExceptionField > & GetFields() const
AWS_QBUSINESS_API ValidationException()=default
bool ReasonHasBeenSet() const
ValidationException & WithMessage(MessageT &&value)
void SetMessage(MessageT &&value)
ValidationExceptionReason GetReason() const
ValidationException & WithReason(ValidationExceptionReason value)
ValidationException & WithFields(FieldsT &&value)
bool MessageHasBeenSet() const
AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetMessage() const
void SetFields(FieldsT &&value)
ValidationException & AddFields(FieldsT &&value)
void SetReason(ValidationExceptionReason value)
AWS_QBUSINESS_API ValidationException & operator=(Aws::Utils::Json::JsonView jsonValue)
bool FieldsHasBeenSet() const
AWS_QBUSINESS_API ValidationException(Aws::Utils::Json::JsonView jsonValue)
ValidationExceptionReason
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue