7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/crt/cbor/Cbor.h>
10#include <aws/partnercentral-marketing/PartnerCentralMarketing_EXPORTS.h>
11#include <aws/partnercentral-marketing/model/ValidationExceptionField.h>
12#include <aws/partnercentral-marketing/model/ValidationExceptionReason.h>
22namespace PartnerCentralMarketing {
37 AWS_PARTNERCENTRALMARKETING_API
ValidationException(
const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
39 AWS_PARTNERCENTRALMARKETING_API
void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder)
const;
47 template <
typename MessageT = Aws::String>
49 m_messageHasBeenSet =
true;
50 m_message = std::forward<MessageT>(value);
52 template <
typename MessageT = Aws::String>
67 m_reasonHasBeenSet =
true;
99 template <
typename FieldListT = Aws::Vector<Val
idationExceptionField>>
101 m_fieldListHasBeenSet =
true;
102 m_fieldList = std::forward<FieldListT>(value);
104 template <
typename FieldListT = Aws::Vector<Val
idationExceptionField>>
109 template <
typename FieldListT = Val
idationExceptionField>
111 m_fieldListHasBeenSet =
true;
112 m_fieldList.emplace_back(std::forward<FieldListT>(value));
122 bool m_messageHasBeenSet =
false;
123 bool m_reasonHasBeenSet =
false;
124 bool m_fieldListHasBeenSet =
false;
const Aws::Vector< ValidationExceptionField > & GetFieldList() const
AWS_PARTNERCENTRALMARKETING_API ValidationException()=default
AWS_PARTNERCENTRALMARKETING_API ValidationException(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
bool MessageHasBeenSet() const
ValidationException & WithReason(ValidationExceptionReason value)
bool FieldListHasBeenSet() const
bool ReasonHasBeenSet() const
ValidationException & AddFieldList(FieldListT &&value)
ValidationExceptionReason GetReason() const
AWS_PARTNERCENTRALMARKETING_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
void SetReason(ValidationExceptionReason value)
ValidationException & WithMessage(MessageT &&value)
ValidationException & WithFieldList(FieldListT &&value)
void SetMessage(MessageT &&value)
void SetFieldList(FieldListT &&value)
AWS_PARTNERCENTRALMARKETING_API ValidationException & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const Aws::String & GetMessage() const
ValidationExceptionReason
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector