AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ValidationException.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 ValidationException() = default;
30 AWS_IVSREALTIME_API ValidationException(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 ValidationException& 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 ValidationException& 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 ValidationException& 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 ValidationException& 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 ValidationException& 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 ValidationException& 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 ValidationException& 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 ValidationException& WithXAmznErrorType(XAmznErrorTypeT&& value) {
173 SetXAmznErrorType(std::forward<XAmznErrorTypeT>(value));
174 return *this;
175 }
177
179
183 inline const Aws::String& GetExceptionMessage() const { return m_exceptionMessage; }
184 inline bool ExceptionMessageHasBeenSet() const { return m_exceptionMessageHasBeenSet; }
185 template <typename ExceptionMessageT = Aws::String>
186 void SetExceptionMessage(ExceptionMessageT&& value) {
187 m_exceptionMessageHasBeenSet = true;
188 m_exceptionMessage = std::forward<ExceptionMessageT>(value);
189 }
190 template <typename ExceptionMessageT = Aws::String>
191 ValidationException& WithExceptionMessage(ExceptionMessageT&& value) {
192 SetExceptionMessage(std::forward<ExceptionMessageT>(value));
193 return *this;
194 }
196 private:
197 Aws::String m_accessControlAllowOrigin;
198
199 Aws::String m_accessControlExposeHeaders;
200
201 Aws::String m_cacheControl;
202
203 Aws::String m_contentSecurityPolicy;
204
205 Aws::String m_strictTransportSecurity;
206
207 Aws::String m_xContentTypeOptions;
208
209 Aws::String m_xFrameOptions;
210
211 Aws::String m_xAmznErrorType;
212
213 Aws::String m_exceptionMessage;
214 bool m_accessControlAllowOriginHasBeenSet = false;
215 bool m_accessControlExposeHeadersHasBeenSet = false;
216 bool m_cacheControlHasBeenSet = false;
217 bool m_contentSecurityPolicyHasBeenSet = false;
218 bool m_strictTransportSecurityHasBeenSet = false;
219 bool m_xContentTypeOptionsHasBeenSet = false;
220 bool m_xFrameOptionsHasBeenSet = false;
221 bool m_xAmznErrorTypeHasBeenSet = false;
222 bool m_exceptionMessageHasBeenSet = false;
223};
224
225} // namespace Model
226} // namespace ivsrealtime
227} // namespace Aws
AWS_IVSREALTIME_API ValidationException(Aws::Utils::Json::JsonView jsonValue)
ValidationException & WithContentSecurityPolicy(ContentSecurityPolicyT &&value)
ValidationException & WithStrictTransportSecurity(StrictTransportSecurityT &&value)
void SetExceptionMessage(ExceptionMessageT &&value)
void SetAccessControlExposeHeaders(AccessControlExposeHeadersT &&value)
void SetContentSecurityPolicy(ContentSecurityPolicyT &&value)
ValidationException & WithAccessControlExposeHeaders(AccessControlExposeHeadersT &&value)
const Aws::String & GetAccessControlExposeHeaders() const
ValidationException & WithXContentTypeOptions(XContentTypeOptionsT &&value)
const Aws::String & GetContentSecurityPolicy() const
ValidationException & WithExceptionMessage(ExceptionMessageT &&value)
const Aws::String & GetAccessControlAllowOrigin() const
ValidationException & WithAccessControlAllowOrigin(AccessControlAllowOriginT &&value)
void SetAccessControlAllowOrigin(AccessControlAllowOriginT &&value)
void SetStrictTransportSecurity(StrictTransportSecurityT &&value)
ValidationException & WithXFrameOptions(XFrameOptionsT &&value)
AWS_IVSREALTIME_API ValidationException()=default
AWS_IVSREALTIME_API ValidationException & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_IVSREALTIME_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetStrictTransportSecurity() const
ValidationException & WithXAmznErrorType(XAmznErrorTypeT &&value)
void SetXContentTypeOptions(XContentTypeOptionsT &&value)
ValidationException & WithCacheControl(CacheControlT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue