AWS SDK for C++  1.9.20
AWS SDK for C++
CachePolicyHeadersConfig.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 CachePolicyHeaderBehavior& GetHeaderBehavior() const{ return m_headerBehavior; }
56 
69  inline bool HeaderBehaviorHasBeenSet() const { return m_headerBehaviorHasBeenSet; }
70 
83  inline void SetHeaderBehavior(const CachePolicyHeaderBehavior& value) { m_headerBehaviorHasBeenSet = true; m_headerBehavior = value; }
84 
97  inline void SetHeaderBehavior(CachePolicyHeaderBehavior&& value) { m_headerBehaviorHasBeenSet = true; m_headerBehavior = std::move(value); }
98 
111  inline CachePolicyHeadersConfig& WithHeaderBehavior(const CachePolicyHeaderBehavior& value) { SetHeaderBehavior(value); return *this;}
112 
125  inline CachePolicyHeadersConfig& WithHeaderBehavior(CachePolicyHeaderBehavior&& value) { SetHeaderBehavior(std::move(value)); return *this;}
126 
127 
128 
129  inline const Headers& GetHeaders() const{ return m_headers; }
130 
131 
132  inline bool HeadersHasBeenSet() const { return m_headersHasBeenSet; }
133 
134 
135  inline void SetHeaders(const Headers& value) { m_headersHasBeenSet = true; m_headers = value; }
136 
137 
138  inline void SetHeaders(Headers&& value) { m_headersHasBeenSet = true; m_headers = std::move(value); }
139 
140 
141  inline CachePolicyHeadersConfig& WithHeaders(const Headers& value) { SetHeaders(value); return *this;}
142 
143 
144  inline CachePolicyHeadersConfig& WithHeaders(Headers&& value) { SetHeaders(std::move(value)); return *this;}
145 
146  private:
147 
148  CachePolicyHeaderBehavior m_headerBehavior;
149  bool m_headerBehaviorHasBeenSet;
150 
151  Headers m_headers;
152  bool m_headersHasBeenSet;
153  };
154 
155 } // namespace Model
156 } // namespace CloudFront
157 } // namespace Aws
Aws::CloudFront::Model::CachePolicyHeadersConfig::HeadersHasBeenSet
bool HeadersHasBeenSet() const
Definition: CachePolicyHeadersConfig.h:132
Aws::CloudFront::Model::CachePolicyHeadersConfig::WithHeaderBehavior
CachePolicyHeadersConfig & WithHeaderBehavior(const CachePolicyHeaderBehavior &value)
Definition: CachePolicyHeadersConfig.h:111
Aws::CloudFront::Model::CachePolicyHeadersConfig::AddToNode
void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
Aws::CloudFront::Model::CachePolicyHeaderBehavior
CachePolicyHeaderBehavior
Definition: CachePolicyHeaderBehavior.h:17
Aws::CloudFront::Model::CachePolicyHeadersConfig::CachePolicyHeadersConfig
CachePolicyHeadersConfig(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::CloudFront::Model::CachePolicyHeadersConfig::WithHeaders
CachePolicyHeadersConfig & WithHeaders(Headers &&value)
Definition: CachePolicyHeadersConfig.h:144
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::CloudFront::Model::CachePolicyHeadersConfig::SetHeaderBehavior
void SetHeaderBehavior(CachePolicyHeaderBehavior &&value)
Definition: CachePolicyHeadersConfig.h:97
Aws::CloudFront::Model::CachePolicyHeadersConfig::SetHeaders
void SetHeaders(Headers &&value)
Definition: CachePolicyHeadersConfig.h:138
Aws::CloudFront::Model::CachePolicyHeadersConfig::GetHeaderBehavior
const CachePolicyHeaderBehavior & GetHeaderBehavior() const
Definition: CachePolicyHeadersConfig.h:55
AWS_CLOUDFRONT_API
#define AWS_CLOUDFRONT_API
Definition: CloudFront_EXPORTS.h:28
CachePolicyHeaderBehavior.h
CloudFront_EXPORTS.h
Aws::CloudFront::Model::CachePolicyHeadersConfig::GetHeaders
const Headers & GetHeaders() const
Definition: CachePolicyHeadersConfig.h:129
Aws
Definition: AccessManagementClient.h:15
Aws::CloudFront::Model::CachePolicyHeadersConfig::HeaderBehaviorHasBeenSet
bool HeaderBehaviorHasBeenSet() const
Definition: CachePolicyHeadersConfig.h:69
Headers.h
Aws::CloudFront::Model::CachePolicyHeadersConfig::SetHeaderBehavior
void SetHeaderBehavior(const CachePolicyHeaderBehavior &value)
Definition: CachePolicyHeadersConfig.h:83
Aws::CloudFront::Model::CachePolicyHeadersConfig::operator=
CachePolicyHeadersConfig & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::CloudFront::Model::CachePolicyHeadersConfig::WithHeaders
CachePolicyHeadersConfig & WithHeaders(const Headers &value)
Definition: CachePolicyHeadersConfig.h:141
Aws::CloudFront::Model::CachePolicyHeadersConfig::CachePolicyHeadersConfig
CachePolicyHeadersConfig()
Aws::CloudFront::Model::CachePolicyHeadersConfig::SetHeaders
void SetHeaders(const Headers &value)
Definition: CachePolicyHeadersConfig.h:135
Aws::CloudFront::Model::CachePolicyHeadersConfig
Definition: CachePolicyHeadersConfig.h:34
Aws::CloudFront::Model::Headers
Definition: Headers.h:32
Aws::CloudFront::Model::CachePolicyHeadersConfig::WithHeaderBehavior
CachePolicyHeadersConfig & WithHeaderBehavior(CachePolicyHeaderBehavior &&value)
Definition: CachePolicyHeadersConfig.h:125