AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ResponseHeadersPolicySecurityHeadersConfig.h
1
6#pragma once
7#include <aws/cloudfront/CloudFront_EXPORTS.h>
8#include <aws/cloudfront/model/ResponseHeadersPolicyXSSProtection.h>
9#include <aws/cloudfront/model/ResponseHeadersPolicyFrameOptions.h>
10#include <aws/cloudfront/model/ResponseHeadersPolicyReferrerPolicy.h>
11#include <aws/cloudfront/model/ResponseHeadersPolicyContentSecurityPolicy.h>
12#include <aws/cloudfront/model/ResponseHeadersPolicyContentTypeOptions.h>
13#include <aws/cloudfront/model/ResponseHeadersPolicyStrictTransportSecurity.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Xml
21{
22 class XmlNode;
23} // namespace Xml
24} // namespace Utils
25namespace CloudFront
26{
27namespace Model
28{
29
39 {
40 public:
44
45 AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
46
47
49
56 inline const ResponseHeadersPolicyXSSProtection& GetXSSProtection() const{ return m_xSSProtection; }
57 inline bool XSSProtectionHasBeenSet() const { return m_xSSProtectionHasBeenSet; }
58 inline void SetXSSProtection(const ResponseHeadersPolicyXSSProtection& value) { m_xSSProtectionHasBeenSet = true; m_xSSProtection = value; }
59 inline void SetXSSProtection(ResponseHeadersPolicyXSSProtection&& value) { m_xSSProtectionHasBeenSet = true; m_xSSProtection = std::move(value); }
63
65
72 inline const ResponseHeadersPolicyFrameOptions& GetFrameOptions() const{ return m_frameOptions; }
73 inline bool FrameOptionsHasBeenSet() const { return m_frameOptionsHasBeenSet; }
74 inline void SetFrameOptions(const ResponseHeadersPolicyFrameOptions& value) { m_frameOptionsHasBeenSet = true; m_frameOptions = value; }
75 inline void SetFrameOptions(ResponseHeadersPolicyFrameOptions&& value) { m_frameOptionsHasBeenSet = true; m_frameOptions = std::move(value); }
79
81
88 inline const ResponseHeadersPolicyReferrerPolicy& GetReferrerPolicy() const{ return m_referrerPolicy; }
89 inline bool ReferrerPolicyHasBeenSet() const { return m_referrerPolicyHasBeenSet; }
90 inline void SetReferrerPolicy(const ResponseHeadersPolicyReferrerPolicy& value) { m_referrerPolicyHasBeenSet = true; m_referrerPolicy = value; }
91 inline void SetReferrerPolicy(ResponseHeadersPolicyReferrerPolicy&& value) { m_referrerPolicyHasBeenSet = true; m_referrerPolicy = std::move(value); }
95
97
105 inline const ResponseHeadersPolicyContentSecurityPolicy& GetContentSecurityPolicy() const{ return m_contentSecurityPolicy; }
106 inline bool ContentSecurityPolicyHasBeenSet() const { return m_contentSecurityPolicyHasBeenSet; }
107 inline void SetContentSecurityPolicy(const ResponseHeadersPolicyContentSecurityPolicy& value) { m_contentSecurityPolicyHasBeenSet = true; m_contentSecurityPolicy = value; }
108 inline void SetContentSecurityPolicy(ResponseHeadersPolicyContentSecurityPolicy&& value) { m_contentSecurityPolicyHasBeenSet = true; m_contentSecurityPolicy = std::move(value); }
112
114
122 inline const ResponseHeadersPolicyContentTypeOptions& GetContentTypeOptions() const{ return m_contentTypeOptions; }
123 inline bool ContentTypeOptionsHasBeenSet() const { return m_contentTypeOptionsHasBeenSet; }
124 inline void SetContentTypeOptions(const ResponseHeadersPolicyContentTypeOptions& value) { m_contentTypeOptionsHasBeenSet = true; m_contentTypeOptions = value; }
125 inline void SetContentTypeOptions(ResponseHeadersPolicyContentTypeOptions&& value) { m_contentTypeOptionsHasBeenSet = true; m_contentTypeOptions = std::move(value); }
129
131
141 inline const ResponseHeadersPolicyStrictTransportSecurity& GetStrictTransportSecurity() const{ return m_strictTransportSecurity; }
142 inline bool StrictTransportSecurityHasBeenSet() const { return m_strictTransportSecurityHasBeenSet; }
143 inline void SetStrictTransportSecurity(const ResponseHeadersPolicyStrictTransportSecurity& value) { m_strictTransportSecurityHasBeenSet = true; m_strictTransportSecurity = value; }
144 inline void SetStrictTransportSecurity(ResponseHeadersPolicyStrictTransportSecurity&& value) { m_strictTransportSecurityHasBeenSet = true; m_strictTransportSecurity = std::move(value); }
148 private:
149
151 bool m_xSSProtectionHasBeenSet = false;
152
154 bool m_frameOptionsHasBeenSet = false;
155
157 bool m_referrerPolicyHasBeenSet = false;
158
159 ResponseHeadersPolicyContentSecurityPolicy m_contentSecurityPolicy;
160 bool m_contentSecurityPolicyHasBeenSet = false;
161
162 ResponseHeadersPolicyContentTypeOptions m_contentTypeOptions;
163 bool m_contentTypeOptionsHasBeenSet = false;
164
165 ResponseHeadersPolicyStrictTransportSecurity m_strictTransportSecurity;
166 bool m_strictTransportSecurityHasBeenSet = false;
167 };
168
169} // namespace Model
170} // namespace CloudFront
171} // namespace Aws
ResponseHeadersPolicySecurityHeadersConfig & WithReferrerPolicy(ResponseHeadersPolicyReferrerPolicy &&value)
ResponseHeadersPolicySecurityHeadersConfig & WithXSSProtection(const ResponseHeadersPolicyXSSProtection &value)
ResponseHeadersPolicySecurityHeadersConfig & WithStrictTransportSecurity(const ResponseHeadersPolicyStrictTransportSecurity &value)
ResponseHeadersPolicySecurityHeadersConfig & WithContentTypeOptions(const ResponseHeadersPolicyContentTypeOptions &value)
void SetStrictTransportSecurity(ResponseHeadersPolicyStrictTransportSecurity &&value)
ResponseHeadersPolicySecurityHeadersConfig & WithStrictTransportSecurity(ResponseHeadersPolicyStrictTransportSecurity &&value)
ResponseHeadersPolicySecurityHeadersConfig & WithContentSecurityPolicy(const ResponseHeadersPolicyContentSecurityPolicy &value)
AWS_CLOUDFRONT_API ResponseHeadersPolicySecurityHeadersConfig & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
ResponseHeadersPolicySecurityHeadersConfig & WithReferrerPolicy(const ResponseHeadersPolicyReferrerPolicy &value)
AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
AWS_CLOUDFRONT_API ResponseHeadersPolicySecurityHeadersConfig(const Aws::Utils::Xml::XmlNode &xmlNode)
const ResponseHeadersPolicyStrictTransportSecurity & GetStrictTransportSecurity() const
ResponseHeadersPolicySecurityHeadersConfig & WithXSSProtection(ResponseHeadersPolicyXSSProtection &&value)
ResponseHeadersPolicySecurityHeadersConfig & WithContentSecurityPolicy(ResponseHeadersPolicyContentSecurityPolicy &&value)
ResponseHeadersPolicySecurityHeadersConfig & WithFrameOptions(const ResponseHeadersPolicyFrameOptions &value)
ResponseHeadersPolicySecurityHeadersConfig & WithContentTypeOptions(ResponseHeadersPolicyContentTypeOptions &&value)
ResponseHeadersPolicySecurityHeadersConfig & WithFrameOptions(ResponseHeadersPolicyFrameOptions &&value)
void SetContentSecurityPolicy(const ResponseHeadersPolicyContentSecurityPolicy &value)
const ResponseHeadersPolicyContentSecurityPolicy & GetContentSecurityPolicy() const
void SetStrictTransportSecurity(const ResponseHeadersPolicyStrictTransportSecurity &value)