AWS SDK for C++  1.9.16
AWS SDK for C++
CachePolicy.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Xml
18 {
19  class XmlNode;
20 } // namespace Xml
21 } // namespace Utils
22 namespace CloudFront
23 {
24 namespace Model
25 {
26 
44  {
45  public:
49 
50  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
51 
52 
56  inline const Aws::String& GetId() const{ return m_id; }
57 
61  inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
62 
66  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
67 
71  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
72 
76  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
77 
81  inline CachePolicy& WithId(const Aws::String& value) { SetId(value); return *this;}
82 
86  inline CachePolicy& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
87 
91  inline CachePolicy& WithId(const char* value) { SetId(value); return *this;}
92 
93 
97  inline const Aws::Utils::DateTime& GetLastModifiedTime() const{ return m_lastModifiedTime; }
98 
102  inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
103 
107  inline void SetLastModifiedTime(const Aws::Utils::DateTime& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = value; }
108 
112  inline void SetLastModifiedTime(Aws::Utils::DateTime&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::move(value); }
113 
117  inline CachePolicy& WithLastModifiedTime(const Aws::Utils::DateTime& value) { SetLastModifiedTime(value); return *this;}
118 
122  inline CachePolicy& WithLastModifiedTime(Aws::Utils::DateTime&& value) { SetLastModifiedTime(std::move(value)); return *this;}
123 
124 
128  inline const CachePolicyConfig& GetCachePolicyConfig() const{ return m_cachePolicyConfig; }
129 
133  inline bool CachePolicyConfigHasBeenSet() const { return m_cachePolicyConfigHasBeenSet; }
134 
138  inline void SetCachePolicyConfig(const CachePolicyConfig& value) { m_cachePolicyConfigHasBeenSet = true; m_cachePolicyConfig = value; }
139 
143  inline void SetCachePolicyConfig(CachePolicyConfig&& value) { m_cachePolicyConfigHasBeenSet = true; m_cachePolicyConfig = std::move(value); }
144 
148  inline CachePolicy& WithCachePolicyConfig(const CachePolicyConfig& value) { SetCachePolicyConfig(value); return *this;}
149 
153  inline CachePolicy& WithCachePolicyConfig(CachePolicyConfig&& value) { SetCachePolicyConfig(std::move(value)); return *this;}
154 
155  private:
156 
157  Aws::String m_id;
158  bool m_idHasBeenSet;
159 
160  Aws::Utils::DateTime m_lastModifiedTime;
161  bool m_lastModifiedTimeHasBeenSet;
162 
163  CachePolicyConfig m_cachePolicyConfig;
164  bool m_cachePolicyConfigHasBeenSet;
165  };
166 
167 } // namespace Model
168 } // namespace CloudFront
169 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::CloudFront::Model::CachePolicy::SetCachePolicyConfig
void SetCachePolicyConfig(CachePolicyConfig &&value)
Definition: CachePolicy.h:143
Aws::CloudFront::Model::CachePolicy::CachePolicyConfigHasBeenSet
bool CachePolicyConfigHasBeenSet() const
Definition: CachePolicy.h:133
Aws::CloudFront::Model::CachePolicy::LastModifiedTimeHasBeenSet
bool LastModifiedTimeHasBeenSet() const
Definition: CachePolicy.h:102
Aws::CloudFront::Model::CachePolicy::SetId
void SetId(const Aws::String &value)
Definition: CachePolicy.h:66
Aws::CloudFront::Model::CachePolicy::GetId
const Aws::String & GetId() const
Definition: CachePolicy.h:56
Aws::CloudFront::Model::CachePolicy::GetCachePolicyConfig
const CachePolicyConfig & GetCachePolicyConfig() const
Definition: CachePolicy.h:128
Aws::CloudFront::Model::CachePolicy::WithLastModifiedTime
CachePolicy & WithLastModifiedTime(Aws::Utils::DateTime &&value)
Definition: CachePolicy.h:122
DateTime.h
Aws::CloudFront::Model::CachePolicy::WithId
CachePolicy & WithId(const Aws::String &value)
Definition: CachePolicy.h:81
Aws::CloudFront::Model::CachePolicy::WithLastModifiedTime
CachePolicy & WithLastModifiedTime(const Aws::Utils::DateTime &value)
Definition: CachePolicy.h:117
Aws::CloudFront::Model::CachePolicy::SetLastModifiedTime
void SetLastModifiedTime(Aws::Utils::DateTime &&value)
Definition: CachePolicy.h:112
Aws::CloudFront::Model::CachePolicy::WithCachePolicyConfig
CachePolicy & WithCachePolicyConfig(const CachePolicyConfig &value)
Definition: CachePolicy.h:148
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::CloudFront::Model::CachePolicy::SetCachePolicyConfig
void SetCachePolicyConfig(const CachePolicyConfig &value)
Definition: CachePolicy.h:138
Aws::CloudFront::Model::CachePolicy::CachePolicy
CachePolicy(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::CloudFront::Model::CachePolicy::SetId
void SetId(Aws::String &&value)
Definition: CachePolicy.h:71
AWSString.h
Aws::CloudFront::Model::CachePolicy::WithCachePolicyConfig
CachePolicy & WithCachePolicyConfig(CachePolicyConfig &&value)
Definition: CachePolicy.h:153
AWS_CLOUDFRONT_API
#define AWS_CLOUDFRONT_API
Definition: CloudFront_EXPORTS.h:28
Aws::CloudFront::Model::CachePolicy::WithId
CachePolicy & WithId(const char *value)
Definition: CachePolicy.h:91
Aws::CloudFront::Model::CachePolicyConfig
Definition: CachePolicyConfig.h:43
Aws::CloudFront::Model::CachePolicy::SetLastModifiedTime
void SetLastModifiedTime(const Aws::Utils::DateTime &value)
Definition: CachePolicy.h:107
CloudFront_EXPORTS.h
Aws::CloudFront::Model::CachePolicy::GetLastModifiedTime
const Aws::Utils::DateTime & GetLastModifiedTime() const
Definition: CachePolicy.h:97
Aws::CloudFront::Model::CachePolicy::CachePolicy
CachePolicy()
Aws::CloudFront::Model::CachePolicy::operator=
CachePolicy & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::CloudFront::Model::CachePolicy::IdHasBeenSet
bool IdHasBeenSet() const
Definition: CachePolicy.h:61
Aws
Definition: AccessManagementClient.h:15
Aws::CloudFront::Model::CachePolicy::SetId
void SetId(const char *value)
Definition: CachePolicy.h:76
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CloudFront::Model::CachePolicy::WithId
CachePolicy & WithId(Aws::String &&value)
Definition: CachePolicy.h:86
Aws::CloudFront::Model::CachePolicy::AddToNode
void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
Aws::CloudFront::Model::CachePolicy
Definition: CachePolicy.h:44
CachePolicyConfig.h