AWS SDK for C++  1.9.16
AWS SDK for C++
CachePolicyConfig.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Xml
17 {
18  class XmlNode;
19 } // namespace Xml
20 } // namespace Utils
21 namespace CloudFront
22 {
23 namespace Model
24 {
25 
43  {
44  public:
48 
49  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
50 
51 
56  inline const Aws::String& GetComment() const{ return m_comment; }
57 
62  inline bool CommentHasBeenSet() const { return m_commentHasBeenSet; }
63 
68  inline void SetComment(const Aws::String& value) { m_commentHasBeenSet = true; m_comment = value; }
69 
74  inline void SetComment(Aws::String&& value) { m_commentHasBeenSet = true; m_comment = std::move(value); }
75 
80  inline void SetComment(const char* value) { m_commentHasBeenSet = true; m_comment.assign(value); }
81 
86  inline CachePolicyConfig& WithComment(const Aws::String& value) { SetComment(value); return *this;}
87 
92  inline CachePolicyConfig& WithComment(Aws::String&& value) { SetComment(std::move(value)); return *this;}
93 
98  inline CachePolicyConfig& WithComment(const char* value) { SetComment(value); return *this;}
99 
100 
104  inline const Aws::String& GetName() const{ return m_name; }
105 
109  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
110 
114  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
115 
119  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
120 
124  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
125 
129  inline CachePolicyConfig& WithName(const Aws::String& value) { SetName(value); return *this;}
130 
134  inline CachePolicyConfig& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
135 
139  inline CachePolicyConfig& WithName(const char* value) { SetName(value); return *this;}
140 
141 
155  inline long long GetDefaultTTL() const{ return m_defaultTTL; }
156 
170  inline bool DefaultTTLHasBeenSet() const { return m_defaultTTLHasBeenSet; }
171 
185  inline void SetDefaultTTL(long long value) { m_defaultTTLHasBeenSet = true; m_defaultTTL = value; }
186 
200  inline CachePolicyConfig& WithDefaultTTL(long long value) { SetDefaultTTL(value); return *this;}
201 
202 
216  inline long long GetMaxTTL() const{ return m_maxTTL; }
217 
231  inline bool MaxTTLHasBeenSet() const { return m_maxTTLHasBeenSet; }
232 
246  inline void SetMaxTTL(long long value) { m_maxTTLHasBeenSet = true; m_maxTTL = value; }
247 
261  inline CachePolicyConfig& WithMaxTTL(long long value) { SetMaxTTL(value); return *this;}
262 
263 
272  inline long long GetMinTTL() const{ return m_minTTL; }
273 
282  inline bool MinTTLHasBeenSet() const { return m_minTTLHasBeenSet; }
283 
292  inline void SetMinTTL(long long value) { m_minTTLHasBeenSet = true; m_minTTL = value; }
293 
302  inline CachePolicyConfig& WithMinTTL(long long value) { SetMinTTL(value); return *this;}
303 
304 
310  inline const ParametersInCacheKeyAndForwardedToOrigin& GetParametersInCacheKeyAndForwardedToOrigin() const{ return m_parametersInCacheKeyAndForwardedToOrigin; }
311 
317  inline bool ParametersInCacheKeyAndForwardedToOriginHasBeenSet() const { return m_parametersInCacheKeyAndForwardedToOriginHasBeenSet; }
318 
324  inline void SetParametersInCacheKeyAndForwardedToOrigin(const ParametersInCacheKeyAndForwardedToOrigin& value) { m_parametersInCacheKeyAndForwardedToOriginHasBeenSet = true; m_parametersInCacheKeyAndForwardedToOrigin = value; }
325 
331  inline void SetParametersInCacheKeyAndForwardedToOrigin(ParametersInCacheKeyAndForwardedToOrigin&& value) { m_parametersInCacheKeyAndForwardedToOriginHasBeenSet = true; m_parametersInCacheKeyAndForwardedToOrigin = std::move(value); }
332 
338  inline CachePolicyConfig& WithParametersInCacheKeyAndForwardedToOrigin(const ParametersInCacheKeyAndForwardedToOrigin& value) { SetParametersInCacheKeyAndForwardedToOrigin(value); return *this;}
339 
345  inline CachePolicyConfig& WithParametersInCacheKeyAndForwardedToOrigin(ParametersInCacheKeyAndForwardedToOrigin&& value) { SetParametersInCacheKeyAndForwardedToOrigin(std::move(value)); return *this;}
346 
347  private:
348 
349  Aws::String m_comment;
350  bool m_commentHasBeenSet;
351 
352  Aws::String m_name;
353  bool m_nameHasBeenSet;
354 
355  long long m_defaultTTL;
356  bool m_defaultTTLHasBeenSet;
357 
358  long long m_maxTTL;
359  bool m_maxTTLHasBeenSet;
360 
361  long long m_minTTL;
362  bool m_minTTLHasBeenSet;
363 
364  ParametersInCacheKeyAndForwardedToOrigin m_parametersInCacheKeyAndForwardedToOrigin;
365  bool m_parametersInCacheKeyAndForwardedToOriginHasBeenSet;
366  };
367 
368 } // namespace Model
369 } // namespace CloudFront
370 } // namespace Aws
Aws::CloudFront::Model::CachePolicyConfig::NameHasBeenSet
bool NameHasBeenSet() const
Definition: CachePolicyConfig.h:109
Aws::CloudFront::Model::CachePolicyConfig::SetName
void SetName(const char *value)
Definition: CachePolicyConfig.h:124
Aws::CloudFront::Model::CachePolicyConfig::WithDefaultTTL
CachePolicyConfig & WithDefaultTTL(long long value)
Definition: CachePolicyConfig.h:200
Aws::CloudFront::Model::CachePolicyConfig::WithComment
CachePolicyConfig & WithComment(Aws::String &&value)
Definition: CachePolicyConfig.h:92
Aws::CloudFront::Model::CachePolicyConfig::GetMaxTTL
long long GetMaxTTL() const
Definition: CachePolicyConfig.h:216
Aws::CloudFront::Model::ParametersInCacheKeyAndForwardedToOrigin
Definition: ParametersInCacheKeyAndForwardedToOrigin.h:41
Aws::CloudFront::Model::CachePolicyConfig::DefaultTTLHasBeenSet
bool DefaultTTLHasBeenSet() const
Definition: CachePolicyConfig.h:170
Aws::CloudFront::Model::CachePolicyConfig::GetDefaultTTL
long long GetDefaultTTL() const
Definition: CachePolicyConfig.h:155
Aws::CloudFront::Model::CachePolicyConfig::SetParametersInCacheKeyAndForwardedToOrigin
void SetParametersInCacheKeyAndForwardedToOrigin(const ParametersInCacheKeyAndForwardedToOrigin &value)
Definition: CachePolicyConfig.h:324
Aws::CloudFront::Model::CachePolicyConfig::WithMaxTTL
CachePolicyConfig & WithMaxTTL(long long value)
Definition: CachePolicyConfig.h:261
Aws::CloudFront::Model::CachePolicyConfig::CommentHasBeenSet
bool CommentHasBeenSet() const
Definition: CachePolicyConfig.h:62
Aws::CloudFront::Model::CachePolicyConfig::SetName
void SetName(Aws::String &&value)
Definition: CachePolicyConfig.h:119
Aws::CloudFront::Model::CachePolicyConfig::GetMinTTL
long long GetMinTTL() const
Definition: CachePolicyConfig.h:272
Aws::CloudFront::Model::CachePolicyConfig::ParametersInCacheKeyAndForwardedToOriginHasBeenSet
bool ParametersInCacheKeyAndForwardedToOriginHasBeenSet() const
Definition: CachePolicyConfig.h:317
Aws::CloudFront::Model::CachePolicyConfig::MinTTLHasBeenSet
bool MinTTLHasBeenSet() const
Definition: CachePolicyConfig.h:282
Aws::CloudFront::Model::CachePolicyConfig::SetComment
void SetComment(const char *value)
Definition: CachePolicyConfig.h:80
Aws::CloudFront::Model::CachePolicyConfig::WithMinTTL
CachePolicyConfig & WithMinTTL(long long value)
Definition: CachePolicyConfig.h:302
Aws::CloudFront::Model::CachePolicyConfig::WithParametersInCacheKeyAndForwardedToOrigin
CachePolicyConfig & WithParametersInCacheKeyAndForwardedToOrigin(ParametersInCacheKeyAndForwardedToOrigin &&value)
Definition: CachePolicyConfig.h:345
Aws::CloudFront::Model::CachePolicyConfig::GetParametersInCacheKeyAndForwardedToOrigin
const ParametersInCacheKeyAndForwardedToOrigin & GetParametersInCacheKeyAndForwardedToOrigin() const
Definition: CachePolicyConfig.h:310
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::CloudFront::Model::CachePolicyConfig::SetDefaultTTL
void SetDefaultTTL(long long value)
Definition: CachePolicyConfig.h:185
Aws::CloudFront::Model::CachePolicyConfig::AddToNode
void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
Aws::CloudFront::Model::CachePolicyConfig::WithParametersInCacheKeyAndForwardedToOrigin
CachePolicyConfig & WithParametersInCacheKeyAndForwardedToOrigin(const ParametersInCacheKeyAndForwardedToOrigin &value)
Definition: CachePolicyConfig.h:338
Aws::CloudFront::Model::CachePolicyConfig::WithName
CachePolicyConfig & WithName(const Aws::String &value)
Definition: CachePolicyConfig.h:129
Aws::CloudFront::Model::CachePolicyConfig::SetComment
void SetComment(const Aws::String &value)
Definition: CachePolicyConfig.h:68
AWSString.h
Aws::CloudFront::Model::CachePolicyConfig::SetName
void SetName(const Aws::String &value)
Definition: CachePolicyConfig.h:114
Aws::CloudFront::Model::CachePolicyConfig::CachePolicyConfig
CachePolicyConfig()
AWS_CLOUDFRONT_API
#define AWS_CLOUDFRONT_API
Definition: CloudFront_EXPORTS.h:28
Aws::CloudFront::Model::CachePolicyConfig
Definition: CachePolicyConfig.h:43
Aws::CloudFront::Model::CachePolicyConfig::SetParametersInCacheKeyAndForwardedToOrigin
void SetParametersInCacheKeyAndForwardedToOrigin(ParametersInCacheKeyAndForwardedToOrigin &&value)
Definition: CachePolicyConfig.h:331
CloudFront_EXPORTS.h
Aws::CloudFront::Model::CachePolicyConfig::WithName
CachePolicyConfig & WithName(const char *value)
Definition: CachePolicyConfig.h:139
Aws::CloudFront::Model::CachePolicyConfig::operator=
CachePolicyConfig & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::CloudFront::Model::CachePolicyConfig::GetName
const Aws::String & GetName() const
Definition: CachePolicyConfig.h:104
Aws
Definition: AccessManagementClient.h:15
ParametersInCacheKeyAndForwardedToOrigin.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CloudFront::Model::CachePolicyConfig::CachePolicyConfig
CachePolicyConfig(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::CloudFront::Model::CachePolicyConfig::MaxTTLHasBeenSet
bool MaxTTLHasBeenSet() const
Definition: CachePolicyConfig.h:231
Aws::CloudFront::Model::CachePolicyConfig::SetComment
void SetComment(Aws::String &&value)
Definition: CachePolicyConfig.h:74
Aws::CloudFront::Model::CachePolicyConfig::WithComment
CachePolicyConfig & WithComment(const char *value)
Definition: CachePolicyConfig.h:98
Aws::CloudFront::Model::CachePolicyConfig::WithComment
CachePolicyConfig & WithComment(const Aws::String &value)
Definition: CachePolicyConfig.h:86
Aws::CloudFront::Model::CachePolicyConfig::GetComment
const Aws::String & GetComment() const
Definition: CachePolicyConfig.h:56
Aws::CloudFront::Model::CachePolicyConfig::SetMaxTTL
void SetMaxTTL(long long value)
Definition: CachePolicyConfig.h:246
Aws::CloudFront::Model::CachePolicyConfig::SetMinTTL
void SetMinTTL(long long value)
Definition: CachePolicyConfig.h:292
Aws::CloudFront::Model::CachePolicyConfig::WithName
CachePolicyConfig & WithName(Aws::String &&value)
Definition: CachePolicyConfig.h:134