AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CachePolicy.h
1
6#pragma once
7#include <aws/cloudfront/CloudFront_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/cloudfront/model/CachePolicyConfig.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace CloudFront
23{
24namespace Model
25{
26
44 {
45 public:
46 AWS_CLOUDFRONT_API CachePolicy();
47 AWS_CLOUDFRONT_API CachePolicy(const Aws::Utils::Xml::XmlNode& xmlNode);
48 AWS_CLOUDFRONT_API CachePolicy& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
49
50 AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
51
52
54
57 inline const Aws::String& GetId() const{ return m_id; }
58 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
59 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
60 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
61 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
62 inline CachePolicy& WithId(const Aws::String& value) { SetId(value); return *this;}
63 inline CachePolicy& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
64 inline CachePolicy& WithId(const char* value) { SetId(value); return *this;}
66
68
71 inline const Aws::Utils::DateTime& GetLastModifiedTime() const{ return m_lastModifiedTime; }
72 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
73 inline void SetLastModifiedTime(const Aws::Utils::DateTime& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = value; }
74 inline void SetLastModifiedTime(Aws::Utils::DateTime&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::move(value); }
75 inline CachePolicy& WithLastModifiedTime(const Aws::Utils::DateTime& value) { SetLastModifiedTime(value); return *this;}
76 inline CachePolicy& WithLastModifiedTime(Aws::Utils::DateTime&& value) { SetLastModifiedTime(std::move(value)); return *this;}
78
80
83 inline const CachePolicyConfig& GetCachePolicyConfig() const{ return m_cachePolicyConfig; }
84 inline bool CachePolicyConfigHasBeenSet() const { return m_cachePolicyConfigHasBeenSet; }
85 inline void SetCachePolicyConfig(const CachePolicyConfig& value) { m_cachePolicyConfigHasBeenSet = true; m_cachePolicyConfig = value; }
86 inline void SetCachePolicyConfig(CachePolicyConfig&& value) { m_cachePolicyConfigHasBeenSet = true; m_cachePolicyConfig = std::move(value); }
87 inline CachePolicy& WithCachePolicyConfig(const CachePolicyConfig& value) { SetCachePolicyConfig(value); return *this;}
88 inline CachePolicy& WithCachePolicyConfig(CachePolicyConfig&& value) { SetCachePolicyConfig(std::move(value)); return *this;}
90 private:
91
92 Aws::String m_id;
93 bool m_idHasBeenSet = false;
94
95 Aws::Utils::DateTime m_lastModifiedTime;
96 bool m_lastModifiedTimeHasBeenSet = false;
97
98 CachePolicyConfig m_cachePolicyConfig;
99 bool m_cachePolicyConfigHasBeenSet = false;
100 };
101
102} // namespace Model
103} // namespace CloudFront
104} // namespace Aws
AWS_CLOUDFRONT_API CachePolicy()
CachePolicy & WithLastModifiedTime(Aws::Utils::DateTime &&value)
Definition CachePolicy.h:76
void SetId(const Aws::String &value)
Definition CachePolicy.h:59
CachePolicy & WithLastModifiedTime(const Aws::Utils::DateTime &value)
Definition CachePolicy.h:75
AWS_CLOUDFRONT_API CachePolicy(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::Utils::DateTime & GetLastModifiedTime() const
Definition CachePolicy.h:71
void SetLastModifiedTime(Aws::Utils::DateTime &&value)
Definition CachePolicy.h:74
void SetId(Aws::String &&value)
Definition CachePolicy.h:60
CachePolicy & WithId(const Aws::String &value)
Definition CachePolicy.h:62
void SetId(const char *value)
Definition CachePolicy.h:61
CachePolicy & WithId(Aws::String &&value)
Definition CachePolicy.h:63
void SetCachePolicyConfig(CachePolicyConfig &&value)
Definition CachePolicy.h:86
AWS_CLOUDFRONT_API CachePolicy & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
CachePolicy & WithCachePolicyConfig(CachePolicyConfig &&value)
Definition CachePolicy.h:88
CachePolicy & WithCachePolicyConfig(const CachePolicyConfig &value)
Definition CachePolicy.h:87
const Aws::String & GetId() const
Definition CachePolicy.h:57
CachePolicy & WithId(const char *value)
Definition CachePolicy.h:64
const CachePolicyConfig & GetCachePolicyConfig() const
Definition CachePolicy.h:83
void SetCachePolicyConfig(const CachePolicyConfig &value)
Definition CachePolicy.h:85
AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
void SetLastModifiedTime(const Aws::Utils::DateTime &value)
Definition CachePolicy.h:73
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String