AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
OriginRequestPolicyCookiesConfig.h
1
6#pragma once
7#include <aws/cloudfront/CloudFront_EXPORTS.h>
8#include <aws/cloudfront/model/OriginRequestPolicyCookieBehavior.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
34 {
35 public:
39
40 AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
41
42
44
60 inline const OriginRequestPolicyCookieBehavior& GetCookieBehavior() const{ return m_cookieBehavior; }
61 inline bool CookieBehaviorHasBeenSet() const { return m_cookieBehaviorHasBeenSet; }
62 inline void SetCookieBehavior(const OriginRequestPolicyCookieBehavior& value) { m_cookieBehaviorHasBeenSet = true; m_cookieBehavior = value; }
63 inline void SetCookieBehavior(OriginRequestPolicyCookieBehavior&& value) { m_cookieBehaviorHasBeenSet = true; m_cookieBehavior = std::move(value); }
67
69
70 inline const CookieNames& GetCookies() const{ return m_cookies; }
71 inline bool CookiesHasBeenSet() const { return m_cookiesHasBeenSet; }
72 inline void SetCookies(const CookieNames& value) { m_cookiesHasBeenSet = true; m_cookies = value; }
73 inline void SetCookies(CookieNames&& value) { m_cookiesHasBeenSet = true; m_cookies = std::move(value); }
74 inline OriginRequestPolicyCookiesConfig& WithCookies(const CookieNames& value) { SetCookies(value); return *this;}
75 inline OriginRequestPolicyCookiesConfig& WithCookies(CookieNames&& value) { SetCookies(std::move(value)); return *this;}
77 private:
78
79 OriginRequestPolicyCookieBehavior m_cookieBehavior;
80 bool m_cookieBehaviorHasBeenSet = false;
81
82 CookieNames m_cookies;
83 bool m_cookiesHasBeenSet = false;
84 };
85
86} // namespace Model
87} // namespace CloudFront
88} // namespace Aws
OriginRequestPolicyCookiesConfig & WithCookieBehavior(const OriginRequestPolicyCookieBehavior &value)
void SetCookieBehavior(const OriginRequestPolicyCookieBehavior &value)
AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
OriginRequestPolicyCookiesConfig & WithCookies(CookieNames &&value)
AWS_CLOUDFRONT_API OriginRequestPolicyCookiesConfig & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
OriginRequestPolicyCookiesConfig & WithCookieBehavior(OriginRequestPolicyCookieBehavior &&value)
const OriginRequestPolicyCookieBehavior & GetCookieBehavior() const
void SetCookieBehavior(OriginRequestPolicyCookieBehavior &&value)
AWS_CLOUDFRONT_API OriginRequestPolicyCookiesConfig(const Aws::Utils::Xml::XmlNode &xmlNode)
OriginRequestPolicyCookiesConfig & WithCookies(const CookieNames &value)