/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Contains a cache policy.See Also:
AWS
* API Reference
The type of cache policy, either managed
(created by Amazon Web
* Services) or custom
(created in this Amazon Web Services
* account).
The type of cache policy, either managed
(created by Amazon Web
* Services) or custom
(created in this Amazon Web Services
* account).
The type of cache policy, either managed
(created by Amazon Web
* Services) or custom
(created in this Amazon Web Services
* account).
The type of cache policy, either managed
(created by Amazon Web
* Services) or custom
(created in this Amazon Web Services
* account).
The type of cache policy, either managed
(created by Amazon Web
* Services) or custom
(created in this Amazon Web Services
* account).
The type of cache policy, either managed
(created by Amazon Web
* Services) or custom
(created in this Amazon Web Services
* account).
The cache policy.
*/ inline const CachePolicy& GetCachePolicy() const{ return m_cachePolicy; } /** *The cache policy.
*/ inline bool CachePolicyHasBeenSet() const { return m_cachePolicyHasBeenSet; } /** *The cache policy.
*/ inline void SetCachePolicy(const CachePolicy& value) { m_cachePolicyHasBeenSet = true; m_cachePolicy = value; } /** *The cache policy.
*/ inline void SetCachePolicy(CachePolicy&& value) { m_cachePolicyHasBeenSet = true; m_cachePolicy = std::move(value); } /** *The cache policy.
*/ inline CachePolicySummary& WithCachePolicy(const CachePolicy& value) { SetCachePolicy(value); return *this;} /** *The cache policy.
*/ inline CachePolicySummary& WithCachePolicy(CachePolicy&& value) { SetCachePolicy(std::move(value)); return *this;} private: CachePolicyType m_type; bool m_typeHasBeenSet = false; CachePolicy m_cachePolicy; bool m_cachePolicyHasBeenSet = false; }; } // namespace Model } // namespace CloudFront } // namespace Aws