This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/CachePolicySummary.h

120 lines
3.5 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cloudfront/CloudFront_EXPORTS.h>
#include <aws/cloudfront/model/CachePolicyType.h>
#include <aws/cloudfront/model/CachePolicy.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Xml
{
class XmlNode;
} // namespace Xml
} // namespace Utils
namespace CloudFront
{
namespace Model
{
/**
* <p>Contains a cache policy.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CachePolicySummary">AWS
* API Reference</a></p>
*/
class AWS_CLOUDFRONT_API CachePolicySummary
{
public:
CachePolicySummary();
CachePolicySummary(const Aws::Utils::Xml::XmlNode& xmlNode);
CachePolicySummary& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
/**
* <p>The type of cache policy, either <code>managed</code> (created by AWS) or
* <code>custom</code> (created in this AWS account).</p>
*/
inline const CachePolicyType& GetType() const{ return m_type; }
/**
* <p>The type of cache policy, either <code>managed</code> (created by AWS) or
* <code>custom</code> (created in this AWS account).</p>
*/
inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
/**
* <p>The type of cache policy, either <code>managed</code> (created by AWS) or
* <code>custom</code> (created in this AWS account).</p>
*/
inline void SetType(const CachePolicyType& value) { m_typeHasBeenSet = true; m_type = value; }
/**
* <p>The type of cache policy, either <code>managed</code> (created by AWS) or
* <code>custom</code> (created in this AWS account).</p>
*/
inline void SetType(CachePolicyType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
/**
* <p>The type of cache policy, either <code>managed</code> (created by AWS) or
* <code>custom</code> (created in this AWS account).</p>
*/
inline CachePolicySummary& WithType(const CachePolicyType& value) { SetType(value); return *this;}
/**
* <p>The type of cache policy, either <code>managed</code> (created by AWS) or
* <code>custom</code> (created in this AWS account).</p>
*/
inline CachePolicySummary& WithType(CachePolicyType&& value) { SetType(std::move(value)); return *this;}
/**
* <p>The cache policy.</p>
*/
inline const CachePolicy& GetCachePolicy() const{ return m_cachePolicy; }
/**
* <p>The cache policy.</p>
*/
inline bool CachePolicyHasBeenSet() const { return m_cachePolicyHasBeenSet; }
/**
* <p>The cache policy.</p>
*/
inline void SetCachePolicy(const CachePolicy& value) { m_cachePolicyHasBeenSet = true; m_cachePolicy = value; }
/**
* <p>The cache policy.</p>
*/
inline void SetCachePolicy(CachePolicy&& value) { m_cachePolicyHasBeenSet = true; m_cachePolicy = std::move(value); }
/**
* <p>The cache policy.</p>
*/
inline CachePolicySummary& WithCachePolicy(const CachePolicy& value) { SetCachePolicy(value); return *this;}
/**
* <p>The cache policy.</p>
*/
inline CachePolicySummary& WithCachePolicy(CachePolicy&& value) { SetCachePolicy(std::move(value)); return *this;}
private:
CachePolicyType m_type;
bool m_typeHasBeenSet;
CachePolicy m_cachePolicy;
bool m_cachePolicyHasBeenSet;
};
} // namespace Model
} // namespace CloudFront
} // namespace Aws