AWS SDK for C++

AWS SDK for C++ Version 1.11.637

Loading...
Searching...
No Matches
CachePolicyConfig.h
1
6#pragma once
7#include <aws/cloudfront/CloudFront_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/cloudfront/model/ParametersInCacheKeyAndForwardedToOrigin.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
47 {
48 public:
49 AWS_CLOUDFRONT_API CachePolicyConfig() = default;
50 AWS_CLOUDFRONT_API CachePolicyConfig(const Aws::Utils::Xml::XmlNode& xmlNode);
51 AWS_CLOUDFRONT_API CachePolicyConfig& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
52
53 AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
54
55
57
61 inline const Aws::String& GetComment() const { return m_comment; }
62 inline bool CommentHasBeenSet() const { return m_commentHasBeenSet; }
63 template<typename CommentT = Aws::String>
64 void SetComment(CommentT&& value) { m_commentHasBeenSet = true; m_comment = std::forward<CommentT>(value); }
65 template<typename CommentT = Aws::String>
66 CachePolicyConfig& WithComment(CommentT&& value) { SetComment(std::forward<CommentT>(value)); return *this;}
68
70
73 inline const Aws::String& GetName() const { return m_name; }
74 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
75 template<typename NameT = Aws::String>
76 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
77 template<typename NameT = Aws::String>
78 CachePolicyConfig& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
80
82
95 inline long long GetDefaultTTL() const { return m_defaultTTL; }
96 inline bool DefaultTTLHasBeenSet() const { return m_defaultTTLHasBeenSet; }
97 inline void SetDefaultTTL(long long value) { m_defaultTTLHasBeenSet = true; m_defaultTTL = value; }
98 inline CachePolicyConfig& WithDefaultTTL(long long value) { SetDefaultTTL(value); return *this;}
100
102
115 inline long long GetMaxTTL() const { return m_maxTTL; }
116 inline bool MaxTTLHasBeenSet() const { return m_maxTTLHasBeenSet; }
117 inline void SetMaxTTL(long long value) { m_maxTTLHasBeenSet = true; m_maxTTL = value; }
118 inline CachePolicyConfig& WithMaxTTL(long long value) { SetMaxTTL(value); return *this;}
120
122
130 inline long long GetMinTTL() const { return m_minTTL; }
131 inline bool MinTTLHasBeenSet() const { return m_minTTLHasBeenSet; }
132 inline void SetMinTTL(long long value) { m_minTTLHasBeenSet = true; m_minTTL = value; }
133 inline CachePolicyConfig& WithMinTTL(long long value) { SetMinTTL(value); return *this;}
135
137
142 inline const ParametersInCacheKeyAndForwardedToOrigin& GetParametersInCacheKeyAndForwardedToOrigin() const { return m_parametersInCacheKeyAndForwardedToOrigin; }
143 inline bool ParametersInCacheKeyAndForwardedToOriginHasBeenSet() const { return m_parametersInCacheKeyAndForwardedToOriginHasBeenSet; }
144 template<typename ParametersInCacheKeyAndForwardedToOriginT = ParametersInCacheKeyAndForwardedToOrigin>
145 void SetParametersInCacheKeyAndForwardedToOrigin(ParametersInCacheKeyAndForwardedToOriginT&& value) { m_parametersInCacheKeyAndForwardedToOriginHasBeenSet = true; m_parametersInCacheKeyAndForwardedToOrigin = std::forward<ParametersInCacheKeyAndForwardedToOriginT>(value); }
146 template<typename ParametersInCacheKeyAndForwardedToOriginT = ParametersInCacheKeyAndForwardedToOrigin>
147 CachePolicyConfig& WithParametersInCacheKeyAndForwardedToOrigin(ParametersInCacheKeyAndForwardedToOriginT&& value) { SetParametersInCacheKeyAndForwardedToOrigin(std::forward<ParametersInCacheKeyAndForwardedToOriginT>(value)); return *this;}
149 private:
150
151 Aws::String m_comment;
152 bool m_commentHasBeenSet = false;
153
154 Aws::String m_name;
155 bool m_nameHasBeenSet = false;
156
157 long long m_defaultTTL{0};
158 bool m_defaultTTLHasBeenSet = false;
159
160 long long m_maxTTL{0};
161 bool m_maxTTLHasBeenSet = false;
162
163 long long m_minTTL{0};
164 bool m_minTTLHasBeenSet = false;
165
166 ParametersInCacheKeyAndForwardedToOrigin m_parametersInCacheKeyAndForwardedToOrigin;
167 bool m_parametersInCacheKeyAndForwardedToOriginHasBeenSet = false;
168 };
169
170} // namespace Model
171} // namespace CloudFront
172} // namespace Aws
AWS_CLOUDFRONT_API CachePolicyConfig(const Aws::Utils::Xml::XmlNode &xmlNode)
CachePolicyConfig & WithComment(CommentT &&value)
CachePolicyConfig & WithMaxTTL(long long value)
AWS_CLOUDFRONT_API CachePolicyConfig & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetParametersInCacheKeyAndForwardedToOrigin(ParametersInCacheKeyAndForwardedToOriginT &&value)
AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
const ParametersInCacheKeyAndForwardedToOrigin & GetParametersInCacheKeyAndForwardedToOrigin() const
CachePolicyConfig & WithParametersInCacheKeyAndForwardedToOrigin(ParametersInCacheKeyAndForwardedToOriginT &&value)
CachePolicyConfig & WithName(NameT &&value)
AWS_CLOUDFRONT_API CachePolicyConfig()=default
CachePolicyConfig & WithMinTTL(long long value)
CachePolicyConfig & WithDefaultTTL(long long value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String