7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/crt/cbor/Cbor.h>
9#include <aws/partnercentral-marketing/PartnerCentralMarketing_EXPORTS.h>
10#include <aws/partnercentral-marketing/model/AccessDeniedExceptionReason.h>
20namespace PartnerCentralMarketing {
34 AWS_PARTNERCENTRALMARKETING_API
AccessDeniedException(
const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
36 AWS_PARTNERCENTRALMARKETING_API
void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder)
const;
44 template <
typename MessageT = Aws::String>
46 m_messageHasBeenSet =
true;
47 m_message = std::forward<MessageT>(value);
49 template <
typename MessageT = Aws::String>
64 m_reasonHasBeenSet =
true;
76 bool m_messageHasBeenSet =
false;
77 bool m_reasonHasBeenSet =
false;
AWS_PARTNERCENTRALMARKETING_API AccessDeniedException(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AccessDeniedException & WithMessage(MessageT &&value)
AWS_PARTNERCENTRALMARKETING_API AccessDeniedException & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
bool MessageHasBeenSet() const
bool ReasonHasBeenSet() const
AccessDeniedExceptionReason GetReason() const
const Aws::String & GetMessage() const
void SetMessage(MessageT &&value)
AccessDeniedException & WithReason(AccessDeniedExceptionReason value)
AWS_PARTNERCENTRALMARKETING_API AccessDeniedException()=default
void SetReason(AccessDeniedExceptionReason value)
AWS_PARTNERCENTRALMARKETING_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AccessDeniedExceptionReason
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String