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

Contains an origin request policy.

See Also:

AWS * API Reference

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

The type of origin request policy, either managed (created by * Amazon Web Services) or custom (created in this Amazon Web Services * account).

*/ inline const OriginRequestPolicyType& GetType() const{ return m_type; } /** *

The type of origin request policy, either managed (created by * Amazon Web Services) or custom (created in this Amazon Web Services * account).

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The type of origin request policy, either managed (created by * Amazon Web Services) or custom (created in this Amazon Web Services * account).

*/ inline void SetType(const OriginRequestPolicyType& value) { m_typeHasBeenSet = true; m_type = value; } /** *

The type of origin request policy, either managed (created by * Amazon Web Services) or custom (created in this Amazon Web Services * account).

*/ inline void SetType(OriginRequestPolicyType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

The type of origin request policy, either managed (created by * Amazon Web Services) or custom (created in this Amazon Web Services * account).

*/ inline OriginRequestPolicySummary& WithType(const OriginRequestPolicyType& value) { SetType(value); return *this;} /** *

The type of origin request policy, either managed (created by * Amazon Web Services) or custom (created in this Amazon Web Services * account).

*/ inline OriginRequestPolicySummary& WithType(OriginRequestPolicyType&& value) { SetType(std::move(value)); return *this;} /** *

The origin request policy.

*/ inline const OriginRequestPolicy& GetOriginRequestPolicy() const{ return m_originRequestPolicy; } /** *

The origin request policy.

*/ inline bool OriginRequestPolicyHasBeenSet() const { return m_originRequestPolicyHasBeenSet; } /** *

The origin request policy.

*/ inline void SetOriginRequestPolicy(const OriginRequestPolicy& value) { m_originRequestPolicyHasBeenSet = true; m_originRequestPolicy = value; } /** *

The origin request policy.

*/ inline void SetOriginRequestPolicy(OriginRequestPolicy&& value) { m_originRequestPolicyHasBeenSet = true; m_originRequestPolicy = std::move(value); } /** *

The origin request policy.

*/ inline OriginRequestPolicySummary& WithOriginRequestPolicy(const OriginRequestPolicy& value) { SetOriginRequestPolicy(value); return *this;} /** *

The origin request policy.

*/ inline OriginRequestPolicySummary& WithOriginRequestPolicy(OriginRequestPolicy&& value) { SetOriginRequestPolicy(std::move(value)); return *this;} private: OriginRequestPolicyType m_type; bool m_typeHasBeenSet = false; OriginRequestPolicy m_originRequestPolicy; bool m_originRequestPolicyHasBeenSet = false; }; } // namespace Model } // namespace CloudFront } // namespace Aws