/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Contains an origin request policy.See Also:
AWS
* API Reference
The type of origin request policy, either managed
(created by
* Amazon Web Services) or custom
(created in this Amazon Web Services
* account).
The type of origin request policy, either managed
(created by
* Amazon Web Services) or custom
(created in this Amazon Web Services
* account).
The type of origin request policy, either managed
(created by
* Amazon Web Services) or custom
(created in this Amazon Web Services
* account).
The type of origin request policy, either managed
(created by
* Amazon Web Services) or custom
(created in this Amazon Web Services
* account).
The type of origin request policy, either managed
(created by
* Amazon Web Services) or custom
(created in this Amazon Web Services
* account).
The type of origin request policy, either managed
(created by
* Amazon Web Services) or custom
(created in this Amazon Web Services
* account).
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