AWS SDK for C++  1.9.16
AWS SDK for C++
CachePolicyCookiesConfig.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 
34  {
35  public:
39 
40  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
41 
42 
61  inline const CachePolicyCookieBehavior& GetCookieBehavior() const{ return m_cookieBehavior; }
62 
81  inline bool CookieBehaviorHasBeenSet() const { return m_cookieBehaviorHasBeenSet; }
82 
101  inline void SetCookieBehavior(const CachePolicyCookieBehavior& value) { m_cookieBehaviorHasBeenSet = true; m_cookieBehavior = value; }
102 
121  inline void SetCookieBehavior(CachePolicyCookieBehavior&& value) { m_cookieBehaviorHasBeenSet = true; m_cookieBehavior = std::move(value); }
122 
141  inline CachePolicyCookiesConfig& WithCookieBehavior(const CachePolicyCookieBehavior& value) { SetCookieBehavior(value); return *this;}
142 
161  inline CachePolicyCookiesConfig& WithCookieBehavior(CachePolicyCookieBehavior&& value) { SetCookieBehavior(std::move(value)); return *this;}
162 
163 
164 
165  inline const CookieNames& GetCookies() const{ return m_cookies; }
166 
167 
168  inline bool CookiesHasBeenSet() const { return m_cookiesHasBeenSet; }
169 
170 
171  inline void SetCookies(const CookieNames& value) { m_cookiesHasBeenSet = true; m_cookies = value; }
172 
173 
174  inline void SetCookies(CookieNames&& value) { m_cookiesHasBeenSet = true; m_cookies = std::move(value); }
175 
176 
177  inline CachePolicyCookiesConfig& WithCookies(const CookieNames& value) { SetCookies(value); return *this;}
178 
179 
180  inline CachePolicyCookiesConfig& WithCookies(CookieNames&& value) { SetCookies(std::move(value)); return *this;}
181 
182  private:
183 
184  CachePolicyCookieBehavior m_cookieBehavior;
185  bool m_cookieBehaviorHasBeenSet;
186 
187  CookieNames m_cookies;
188  bool m_cookiesHasBeenSet;
189  };
190 
191 } // namespace Model
192 } // namespace CloudFront
193 } // namespace Aws
Aws::CloudFront::Model::CachePolicyCookiesConfig::WithCookies
CachePolicyCookiesConfig & WithCookies(CookieNames &&value)
Definition: CachePolicyCookiesConfig.h:180
Aws::CloudFront::Model::CachePolicyCookiesConfig::SetCookieBehavior
void SetCookieBehavior(const CachePolicyCookieBehavior &value)
Definition: CachePolicyCookiesConfig.h:101
Aws::CloudFront::Model::CachePolicyCookiesConfig::CachePolicyCookiesConfig
CachePolicyCookiesConfig(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::CloudFront::Model::CachePolicyCookiesConfig::CookiesHasBeenSet
bool CookiesHasBeenSet() const
Definition: CachePolicyCookiesConfig.h:168
Aws::CloudFront::Model::CachePolicyCookiesConfig::WithCookies
CachePolicyCookiesConfig & WithCookies(const CookieNames &value)
Definition: CachePolicyCookiesConfig.h:177
Aws::CloudFront::Model::CachePolicyCookiesConfig::CookieBehaviorHasBeenSet
bool CookieBehaviorHasBeenSet() const
Definition: CachePolicyCookiesConfig.h:81
Aws::CloudFront::Model::CachePolicyCookiesConfig::WithCookieBehavior
CachePolicyCookiesConfig & WithCookieBehavior(CachePolicyCookieBehavior &&value)
Definition: CachePolicyCookiesConfig.h:161
Aws::CloudFront::Model::CachePolicyCookiesConfig
Definition: CachePolicyCookiesConfig.h:34
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::CloudFront::Model::CachePolicyCookiesConfig::CachePolicyCookiesConfig
CachePolicyCookiesConfig()
Aws::CloudFront::Model::CachePolicyCookiesConfig::GetCookies
const CookieNames & GetCookies() const
Definition: CachePolicyCookiesConfig.h:165
Aws::CloudFront::Model::CachePolicyCookiesConfig::SetCookies
void SetCookies(CookieNames &&value)
Definition: CachePolicyCookiesConfig.h:174
Aws::CloudFront::Model::CachePolicyCookiesConfig::SetCookies
void SetCookies(const CookieNames &value)
Definition: CachePolicyCookiesConfig.h:171
Aws::CloudFront::Model::CachePolicyCookiesConfig::GetCookieBehavior
const CachePolicyCookieBehavior & GetCookieBehavior() const
Definition: CachePolicyCookiesConfig.h:61
AWS_CLOUDFRONT_API
#define AWS_CLOUDFRONT_API
Definition: CloudFront_EXPORTS.h:28
Aws::CloudFront::Model::CachePolicyCookieBehavior
CachePolicyCookieBehavior
Definition: CachePolicyCookieBehavior.h:17
CloudFront_EXPORTS.h
Aws::CloudFront::Model::CachePolicyCookiesConfig::operator=
CachePolicyCookiesConfig & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws
Definition: AccessManagementClient.h:15
Aws::CloudFront::Model::CachePolicyCookiesConfig::WithCookieBehavior
CachePolicyCookiesConfig & WithCookieBehavior(const CachePolicyCookieBehavior &value)
Definition: CachePolicyCookiesConfig.h:141
Aws::CloudFront::Model::CachePolicyCookiesConfig::SetCookieBehavior
void SetCookieBehavior(CachePolicyCookieBehavior &&value)
Definition: CachePolicyCookiesConfig.h:121
Aws::CloudFront::Model::CachePolicyCookiesConfig::AddToNode
void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const