AWS SDK for C++  1.9.20
AWS SDK for C++
OriginRequestPolicyCookiesConfig.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 
34  {
35  public:
39 
40  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
41 
42 
55  inline const OriginRequestPolicyCookieBehavior& GetCookieBehavior() const{ return m_cookieBehavior; }
56 
69  inline bool CookieBehaviorHasBeenSet() const { return m_cookieBehaviorHasBeenSet; }
70 
83  inline void SetCookieBehavior(const OriginRequestPolicyCookieBehavior& value) { m_cookieBehaviorHasBeenSet = true; m_cookieBehavior = value; }
84 
97  inline void SetCookieBehavior(OriginRequestPolicyCookieBehavior&& value) { m_cookieBehaviorHasBeenSet = true; m_cookieBehavior = std::move(value); }
98 
111  inline OriginRequestPolicyCookiesConfig& WithCookieBehavior(const OriginRequestPolicyCookieBehavior& value) { SetCookieBehavior(value); return *this;}
112 
125  inline OriginRequestPolicyCookiesConfig& WithCookieBehavior(OriginRequestPolicyCookieBehavior&& value) { SetCookieBehavior(std::move(value)); return *this;}
126 
127 
128 
129  inline const CookieNames& GetCookies() const{ return m_cookies; }
130 
131 
132  inline bool CookiesHasBeenSet() const { return m_cookiesHasBeenSet; }
133 
134 
135  inline void SetCookies(const CookieNames& value) { m_cookiesHasBeenSet = true; m_cookies = value; }
136 
137 
138  inline void SetCookies(CookieNames&& value) { m_cookiesHasBeenSet = true; m_cookies = std::move(value); }
139 
140 
141  inline OriginRequestPolicyCookiesConfig& WithCookies(const CookieNames& value) { SetCookies(value); return *this;}
142 
143 
144  inline OriginRequestPolicyCookiesConfig& WithCookies(CookieNames&& value) { SetCookies(std::move(value)); return *this;}
145 
146  private:
147 
148  OriginRequestPolicyCookieBehavior m_cookieBehavior;
149  bool m_cookieBehaviorHasBeenSet;
150 
151  CookieNames m_cookies;
152  bool m_cookiesHasBeenSet;
153  };
154 
155 } // namespace Model
156 } // namespace CloudFront
157 } // namespace Aws
Aws::CloudFront::Model::OriginRequestPolicyCookiesConfig
Definition: OriginRequestPolicyCookiesConfig.h:34
Aws::CloudFront::Model::OriginRequestPolicyCookieBehavior
OriginRequestPolicyCookieBehavior
Definition: OriginRequestPolicyCookieBehavior.h:17
Aws::CloudFront::Model::OriginRequestPolicyCookiesConfig::OriginRequestPolicyCookiesConfig
OriginRequestPolicyCookiesConfig()
Aws::CloudFront::Model::OriginRequestPolicyCookiesConfig::OriginRequestPolicyCookiesConfig
OriginRequestPolicyCookiesConfig(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::CloudFront::Model::OriginRequestPolicyCookiesConfig::WithCookieBehavior
OriginRequestPolicyCookiesConfig & WithCookieBehavior(const OriginRequestPolicyCookieBehavior &value)
Definition: OriginRequestPolicyCookiesConfig.h:111
Aws::CloudFront::Model::OriginRequestPolicyCookiesConfig::AddToNode
void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
Aws::CloudFront::Model::OriginRequestPolicyCookiesConfig::CookiesHasBeenSet
bool CookiesHasBeenSet() const
Definition: OriginRequestPolicyCookiesConfig.h:132
Aws::CloudFront::Model::OriginRequestPolicyCookiesConfig::GetCookies
const CookieNames & GetCookies() const
Definition: OriginRequestPolicyCookiesConfig.h:129
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::CloudFront::Model::OriginRequestPolicyCookiesConfig::CookieBehaviorHasBeenSet
bool CookieBehaviorHasBeenSet() const
Definition: OriginRequestPolicyCookiesConfig.h:69
Aws::CloudFront::Model::OriginRequestPolicyCookiesConfig::operator=
OriginRequestPolicyCookiesConfig & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::CloudFront::Model::OriginRequestPolicyCookiesConfig::SetCookies
void SetCookies(CookieNames &&value)
Definition: OriginRequestPolicyCookiesConfig.h:138
AWS_CLOUDFRONT_API
#define AWS_CLOUDFRONT_API
Definition: CloudFront_EXPORTS.h:28
CloudFront_EXPORTS.h
Aws
Definition: AccessManagementClient.h:15
Aws::CloudFront::Model::OriginRequestPolicyCookiesConfig::GetCookieBehavior
const OriginRequestPolicyCookieBehavior & GetCookieBehavior() const
Definition: OriginRequestPolicyCookiesConfig.h:55
Aws::CloudFront::Model::OriginRequestPolicyCookiesConfig::SetCookieBehavior
void SetCookieBehavior(OriginRequestPolicyCookieBehavior &&value)
Definition: OriginRequestPolicyCookiesConfig.h:97
Aws::CloudFront::Model::OriginRequestPolicyCookiesConfig::WithCookies
OriginRequestPolicyCookiesConfig & WithCookies(const CookieNames &value)
Definition: OriginRequestPolicyCookiesConfig.h:141
Aws::CloudFront::Model::OriginRequestPolicyCookiesConfig::WithCookies
OriginRequestPolicyCookiesConfig & WithCookies(CookieNames &&value)
Definition: OriginRequestPolicyCookiesConfig.h:144
Aws::CloudFront::Model::OriginRequestPolicyCookiesConfig::SetCookieBehavior
void SetCookieBehavior(const OriginRequestPolicyCookieBehavior &value)
Definition: OriginRequestPolicyCookiesConfig.h:83
Aws::CloudFront::Model::OriginRequestPolicyCookiesConfig::SetCookies
void SetCookies(const CookieNames &value)
Definition: OriginRequestPolicyCookiesConfig.h:135
Aws::CloudFront::Model::OriginRequestPolicyCookiesConfig::WithCookieBehavior
OriginRequestPolicyCookiesConfig & WithCookieBehavior(OriginRequestPolicyCookieBehavior &&value)
Definition: OriginRequestPolicyCookiesConfig.h:125