7#include <aws/cloudfront/CloudFront_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/cloudfront/model/ParametersInCacheKeyAndForwardedToOrigin.h>
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>
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>
97 inline void SetDefaultTTL(
long long value) { m_defaultTTLHasBeenSet =
true; m_defaultTTL = value; }
117 inline void SetMaxTTL(
long long value) { m_maxTTLHasBeenSet =
true; m_maxTTL = value; }
132 inline void SetMinTTL(
long long value) { m_minTTLHasBeenSet =
true; m_minTTL = value; }
144 template<
typename ParametersInCacheKeyAndForwardedToOriginT = ParametersInCacheKeyAndForwardedToOrigin>
145 void SetParametersInCacheKeyAndForwardedToOrigin(ParametersInCacheKeyAndForwardedToOriginT&& value) { m_parametersInCacheKeyAndForwardedToOriginHasBeenSet =
true; m_parametersInCacheKeyAndForwardedToOrigin = std::forward<ParametersInCacheKeyAndForwardedToOriginT>(value); }
146 template<
typename ParametersInCacheKeyAndForwardedToOriginT = ParametersInCacheKeyAndForwardedToOrigin>
152 bool m_commentHasBeenSet =
false;
155 bool m_nameHasBeenSet =
false;
157 long long m_defaultTTL{0};
158 bool m_defaultTTLHasBeenSet =
false;
160 long long m_maxTTL{0};
161 bool m_maxTTLHasBeenSet =
false;
163 long long m_minTTL{0};
164 bool m_minTTLHasBeenSet =
false;
166 ParametersInCacheKeyAndForwardedToOrigin m_parametersInCacheKeyAndForwardedToOrigin;
167 bool m_parametersInCacheKeyAndForwardedToOriginHasBeenSet =
false;
AWS_CLOUDFRONT_API CachePolicyConfig(const Aws::Utils::Xml::XmlNode &xmlNode)
CachePolicyConfig & WithComment(CommentT &&value)
void SetMinTTL(long long value)
const Aws::String & GetName() const
void SetMaxTTL(long long value)
CachePolicyConfig & WithMaxTTL(long long value)
bool CommentHasBeenSet() const
AWS_CLOUDFRONT_API CachePolicyConfig & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetParametersInCacheKeyAndForwardedToOrigin(ParametersInCacheKeyAndForwardedToOriginT &&value)
void SetDefaultTTL(long long value)
const Aws::String & GetComment() const
AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
bool MinTTLHasBeenSet() const
void SetName(NameT &&value)
long long GetMinTTL() const
const ParametersInCacheKeyAndForwardedToOrigin & GetParametersInCacheKeyAndForwardedToOrigin() const
CachePolicyConfig & WithParametersInCacheKeyAndForwardedToOrigin(ParametersInCacheKeyAndForwardedToOriginT &&value)
bool NameHasBeenSet() const
long long GetDefaultTTL() const
CachePolicyConfig & WithName(NameT &&value)
bool ParametersInCacheKeyAndForwardedToOriginHasBeenSet() const
AWS_CLOUDFRONT_API CachePolicyConfig()=default
CachePolicyConfig & WithMinTTL(long long value)
bool DefaultTTLHasBeenSet() const
CachePolicyConfig & WithDefaultTTL(long long value)
bool MaxTTLHasBeenSet() const
void SetComment(CommentT &&value)
long long GetMaxTTL() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String