7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/partnercentral-benefits/PartnerCentralBenefits_EXPORTS.h>
10#include <aws/partnercentral-benefits/model/ValidationExceptionField.h>
11#include <aws/partnercentral-benefits/model/ValidationExceptionReason.h>
22namespace PartnerCentralBenefits {
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 FieldListT = Aws::Vector<Val
idationExceptionField>>
80 m_fieldListHasBeenSet =
true;
81 m_fieldList = std::forward<FieldListT>(value);
83 template <
typename FieldListT = Aws::Vector<Val
idationExceptionField>>
88 template <
typename FieldListT = Val
idationExceptionField>
90 m_fieldListHasBeenSet =
true;
91 m_fieldList.emplace_back(std::forward<FieldListT>(value));
101 bool m_messageHasBeenSet =
false;
102 bool m_reasonHasBeenSet =
false;
103 bool m_fieldListHasBeenSet =
false;
AWS_PARTNERCENTRALBENEFITS_API ValidationException(Aws::Utils::Json::JsonView jsonValue)
AWS_PARTNERCENTRALBENEFITS_API ValidationException & operator=(Aws::Utils::Json::JsonView jsonValue)
ValidationException & WithFieldList(FieldListT &&value)
void SetReason(ValidationExceptionReason value)
const Aws::String & GetMessage() const
void SetFieldList(FieldListT &&value)
bool ReasonHasBeenSet() const
const Aws::Vector< ValidationExceptionField > & GetFieldList() const
bool FieldListHasBeenSet() const
bool MessageHasBeenSet() const
ValidationException & WithMessage(MessageT &&value)
ValidationException & AddFieldList(FieldListT &&value)
AWS_PARTNERCENTRALBENEFITS_API ValidationException()=default
ValidationException & WithReason(ValidationExceptionReason value)
void SetMessage(MessageT &&value)
AWS_PARTNERCENTRALBENEFITS_API Aws::Utils::Json::JsonValue Jsonize() const
ValidationExceptionReason GetReason() 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