AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
CookiePreference.h
1
6#pragma once
7#include <aws/cloudfront/CloudFront_EXPORTS.h>
8#include <aws/cloudfront/model/CookieNames.h>
9#include <aws/cloudfront/model/ItemSelection.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace CloudFront {
20namespace Model {
21
39 public:
40 AWS_CLOUDFRONT_API CookiePreference() = default;
41 AWS_CLOUDFRONT_API CookiePreference(const Aws::Utils::Xml::XmlNode& xmlNode);
42 AWS_CLOUDFRONT_API CookiePreference& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
43
44 AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
45
47
63 inline ItemSelection GetForward() const { return m_forward; }
64 inline bool ForwardHasBeenSet() const { return m_forwardHasBeenSet; }
65 inline void SetForward(ItemSelection value) {
66 m_forwardHasBeenSet = true;
67 m_forward = value;
68 }
70 SetForward(value);
71 return *this;
72 }
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) {
104 m_whitelistedNamesHasBeenSet = true;
105 m_whitelistedNames = std::forward<WhitelistedNamesT>(value);
106 }
107 template <typename WhitelistedNamesT = CookieNames>
108 CookiePreference& WithWhitelistedNames(WhitelistedNamesT&& value) {
109 SetWhitelistedNames(std::forward<WhitelistedNamesT>(value));
110 return *this;
111 }
113 private:
115
116 CookieNames m_whitelistedNames;
117 bool m_forwardHasBeenSet = false;
118 bool m_whitelistedNamesHasBeenSet = false;
119};
120
121} // namespace Model
122} // namespace CloudFront
123} // namespace Aws