AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
OriginRequestPolicyHeadersConfig.h
1
6#pragma once
7#include <aws/cloudfront/CloudFront_EXPORTS.h>
8#include <aws/cloudfront/model/OriginRequestPolicyHeaderBehavior.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:
39
40 AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
41
42
44
63 inline const OriginRequestPolicyHeaderBehavior& GetHeaderBehavior() const{ return m_headerBehavior; }
64 inline bool HeaderBehaviorHasBeenSet() const { return m_headerBehaviorHasBeenSet; }
65 inline void SetHeaderBehavior(const OriginRequestPolicyHeaderBehavior& value) { m_headerBehaviorHasBeenSet = true; m_headerBehavior = value; }
66 inline void SetHeaderBehavior(OriginRequestPolicyHeaderBehavior&& value) { m_headerBehaviorHasBeenSet = true; m_headerBehavior = std::move(value); }
70
72
73 inline const Headers& GetHeaders() const{ return m_headers; }
74 inline bool HeadersHasBeenSet() const { return m_headersHasBeenSet; }
75 inline void SetHeaders(const Headers& value) { m_headersHasBeenSet = true; m_headers = value; }
76 inline void SetHeaders(Headers&& value) { m_headersHasBeenSet = true; m_headers = std::move(value); }
77 inline OriginRequestPolicyHeadersConfig& WithHeaders(const Headers& value) { SetHeaders(value); return *this;}
78 inline OriginRequestPolicyHeadersConfig& WithHeaders(Headers&& value) { SetHeaders(std::move(value)); return *this;}
80 private:
81
82 OriginRequestPolicyHeaderBehavior m_headerBehavior;
83 bool m_headerBehaviorHasBeenSet = false;
84
85 Headers m_headers;
86 bool m_headersHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace CloudFront
91} // namespace Aws
AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
OriginRequestPolicyHeadersConfig & WithHeaderBehavior(const OriginRequestPolicyHeaderBehavior &value)
const OriginRequestPolicyHeaderBehavior & GetHeaderBehavior() const
OriginRequestPolicyHeadersConfig & WithHeaders(const Headers &value)
OriginRequestPolicyHeadersConfig & WithHeaderBehavior(OriginRequestPolicyHeaderBehavior &&value)
void SetHeaderBehavior(OriginRequestPolicyHeaderBehavior &&value)
void SetHeaderBehavior(const OriginRequestPolicyHeaderBehavior &value)
OriginRequestPolicyHeadersConfig & WithHeaders(Headers &&value)
AWS_CLOUDFRONT_API OriginRequestPolicyHeadersConfig(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_CLOUDFRONT_API OriginRequestPolicyHeadersConfig & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)