AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CachePolicySummary.h
1
6#pragma once
7#include <aws/cloudfront/CloudFront_EXPORTS.h>
8#include <aws/cloudfront/model/CachePolicyType.h>
9#include <aws/cloudfront/model/CachePolicy.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace CloudFront
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_CLOUDFRONT_API CachePolicySummary();
35 AWS_CLOUDFRONT_API CachePolicySummary(const Aws::Utils::Xml::XmlNode& xmlNode);
36 AWS_CLOUDFRONT_API CachePolicySummary& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
37
38 AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
39
40
42
47 inline const CachePolicyType& GetType() const{ return m_type; }
48 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
49 inline void SetType(const CachePolicyType& value) { m_typeHasBeenSet = true; m_type = value; }
50 inline void SetType(CachePolicyType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
51 inline CachePolicySummary& WithType(const CachePolicyType& value) { SetType(value); return *this;}
52 inline CachePolicySummary& WithType(CachePolicyType&& value) { SetType(std::move(value)); return *this;}
54
56
59 inline const CachePolicy& GetCachePolicy() const{ return m_cachePolicy; }
60 inline bool CachePolicyHasBeenSet() const { return m_cachePolicyHasBeenSet; }
61 inline void SetCachePolicy(const CachePolicy& value) { m_cachePolicyHasBeenSet = true; m_cachePolicy = value; }
62 inline void SetCachePolicy(CachePolicy&& value) { m_cachePolicyHasBeenSet = true; m_cachePolicy = std::move(value); }
63 inline CachePolicySummary& WithCachePolicy(const CachePolicy& value) { SetCachePolicy(value); return *this;}
64 inline CachePolicySummary& WithCachePolicy(CachePolicy&& value) { SetCachePolicy(std::move(value)); return *this;}
66 private:
67
68 CachePolicyType m_type;
69 bool m_typeHasBeenSet = false;
70
71 CachePolicy m_cachePolicy;
72 bool m_cachePolicyHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace CloudFront
77} // namespace Aws
CachePolicySummary & WithType(CachePolicyType &&value)
AWS_CLOUDFRONT_API CachePolicySummary & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_CLOUDFRONT_API CachePolicySummary(const Aws::Utils::Xml::XmlNode &xmlNode)
CachePolicySummary & WithCachePolicy(CachePolicy &&value)
const CachePolicyType & GetType() const
void SetCachePolicy(const CachePolicy &value)
AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
CachePolicySummary & WithCachePolicy(const CachePolicy &value)
void SetType(const CachePolicyType &value)
CachePolicySummary & WithType(const CachePolicyType &value)