AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
AccessDeniedException.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/ivs-realtime/Ivsrealtime_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace ivsrealtime {
20namespace Model {
21
28 public:
29 AWS_IVSREALTIME_API AccessDeniedException() = default;
30 AWS_IVSREALTIME_API AccessDeniedException(Aws::Utils::Json::JsonView jsonValue);
32 AWS_IVSREALTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline const Aws::String& GetAccessControlAllowOrigin() const { return m_accessControlAllowOrigin; }
39 inline bool AccessControlAllowOriginHasBeenSet() const { return m_accessControlAllowOriginHasBeenSet; }
40 template <typename AccessControlAllowOriginT = Aws::String>
41 void SetAccessControlAllowOrigin(AccessControlAllowOriginT&& value) {
42 m_accessControlAllowOriginHasBeenSet = true;
43 m_accessControlAllowOrigin = std::forward<AccessControlAllowOriginT>(value);
44 }
45 template <typename AccessControlAllowOriginT = Aws::String>
46 AccessDeniedException& WithAccessControlAllowOrigin(AccessControlAllowOriginT&& value) {
47 SetAccessControlAllowOrigin(std::forward<AccessControlAllowOriginT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetAccessControlExposeHeaders() const { return m_accessControlExposeHeaders; }
57 inline bool AccessControlExposeHeadersHasBeenSet() const { return m_accessControlExposeHeadersHasBeenSet; }
58 template <typename AccessControlExposeHeadersT = Aws::String>
59 void SetAccessControlExposeHeaders(AccessControlExposeHeadersT&& value) {
60 m_accessControlExposeHeadersHasBeenSet = true;
61 m_accessControlExposeHeaders = std::forward<AccessControlExposeHeadersT>(value);
62 }
63 template <typename AccessControlExposeHeadersT = Aws::String>
64 AccessDeniedException& WithAccessControlExposeHeaders(AccessControlExposeHeadersT&& value) {
65 SetAccessControlExposeHeaders(std::forward<AccessControlExposeHeadersT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetCacheControl() const { return m_cacheControl; }
75 inline bool CacheControlHasBeenSet() const { return m_cacheControlHasBeenSet; }
76 template <typename CacheControlT = Aws::String>
77 void SetCacheControl(CacheControlT&& value) {
78 m_cacheControlHasBeenSet = true;
79 m_cacheControl = std::forward<CacheControlT>(value);
80 }
81 template <typename CacheControlT = Aws::String>
82 AccessDeniedException& WithCacheControl(CacheControlT&& value) {
83 SetCacheControl(std::forward<CacheControlT>(value));
84 return *this;
85 }
87
89
92 inline const Aws::String& GetContentSecurityPolicy() const { return m_contentSecurityPolicy; }
93 inline bool ContentSecurityPolicyHasBeenSet() const { return m_contentSecurityPolicyHasBeenSet; }
94 template <typename ContentSecurityPolicyT = Aws::String>
95 void SetContentSecurityPolicy(ContentSecurityPolicyT&& value) {
96 m_contentSecurityPolicyHasBeenSet = true;
97 m_contentSecurityPolicy = std::forward<ContentSecurityPolicyT>(value);
98 }
99 template <typename ContentSecurityPolicyT = Aws::String>
100 AccessDeniedException& WithContentSecurityPolicy(ContentSecurityPolicyT&& value) {
101 SetContentSecurityPolicy(std::forward<ContentSecurityPolicyT>(value));
102 return *this;
103 }
105
107
110 inline const Aws::String& GetStrictTransportSecurity() const { return m_strictTransportSecurity; }
111 inline bool StrictTransportSecurityHasBeenSet() const { return m_strictTransportSecurityHasBeenSet; }
112 template <typename StrictTransportSecurityT = Aws::String>
113 void SetStrictTransportSecurity(StrictTransportSecurityT&& value) {
114 m_strictTransportSecurityHasBeenSet = true;
115 m_strictTransportSecurity = std::forward<StrictTransportSecurityT>(value);
116 }
117 template <typename StrictTransportSecurityT = Aws::String>
118 AccessDeniedException& WithStrictTransportSecurity(StrictTransportSecurityT&& value) {
119 SetStrictTransportSecurity(std::forward<StrictTransportSecurityT>(value));
120 return *this;
121 }
123
125
128 inline const Aws::String& GetXContentTypeOptions() const { return m_xContentTypeOptions; }
129 inline bool XContentTypeOptionsHasBeenSet() const { return m_xContentTypeOptionsHasBeenSet; }
130 template <typename XContentTypeOptionsT = Aws::String>
131 void SetXContentTypeOptions(XContentTypeOptionsT&& value) {
132 m_xContentTypeOptionsHasBeenSet = true;
133 m_xContentTypeOptions = std::forward<XContentTypeOptionsT>(value);
134 }
135 template <typename XContentTypeOptionsT = Aws::String>
136 AccessDeniedException& WithXContentTypeOptions(XContentTypeOptionsT&& value) {
137 SetXContentTypeOptions(std::forward<XContentTypeOptionsT>(value));
138 return *this;
139 }
141
143
146 inline const Aws::String& GetXFrameOptions() const { return m_xFrameOptions; }
147 inline bool XFrameOptionsHasBeenSet() const { return m_xFrameOptionsHasBeenSet; }
148 template <typename XFrameOptionsT = Aws::String>
149 void SetXFrameOptions(XFrameOptionsT&& value) {
150 m_xFrameOptionsHasBeenSet = true;
151 m_xFrameOptions = std::forward<XFrameOptionsT>(value);
152 }
153 template <typename XFrameOptionsT = Aws::String>
154 AccessDeniedException& WithXFrameOptions(XFrameOptionsT&& value) {
155 SetXFrameOptions(std::forward<XFrameOptionsT>(value));
156 return *this;
157 }
159
161
164 inline const Aws::String& GetXAmznErrorType() const { return m_xAmznErrorType; }
165 inline bool XAmznErrorTypeHasBeenSet() const { return m_xAmznErrorTypeHasBeenSet; }
166 template <typename XAmznErrorTypeT = Aws::String>
167 void SetXAmznErrorType(XAmznErrorTypeT&& value) {
168 m_xAmznErrorTypeHasBeenSet = true;
169 m_xAmznErrorType = std::forward<XAmznErrorTypeT>(value);
170 }
171 template <typename XAmznErrorTypeT = Aws::String>
172 AccessDeniedException& WithXAmznErrorType(XAmznErrorTypeT&& value) {
173 SetXAmznErrorType(std::forward<XAmznErrorTypeT>(value));
174 return *this;
175 }
177
179
182 inline const Aws::String& GetExceptionMessage() const { return m_exceptionMessage; }
183 inline bool ExceptionMessageHasBeenSet() const { return m_exceptionMessageHasBeenSet; }
184 template <typename ExceptionMessageT = Aws::String>
185 void SetExceptionMessage(ExceptionMessageT&& value) {
186 m_exceptionMessageHasBeenSet = true;
187 m_exceptionMessage = std::forward<ExceptionMessageT>(value);
188 }
189 template <typename ExceptionMessageT = Aws::String>
190 AccessDeniedException& WithExceptionMessage(ExceptionMessageT&& value) {
191 SetExceptionMessage(std::forward<ExceptionMessageT>(value));
192 return *this;
193 }
195 private:
196 Aws::String m_accessControlAllowOrigin;
197
198 Aws::String m_accessControlExposeHeaders;
199
200 Aws::String m_cacheControl;
201
202 Aws::String m_contentSecurityPolicy;
203
204 Aws::String m_strictTransportSecurity;
205
206 Aws::String m_xContentTypeOptions;
207
208 Aws::String m_xFrameOptions;
209
210 Aws::String m_xAmznErrorType;
211
212 Aws::String m_exceptionMessage;
213 bool m_accessControlAllowOriginHasBeenSet = false;
214 bool m_accessControlExposeHeadersHasBeenSet = false;
215 bool m_cacheControlHasBeenSet = false;
216 bool m_contentSecurityPolicyHasBeenSet = false;
217 bool m_strictTransportSecurityHasBeenSet = false;
218 bool m_xContentTypeOptionsHasBeenSet = false;
219 bool m_xFrameOptionsHasBeenSet = false;
220 bool m_xAmznErrorTypeHasBeenSet = false;
221 bool m_exceptionMessageHasBeenSet = false;
222};
223
224} // namespace Model
225} // namespace ivsrealtime
226} // namespace Aws
AccessDeniedException & WithAccessControlExposeHeaders(AccessControlExposeHeadersT &&value)
void SetContentSecurityPolicy(ContentSecurityPolicyT &&value)
AccessDeniedException & WithExceptionMessage(ExceptionMessageT &&value)
AWS_IVSREALTIME_API AccessDeniedException(Aws::Utils::Json::JsonView jsonValue)
AccessDeniedException & WithCacheControl(CacheControlT &&value)
AccessDeniedException & WithXFrameOptions(XFrameOptionsT &&value)
void SetAccessControlExposeHeaders(AccessControlExposeHeadersT &&value)
AccessDeniedException & WithContentSecurityPolicy(ContentSecurityPolicyT &&value)
AccessDeniedException & WithStrictTransportSecurity(StrictTransportSecurityT &&value)
AWS_IVSREALTIME_API AccessDeniedException & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetXContentTypeOptions(XContentTypeOptionsT &&value)
void SetAccessControlAllowOrigin(AccessControlAllowOriginT &&value)
void SetStrictTransportSecurity(StrictTransportSecurityT &&value)
AWS_IVSREALTIME_API AccessDeniedException()=default
AWS_IVSREALTIME_API Aws::Utils::Json::JsonValue Jsonize() const
AccessDeniedException & WithXContentTypeOptions(XContentTypeOptionsT &&value)
AccessDeniedException & WithAccessControlAllowOrigin(AccessControlAllowOriginT &&value)
AccessDeniedException & WithXAmznErrorType(XAmznErrorTypeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue