AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CachePolicyCookiesConfig.h
1
6#pragma once
7#include <aws/cloudfront/CloudFront_EXPORTS.h>
8#include <aws/cloudfront/model/CachePolicyCookieBehavior.h>
9#include <aws/cloudfront/model/CookieNames.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
34 {
35 public:
36 AWS_CLOUDFRONT_API CachePolicyCookiesConfig();
37 AWS_CLOUDFRONT_API CachePolicyCookiesConfig(const Aws::Utils::Xml::XmlNode& xmlNode);
38 AWS_CLOUDFRONT_API CachePolicyCookiesConfig& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
39
40 AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
41
42
44
61 inline const CachePolicyCookieBehavior& GetCookieBehavior() const{ return m_cookieBehavior; }
62 inline bool CookieBehaviorHasBeenSet() const { return m_cookieBehaviorHasBeenSet; }
63 inline void SetCookieBehavior(const CachePolicyCookieBehavior& value) { m_cookieBehaviorHasBeenSet = true; m_cookieBehavior = value; }
64 inline void SetCookieBehavior(CachePolicyCookieBehavior&& value) { m_cookieBehaviorHasBeenSet = true; m_cookieBehavior = std::move(value); }
68
70
71 inline const CookieNames& GetCookies() const{ return m_cookies; }
72 inline bool CookiesHasBeenSet() const { return m_cookiesHasBeenSet; }
73 inline void SetCookies(const CookieNames& value) { m_cookiesHasBeenSet = true; m_cookies = value; }
74 inline void SetCookies(CookieNames&& value) { m_cookiesHasBeenSet = true; m_cookies = std::move(value); }
75 inline CachePolicyCookiesConfig& WithCookies(const CookieNames& value) { SetCookies(value); return *this;}
76 inline CachePolicyCookiesConfig& WithCookies(CookieNames&& value) { SetCookies(std::move(value)); return *this;}
78 private:
79
80 CachePolicyCookieBehavior m_cookieBehavior;
81 bool m_cookieBehaviorHasBeenSet = false;
82
83 CookieNames m_cookies;
84 bool m_cookiesHasBeenSet = false;
85 };
86
87} // namespace Model
88} // namespace CloudFront
89} // namespace Aws
CachePolicyCookiesConfig & WithCookies(const CookieNames &value)
const CachePolicyCookieBehavior & GetCookieBehavior() const
void SetCookieBehavior(const CachePolicyCookieBehavior &value)
void SetCookieBehavior(CachePolicyCookieBehavior &&value)
CachePolicyCookiesConfig & WithCookies(CookieNames &&value)
CachePolicyCookiesConfig & WithCookieBehavior(CachePolicyCookieBehavior &&value)
AWS_CLOUDFRONT_API CachePolicyCookiesConfig & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_CLOUDFRONT_API CachePolicyCookiesConfig(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
CachePolicyCookiesConfig & WithCookieBehavior(const CachePolicyCookieBehavior &value)