AWS SDK for C++

AWS SDK for C++ Version 1.11.933

Loading...
Searching...
No Matches
AccessDeniedException.h
1
6#pragma once
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>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Cbor {
17class CborValue;
18} // namespace Cbor
19} // namespace Utils
20namespace PartnerCentralMarketing {
21namespace Model {
22
32 public:
33 AWS_PARTNERCENTRALMARKETING_API AccessDeniedException() = default;
34 AWS_PARTNERCENTRALMARKETING_API AccessDeniedException(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
35 AWS_PARTNERCENTRALMARKETING_API AccessDeniedException& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
36 AWS_PARTNERCENTRALMARKETING_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
37
39
42 inline const Aws::String& GetMessage() const { return m_message; }
43 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
44 template <typename MessageT = Aws::String>
45 void SetMessage(MessageT&& value) {
46 m_messageHasBeenSet = true;
47 m_message = std::forward<MessageT>(value);
48 }
49 template <typename MessageT = Aws::String>
51 SetMessage(std::forward<MessageT>(value));
52 return *this;
53 }
55
57
61 inline AccessDeniedExceptionReason GetReason() const { return m_reason; }
62 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
64 m_reasonHasBeenSet = true;
65 m_reason = value;
66 }
68 SetReason(value);
69 return *this;
70 }
72 private:
73 Aws::String m_message;
74
76 bool m_messageHasBeenSet = false;
77 bool m_reasonHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace PartnerCentralMarketing
82} // namespace Aws
AWS_PARTNERCENTRALMARKETING_API AccessDeniedException(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_PARTNERCENTRALMARKETING_API AccessDeniedException & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AccessDeniedException & WithReason(AccessDeniedExceptionReason value)
AWS_PARTNERCENTRALMARKETING_API AccessDeniedException()=default
AWS_PARTNERCENTRALMARKETING_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String