AWS SDK for C++  1.9.20
AWS SDK for C++
CookiePreference.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 
43  {
44  public:
48 
49  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
50 
51 
68  inline const ItemSelection& GetForward() const{ return m_forward; }
69 
86  inline bool ForwardHasBeenSet() const { return m_forwardHasBeenSet; }
87 
104  inline void SetForward(const ItemSelection& value) { m_forwardHasBeenSet = true; m_forward = value; }
105 
122  inline void SetForward(ItemSelection&& value) { m_forwardHasBeenSet = true; m_forward = std::move(value); }
123 
140  inline CookiePreference& WithForward(const ItemSelection& value) { SetForward(value); return *this;}
141 
158  inline CookiePreference& WithForward(ItemSelection&& value) { SetForward(std::move(value)); return *this;}
159 
160 
185  inline const CookieNames& GetWhitelistedNames() const{ return m_whitelistedNames; }
186 
211  inline bool WhitelistedNamesHasBeenSet() const { return m_whitelistedNamesHasBeenSet; }
212 
237  inline void SetWhitelistedNames(const CookieNames& value) { m_whitelistedNamesHasBeenSet = true; m_whitelistedNames = value; }
238 
263  inline void SetWhitelistedNames(CookieNames&& value) { m_whitelistedNamesHasBeenSet = true; m_whitelistedNames = std::move(value); }
264 
289  inline CookiePreference& WithWhitelistedNames(const CookieNames& value) { SetWhitelistedNames(value); return *this;}
290 
315  inline CookiePreference& WithWhitelistedNames(CookieNames&& value) { SetWhitelistedNames(std::move(value)); return *this;}
316 
317  private:
318 
319  ItemSelection m_forward;
320  bool m_forwardHasBeenSet;
321 
322  CookieNames m_whitelistedNames;
323  bool m_whitelistedNamesHasBeenSet;
324  };
325 
326 } // namespace Model
327 } // namespace CloudFront
328 } // namespace Aws
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
ItemSelection.h
AWS_CLOUDFRONT_API
#define AWS_CLOUDFRONT_API
Definition: CloudFront_EXPORTS.h:28
CloudFront_EXPORTS.h
Aws
Definition: AccessManagementClient.h:15
Aws::CloudFront::Model::ItemSelection
ItemSelection
Definition: ItemSelection.h:17