AWS SDK for C++  1.9.45
AWS SDK for C++
OriginRequestPolicyHeadersConfig.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 
58  inline const OriginRequestPolicyHeaderBehavior& GetHeaderBehavior() const{ return m_headerBehavior; }
59 
75  inline bool HeaderBehaviorHasBeenSet() const { return m_headerBehaviorHasBeenSet; }
76 
92  inline void SetHeaderBehavior(const OriginRequestPolicyHeaderBehavior& value) { m_headerBehaviorHasBeenSet = true; m_headerBehavior = value; }
93 
109  inline void SetHeaderBehavior(OriginRequestPolicyHeaderBehavior&& value) { m_headerBehaviorHasBeenSet = true; m_headerBehavior = std::move(value); }
110 
126  inline OriginRequestPolicyHeadersConfig& WithHeaderBehavior(const OriginRequestPolicyHeaderBehavior& value) { SetHeaderBehavior(value); return *this;}
127 
143  inline OriginRequestPolicyHeadersConfig& WithHeaderBehavior(OriginRequestPolicyHeaderBehavior&& value) { SetHeaderBehavior(std::move(value)); return *this;}
144 
145 
146 
147  inline const Headers& GetHeaders() const{ return m_headers; }
148 
149 
150  inline bool HeadersHasBeenSet() const { return m_headersHasBeenSet; }
151 
152 
153  inline void SetHeaders(const Headers& value) { m_headersHasBeenSet = true; m_headers = value; }
154 
155 
156  inline void SetHeaders(Headers&& value) { m_headersHasBeenSet = true; m_headers = std::move(value); }
157 
158 
159  inline OriginRequestPolicyHeadersConfig& WithHeaders(const Headers& value) { SetHeaders(value); return *this;}
160 
161 
162  inline OriginRequestPolicyHeadersConfig& WithHeaders(Headers&& value) { SetHeaders(std::move(value)); return *this;}
163 
164  private:
165 
166  OriginRequestPolicyHeaderBehavior m_headerBehavior;
167  bool m_headerBehaviorHasBeenSet;
168 
169  Headers m_headers;
170  bool m_headersHasBeenSet;
171  };
172 
173 } // namespace Model
174 } // namespace CloudFront
175 } // namespace Aws
Aws::CloudFront::Model::OriginRequestPolicyHeadersConfig::HeaderBehaviorHasBeenSet
bool HeaderBehaviorHasBeenSet() const
Definition: OriginRequestPolicyHeadersConfig.h:75
Aws::CloudFront::Model::OriginRequestPolicyHeadersConfig::AddToNode
void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
Aws::CloudFront::Model::OriginRequestPolicyHeadersConfig::WithHeaders
OriginRequestPolicyHeadersConfig & WithHeaders(Headers &&value)
Definition: OriginRequestPolicyHeadersConfig.h:162
Aws::CloudFront::Model::OriginRequestPolicyHeadersConfig::WithHeaderBehavior
OriginRequestPolicyHeadersConfig & WithHeaderBehavior(OriginRequestPolicyHeaderBehavior &&value)
Definition: OriginRequestPolicyHeadersConfig.h:143
Aws::CloudFront::Model::OriginRequestPolicyHeadersConfig::SetHeaderBehavior
void SetHeaderBehavior(OriginRequestPolicyHeaderBehavior &&value)
Definition: OriginRequestPolicyHeadersConfig.h:109
Aws::CloudFront::Model::OriginRequestPolicyHeadersConfig::WithHeaders
OriginRequestPolicyHeadersConfig & WithHeaders(const Headers &value)
Definition: OriginRequestPolicyHeadersConfig.h:159
Aws::CloudFront::Model::OriginRequestPolicyHeadersConfig::WithHeaderBehavior
OriginRequestPolicyHeadersConfig & WithHeaderBehavior(const OriginRequestPolicyHeaderBehavior &value)
Definition: OriginRequestPolicyHeadersConfig.h:126
Aws::CloudFront::Model::OriginRequestPolicyHeadersConfig
Definition: OriginRequestPolicyHeadersConfig.h:34
Aws::CloudFront::Model::OriginRequestPolicyHeadersConfig::operator=
OriginRequestPolicyHeadersConfig & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::CloudFront::Model::OriginRequestPolicyHeaderBehavior
OriginRequestPolicyHeaderBehavior
Definition: OriginRequestPolicyHeaderBehavior.h:17
Aws::CloudFront::Model::OriginRequestPolicyHeadersConfig::HeadersHasBeenSet
bool HeadersHasBeenSet() const
Definition: OriginRequestPolicyHeadersConfig.h:150
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::CloudFront::Model::OriginRequestPolicyHeadersConfig::OriginRequestPolicyHeadersConfig
OriginRequestPolicyHeadersConfig()
OriginRequestPolicyHeaderBehavior.h
Aws::CloudFront::Model::OriginRequestPolicyHeadersConfig::SetHeaderBehavior
void SetHeaderBehavior(const OriginRequestPolicyHeaderBehavior &value)
Definition: OriginRequestPolicyHeadersConfig.h:92
AWS_CLOUDFRONT_API
#define AWS_CLOUDFRONT_API
Definition: CloudFront_EXPORTS.h:28
CloudFront_EXPORTS.h
Aws
Definition: AccessManagementClient.h:15
Headers.h
Aws::CloudFront::Model::OriginRequestPolicyHeadersConfig::OriginRequestPolicyHeadersConfig
OriginRequestPolicyHeadersConfig(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::CloudFront::Model::OriginRequestPolicyHeadersConfig::GetHeaders
const Headers & GetHeaders() const
Definition: OriginRequestPolicyHeadersConfig.h:147
Aws::CloudFront::Model::Headers
Definition: Headers.h:32
Aws::CloudFront::Model::OriginRequestPolicyHeadersConfig::SetHeaders
void SetHeaders(const Headers &value)
Definition: OriginRequestPolicyHeadersConfig.h:153
Aws::CloudFront::Model::OriginRequestPolicyHeadersConfig::SetHeaders
void SetHeaders(Headers &&value)
Definition: OriginRequestPolicyHeadersConfig.h:156
Aws::CloudFront::Model::OriginRequestPolicyHeadersConfig::GetHeaderBehavior
const OriginRequestPolicyHeaderBehavior & GetHeaderBehavior() const
Definition: OriginRequestPolicyHeadersConfig.h:58