AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CookiePreference.h
1
6#pragma once
7#include <aws/cloudfront/CloudFront_EXPORTS.h>
8#include <aws/cloudfront/model/ItemSelection.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
43 {
44 public:
45 AWS_CLOUDFRONT_API CookiePreference();
46 AWS_CLOUDFRONT_API CookiePreference(const Aws::Utils::Xml::XmlNode& xmlNode);
47 AWS_CLOUDFRONT_API CookiePreference& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
48
49 AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
50
51
53
69 inline const ItemSelection& GetForward() const{ return m_forward; }
70 inline bool ForwardHasBeenSet() const { return m_forwardHasBeenSet; }
71 inline void SetForward(const ItemSelection& value) { m_forwardHasBeenSet = true; m_forward = value; }
72 inline void SetForward(ItemSelection&& value) { m_forwardHasBeenSet = true; m_forward = std::move(value); }
73 inline CookiePreference& WithForward(const ItemSelection& value) { SetForward(value); return *this;}
74 inline CookiePreference& WithForward(ItemSelection&& value) { SetForward(std::move(value)); return *this;}
76
78
102 inline const CookieNames& GetWhitelistedNames() const{ return m_whitelistedNames; }
103 inline bool WhitelistedNamesHasBeenSet() const { return m_whitelistedNamesHasBeenSet; }
104 inline void SetWhitelistedNames(const CookieNames& value) { m_whitelistedNamesHasBeenSet = true; m_whitelistedNames = value; }
105 inline void SetWhitelistedNames(CookieNames&& value) { m_whitelistedNamesHasBeenSet = true; m_whitelistedNames = std::move(value); }
106 inline CookiePreference& WithWhitelistedNames(const CookieNames& value) { SetWhitelistedNames(value); return *this;}
107 inline CookiePreference& WithWhitelistedNames(CookieNames&& value) { SetWhitelistedNames(std::move(value)); return *this;}
109 private:
110
111 ItemSelection m_forward;
112 bool m_forwardHasBeenSet = false;
113
114 CookieNames m_whitelistedNames;
115 bool m_whitelistedNamesHasBeenSet = false;
116 };
117
118} // namespace Model
119} // namespace CloudFront
120} // namespace Aws