AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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
43 {
44 public:
45 AWS_CLOUDFRONT_API CachePolicyConfig();
46 AWS_CLOUDFRONT_API CachePolicyConfig(const Aws::Utils::Xml::XmlNode& xmlNode);
47 AWS_CLOUDFRONT_API CachePolicyConfig& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
48
49 AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
50
51
53
57 inline const Aws::String& GetComment() const{ return m_comment; }
58 inline bool CommentHasBeenSet() const { return m_commentHasBeenSet; }
59 inline void SetComment(const Aws::String& value) { m_commentHasBeenSet = true; m_comment = value; }
60 inline void SetComment(Aws::String&& value) { m_commentHasBeenSet = true; m_comment = std::move(value); }
61 inline void SetComment(const char* value) { m_commentHasBeenSet = true; m_comment.assign(value); }
62 inline CachePolicyConfig& WithComment(const Aws::String& value) { SetComment(value); return *this;}
63 inline CachePolicyConfig& WithComment(Aws::String&& value) { SetComment(std::move(value)); return *this;}
64 inline CachePolicyConfig& WithComment(const char* value) { SetComment(value); return *this;}
66
68
71 inline const Aws::String& GetName() const{ return m_name; }
72 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
73 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
74 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
75 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
76 inline CachePolicyConfig& WithName(const Aws::String& value) { SetName(value); return *this;}
77 inline CachePolicyConfig& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
78 inline CachePolicyConfig& WithName(const char* value) { SetName(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 inline void SetParametersInCacheKeyAndForwardedToOrigin(const ParametersInCacheKeyAndForwardedToOrigin& value) { m_parametersInCacheKeyAndForwardedToOriginHasBeenSet = true; m_parametersInCacheKeyAndForwardedToOrigin = value; }
145 inline void SetParametersInCacheKeyAndForwardedToOrigin(ParametersInCacheKeyAndForwardedToOrigin&& value) { m_parametersInCacheKeyAndForwardedToOriginHasBeenSet = true; m_parametersInCacheKeyAndForwardedToOrigin = std::move(value); }
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;
158 bool m_defaultTTLHasBeenSet = false;
159
160 long long m_maxTTL;
161 bool m_maxTTLHasBeenSet = false;
162
163 long long m_minTTL;
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(const char *value)
CachePolicyConfig & WithMaxTTL(long long value)
CachePolicyConfig & WithParametersInCacheKeyAndForwardedToOrigin(const ParametersInCacheKeyAndForwardedToOrigin &value)
CachePolicyConfig & WithName(const char *value)
AWS_CLOUDFRONT_API CachePolicyConfig & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
CachePolicyConfig & WithComment(const Aws::String &value)
AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
CachePolicyConfig & WithParametersInCacheKeyAndForwardedToOrigin(ParametersInCacheKeyAndForwardedToOrigin &&value)
const ParametersInCacheKeyAndForwardedToOrigin & GetParametersInCacheKeyAndForwardedToOrigin() const
void SetParametersInCacheKeyAndForwardedToOrigin(const ParametersInCacheKeyAndForwardedToOrigin &value)
CachePolicyConfig & WithName(const Aws::String &value)
void SetParametersInCacheKeyAndForwardedToOrigin(ParametersInCacheKeyAndForwardedToOrigin &&value)
void SetName(const Aws::String &value)
void SetComment(const Aws::String &value)
CachePolicyConfig & WithComment(Aws::String &&value)
CachePolicyConfig & WithMinTTL(long long value)
CachePolicyConfig & WithDefaultTTL(long long value)
CachePolicyConfig & WithName(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String