/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace CloudFront { namespace Model { /** *

Determines whether CloudFront includes the X-Frame-Options HTTP * response header and the header's value.

For more information about the * X-Frame-Options HTTP response header, see X-Frame-Options * in the MDN Web Docs.

See Also:

AWS * API Reference

*/ class ResponseHeadersPolicyFrameOptions { public: AWS_CLOUDFRONT_API ResponseHeadersPolicyFrameOptions(); AWS_CLOUDFRONT_API ResponseHeadersPolicyFrameOptions(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_CLOUDFRONT_API ResponseHeadersPolicyFrameOptions& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const; /** *

A Boolean that determines whether CloudFront overrides the * X-Frame-Options HTTP response header received from the origin with * the one specified in this response headers policy.

*/ inline bool GetOverride() const{ return m_override; } /** *

A Boolean that determines whether CloudFront overrides the * X-Frame-Options HTTP response header received from the origin with * the one specified in this response headers policy.

*/ inline bool OverrideHasBeenSet() const { return m_overrideHasBeenSet; } /** *

A Boolean that determines whether CloudFront overrides the * X-Frame-Options HTTP response header received from the origin with * the one specified in this response headers policy.

*/ inline void SetOverride(bool value) { m_overrideHasBeenSet = true; m_override = value; } /** *

A Boolean that determines whether CloudFront overrides the * X-Frame-Options HTTP response header received from the origin with * the one specified in this response headers policy.

*/ inline ResponseHeadersPolicyFrameOptions& WithOverride(bool value) { SetOverride(value); return *this;} /** *

The value of the X-Frame-Options HTTP response header. Valid * values are DENY and SAMEORIGIN.

For more * information about these values, see X-Frame-Options * in the MDN Web Docs.

*/ inline const FrameOptionsList& GetFrameOption() const{ return m_frameOption; } /** *

The value of the X-Frame-Options HTTP response header. Valid * values are DENY and SAMEORIGIN.

For more * information about these values, see X-Frame-Options * in the MDN Web Docs.

*/ inline bool FrameOptionHasBeenSet() const { return m_frameOptionHasBeenSet; } /** *

The value of the X-Frame-Options HTTP response header. Valid * values are DENY and SAMEORIGIN.

For more * information about these values, see X-Frame-Options * in the MDN Web Docs.

*/ inline void SetFrameOption(const FrameOptionsList& value) { m_frameOptionHasBeenSet = true; m_frameOption = value; } /** *

The value of the X-Frame-Options HTTP response header. Valid * values are DENY and SAMEORIGIN.

For more * information about these values, see X-Frame-Options * in the MDN Web Docs.

*/ inline void SetFrameOption(FrameOptionsList&& value) { m_frameOptionHasBeenSet = true; m_frameOption = std::move(value); } /** *

The value of the X-Frame-Options HTTP response header. Valid * values are DENY and SAMEORIGIN.

For more * information about these values, see X-Frame-Options * in the MDN Web Docs.

*/ inline ResponseHeadersPolicyFrameOptions& WithFrameOption(const FrameOptionsList& value) { SetFrameOption(value); return *this;} /** *

The value of the X-Frame-Options HTTP response header. Valid * values are DENY and SAMEORIGIN.

For more * information about these values, see X-Frame-Options * in the MDN Web Docs.

*/ inline ResponseHeadersPolicyFrameOptions& WithFrameOption(FrameOptionsList&& value) { SetFrameOption(std::move(value)); return *this;} private: bool m_override; bool m_overrideHasBeenSet = false; FrameOptionsList m_frameOption; bool m_frameOptionHasBeenSet = false; }; } // namespace Model } // namespace CloudFront } // namespace Aws