AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 ItemSelection GetForward() const { return m_forward; }
70 inline bool ForwardHasBeenSet() const { return m_forwardHasBeenSet; }
71 inline void SetForward(ItemSelection value) { m_forwardHasBeenSet = true; m_forward = value; }
72 inline CookiePreference& WithForward(ItemSelection value) { SetForward(value); return *this;}
74
76
100 inline const CookieNames& GetWhitelistedNames() const { return m_whitelistedNames; }
101 inline bool WhitelistedNamesHasBeenSet() const { return m_whitelistedNamesHasBeenSet; }
102 template<typename WhitelistedNamesT = CookieNames>
103 void SetWhitelistedNames(WhitelistedNamesT&& value) { m_whitelistedNamesHasBeenSet = true; m_whitelistedNames = std::forward<WhitelistedNamesT>(value); }
104 template<typename WhitelistedNamesT = CookieNames>
105 CookiePreference& WithWhitelistedNames(WhitelistedNamesT&& value) { SetWhitelistedNames(std::forward<WhitelistedNamesT>(value)); return *this;}
107 private:
108
110 bool m_forwardHasBeenSet = false;
111
112 CookieNames m_whitelistedNames;
113 bool m_whitelistedNamesHasBeenSet = false;
114 };
115
116} // namespace Model
117} // namespace CloudFront
118} // namespace Aws