AWS SDK for C++

AWS SDK for C++ Version 1.11.714

Loading...
Searching...
No Matches
AccessDeniedException.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/partnercentral-account/PartnerCentralAccount_EXPORTS.h>
9#include <aws/partnercentral-account/model/AccessDeniedExceptionReason.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace PartnerCentralAccount {
21namespace Model {
22
31 public:
32 AWS_PARTNERCENTRALACCOUNT_API AccessDeniedException() = default;
33 AWS_PARTNERCENTRALACCOUNT_API AccessDeniedException(Aws::Utils::Json::JsonView jsonValue);
34 AWS_PARTNERCENTRALACCOUNT_API AccessDeniedException& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_PARTNERCENTRALACCOUNT_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
39 inline const Aws::String& GetMessage() const { return m_message; }
40 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
41 template <typename MessageT = Aws::String>
42 void SetMessage(MessageT&& value) {
43 m_messageHasBeenSet = true;
44 m_message = std::forward<MessageT>(value);
45 }
46 template <typename MessageT = Aws::String>
48 SetMessage(std::forward<MessageT>(value));
49 return *this;
50 }
52
54
57 inline AccessDeniedExceptionReason GetReason() const { return m_reason; }
58 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
60 m_reasonHasBeenSet = true;
61 m_reason = value;
62 }
64 SetReason(value);
65 return *this;
66 }
68 private:
69 Aws::String m_message;
70
72 bool m_messageHasBeenSet = false;
73 bool m_reasonHasBeenSet = false;
74};
75
76} // namespace Model
77} // namespace PartnerCentralAccount
78} // namespace Aws
AWS_PARTNERCENTRALACCOUNT_API AccessDeniedException(Aws::Utils::Json::JsonView jsonValue)
AccessDeniedException & WithReason(AccessDeniedExceptionReason value)
AWS_PARTNERCENTRALACCOUNT_API AccessDeniedException & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_PARTNERCENTRALACCOUNT_API Aws::Utils::Json::JsonValue Jsonize() const
AccessDeniedException & WithMessage(MessageT &&value)
AWS_PARTNERCENTRALACCOUNT_API AccessDeniedException()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue