AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CachePolicyHeadersConfig.h
1
6#pragma once
7#include <aws/cloudfront/CloudFront_EXPORTS.h>
8#include <aws/cloudfront/model/CachePolicyHeaderBehavior.h>
9#include <aws/cloudfront/model/Headers.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:
36 AWS_CLOUDFRONT_API CachePolicyHeadersConfig();
37 AWS_CLOUDFRONT_API CachePolicyHeadersConfig(const Aws::Utils::Xml::XmlNode& xmlNode);
38 AWS_CLOUDFRONT_API CachePolicyHeadersConfig& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
39
40 AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
41
42
44
55 inline const CachePolicyHeaderBehavior& GetHeaderBehavior() const{ return m_headerBehavior; }
56 inline bool HeaderBehaviorHasBeenSet() const { return m_headerBehaviorHasBeenSet; }
57 inline void SetHeaderBehavior(const CachePolicyHeaderBehavior& value) { m_headerBehaviorHasBeenSet = true; m_headerBehavior = value; }
58 inline void SetHeaderBehavior(CachePolicyHeaderBehavior&& value) { m_headerBehaviorHasBeenSet = true; m_headerBehavior = std::move(value); }
62
64
65 inline const Headers& GetHeaders() const{ return m_headers; }
66 inline bool HeadersHasBeenSet() const { return m_headersHasBeenSet; }
67 inline void SetHeaders(const Headers& value) { m_headersHasBeenSet = true; m_headers = value; }
68 inline void SetHeaders(Headers&& value) { m_headersHasBeenSet = true; m_headers = std::move(value); }
69 inline CachePolicyHeadersConfig& WithHeaders(const Headers& value) { SetHeaders(value); return *this;}
70 inline CachePolicyHeadersConfig& WithHeaders(Headers&& value) { SetHeaders(std::move(value)); return *this;}
72 private:
73
74 CachePolicyHeaderBehavior m_headerBehavior;
75 bool m_headerBehaviorHasBeenSet = false;
76
77 Headers m_headers;
78 bool m_headersHasBeenSet = false;
79 };
80
81} // namespace Model
82} // namespace CloudFront
83} // namespace Aws
AWS_CLOUDFRONT_API CachePolicyHeadersConfig(const Aws::Utils::Xml::XmlNode &xmlNode)
const CachePolicyHeaderBehavior & GetHeaderBehavior() const
AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
void SetHeaderBehavior(CachePolicyHeaderBehavior &&value)
void SetHeaderBehavior(const CachePolicyHeaderBehavior &value)
CachePolicyHeadersConfig & WithHeaders(const Headers &value)
CachePolicyHeadersConfig & WithHeaderBehavior(const CachePolicyHeaderBehavior &value)
CachePolicyHeadersConfig & WithHeaders(Headers &&value)
CachePolicyHeadersConfig & WithHeaderBehavior(CachePolicyHeaderBehavior &&value)
AWS_CLOUDFRONT_API CachePolicyHeadersConfig & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)