AWS SDK for C++  1.9.14
AWS SDK for C++
CustomOriginConfig.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 
36  {
37  public:
41 
42  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
43 
44 
49  inline int GetHTTPPort() const{ return m_hTTPPort; }
50 
55  inline bool HTTPPortHasBeenSet() const { return m_hTTPPortHasBeenSet; }
56 
61  inline void SetHTTPPort(int value) { m_hTTPPortHasBeenSet = true; m_hTTPPort = value; }
62 
67  inline CustomOriginConfig& WithHTTPPort(int value) { SetHTTPPort(value); return *this;}
68 
69 
74  inline int GetHTTPSPort() const{ return m_hTTPSPort; }
75 
80  inline bool HTTPSPortHasBeenSet() const { return m_hTTPSPortHasBeenSet; }
81 
86  inline void SetHTTPSPort(int value) { m_hTTPSPortHasBeenSet = true; m_hTTPSPort = value; }
87 
92  inline CustomOriginConfig& WithHTTPSPort(int value) { SetHTTPSPort(value); return *this;}
93 
94 
104  inline const OriginProtocolPolicy& GetOriginProtocolPolicy() const{ return m_originProtocolPolicy; }
105 
115  inline bool OriginProtocolPolicyHasBeenSet() const { return m_originProtocolPolicyHasBeenSet; }
116 
126  inline void SetOriginProtocolPolicy(const OriginProtocolPolicy& value) { m_originProtocolPolicyHasBeenSet = true; m_originProtocolPolicy = value; }
127 
137  inline void SetOriginProtocolPolicy(OriginProtocolPolicy&& value) { m_originProtocolPolicyHasBeenSet = true; m_originProtocolPolicy = std::move(value); }
138 
148  inline CustomOriginConfig& WithOriginProtocolPolicy(const OriginProtocolPolicy& value) { SetOriginProtocolPolicy(value); return *this;}
149 
159  inline CustomOriginConfig& WithOriginProtocolPolicy(OriginProtocolPolicy&& value) { SetOriginProtocolPolicy(std::move(value)); return *this;}
160 
161 
170  inline const OriginSslProtocols& GetOriginSslProtocols() const{ return m_originSslProtocols; }
171 
180  inline bool OriginSslProtocolsHasBeenSet() const { return m_originSslProtocolsHasBeenSet; }
181 
190  inline void SetOriginSslProtocols(const OriginSslProtocols& value) { m_originSslProtocolsHasBeenSet = true; m_originSslProtocols = value; }
191 
200  inline void SetOriginSslProtocols(OriginSslProtocols&& value) { m_originSslProtocolsHasBeenSet = true; m_originSslProtocols = std::move(value); }
201 
210  inline CustomOriginConfig& WithOriginSslProtocols(const OriginSslProtocols& value) { SetOriginSslProtocols(value); return *this;}
211 
220  inline CustomOriginConfig& WithOriginSslProtocols(OriginSslProtocols&& value) { SetOriginSslProtocols(std::move(value)); return *this;}
221 
222 
231  inline int GetOriginReadTimeout() const{ return m_originReadTimeout; }
232 
241  inline bool OriginReadTimeoutHasBeenSet() const { return m_originReadTimeoutHasBeenSet; }
242 
251  inline void SetOriginReadTimeout(int value) { m_originReadTimeoutHasBeenSet = true; m_originReadTimeout = value; }
252 
261  inline CustomOriginConfig& WithOriginReadTimeout(int value) { SetOriginReadTimeout(value); return *this;}
262 
263 
272  inline int GetOriginKeepaliveTimeout() const{ return m_originKeepaliveTimeout; }
273 
282  inline bool OriginKeepaliveTimeoutHasBeenSet() const { return m_originKeepaliveTimeoutHasBeenSet; }
283 
292  inline void SetOriginKeepaliveTimeout(int value) { m_originKeepaliveTimeoutHasBeenSet = true; m_originKeepaliveTimeout = value; }
293 
302  inline CustomOriginConfig& WithOriginKeepaliveTimeout(int value) { SetOriginKeepaliveTimeout(value); return *this;}
303 
304  private:
305 
306  int m_hTTPPort;
307  bool m_hTTPPortHasBeenSet;
308 
309  int m_hTTPSPort;
310  bool m_hTTPSPortHasBeenSet;
311 
312  OriginProtocolPolicy m_originProtocolPolicy;
313  bool m_originProtocolPolicyHasBeenSet;
314 
315  OriginSslProtocols m_originSslProtocols;
316  bool m_originSslProtocolsHasBeenSet;
317 
318  int m_originReadTimeout;
319  bool m_originReadTimeoutHasBeenSet;
320 
321  int m_originKeepaliveTimeout;
322  bool m_originKeepaliveTimeoutHasBeenSet;
323  };
324 
325 } // namespace Model
326 } // namespace CloudFront
327 } // namespace Aws
Aws::CloudFront::Model::CustomOriginConfig::CustomOriginConfig
CustomOriginConfig(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::CloudFront::Model::CustomOriginConfig::GetOriginSslProtocols
const OriginSslProtocols & GetOriginSslProtocols() const
Definition: CustomOriginConfig.h:170
Aws::CloudFront::Model::CustomOriginConfig::SetHTTPSPort
void SetHTTPSPort(int value)
Definition: CustomOriginConfig.h:86
Aws::CloudFront::Model::CustomOriginConfig::GetOriginReadTimeout
int GetOriginReadTimeout() const
Definition: CustomOriginConfig.h:231
Aws::CloudFront::Model::CustomOriginConfig::CustomOriginConfig
CustomOriginConfig()
Aws::CloudFront::Model::CustomOriginConfig
Definition: CustomOriginConfig.h:36
Aws::CloudFront::Model::CustomOriginConfig::WithOriginProtocolPolicy
CustomOriginConfig & WithOriginProtocolPolicy(const OriginProtocolPolicy &value)
Definition: CustomOriginConfig.h:148
Aws::CloudFront::Model::CustomOriginConfig::AddToNode
void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
Aws::CloudFront::Model::CustomOriginConfig::WithOriginReadTimeout
CustomOriginConfig & WithOriginReadTimeout(int value)
Definition: CustomOriginConfig.h:261
Aws::CloudFront::Model::CustomOriginConfig::HTTPSPortHasBeenSet
bool HTTPSPortHasBeenSet() const
Definition: CustomOriginConfig.h:80
Aws::CloudFront::Model::CustomOriginConfig::WithHTTPPort
CustomOriginConfig & WithHTTPPort(int value)
Definition: CustomOriginConfig.h:67
Aws::CloudFront::Model::CustomOriginConfig::HTTPPortHasBeenSet
bool HTTPPortHasBeenSet() const
Definition: CustomOriginConfig.h:55
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::CloudFront::Model::CustomOriginConfig::WithOriginSslProtocols
CustomOriginConfig & WithOriginSslProtocols(const OriginSslProtocols &value)
Definition: CustomOriginConfig.h:210
Aws::CloudFront::Model::CustomOriginConfig::operator=
CustomOriginConfig & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::CloudFront::Model::CustomOriginConfig::SetOriginSslProtocols
void SetOriginSslProtocols(const OriginSslProtocols &value)
Definition: CustomOriginConfig.h:190
Aws::CloudFront::Model::CustomOriginConfig::GetOriginProtocolPolicy
const OriginProtocolPolicy & GetOriginProtocolPolicy() const
Definition: CustomOriginConfig.h:104
Aws::CloudFront::Model::CustomOriginConfig::WithOriginKeepaliveTimeout
CustomOriginConfig & WithOriginKeepaliveTimeout(int value)
Definition: CustomOriginConfig.h:302
Aws::CloudFront::Model::OriginProtocolPolicy
OriginProtocolPolicy
Definition: OriginProtocolPolicy.h:17
Aws::CloudFront::Model::CustomOriginConfig::SetOriginKeepaliveTimeout
void SetOriginKeepaliveTimeout(int value)
Definition: CustomOriginConfig.h:292
AWS_CLOUDFRONT_API
#define AWS_CLOUDFRONT_API
Definition: CloudFront_EXPORTS.h:28
OriginProtocolPolicy.h
Aws::CloudFront::Model::CustomOriginConfig::GetHTTPPort
int GetHTTPPort() const
Definition: CustomOriginConfig.h:49
Aws::CloudFront::Model::CustomOriginConfig::SetHTTPPort
void SetHTTPPort(int value)
Definition: CustomOriginConfig.h:61
Aws::CloudFront::Model::CustomOriginConfig::SetOriginProtocolPolicy
void SetOriginProtocolPolicy(const OriginProtocolPolicy &value)
Definition: CustomOriginConfig.h:126
CloudFront_EXPORTS.h
Aws::CloudFront::Model::CustomOriginConfig::OriginSslProtocolsHasBeenSet
bool OriginSslProtocolsHasBeenSet() const
Definition: CustomOriginConfig.h:180
Aws::CloudFront::Model::CustomOriginConfig::SetOriginReadTimeout
void SetOriginReadTimeout(int value)
Definition: CustomOriginConfig.h:251
Aws
Definition: AccessManagementClient.h:15
Aws::CloudFront::Model::OriginSslProtocols
Definition: OriginSslProtocols.h:34
Aws::CloudFront::Model::CustomOriginConfig::WithOriginSslProtocols
CustomOriginConfig & WithOriginSslProtocols(OriginSslProtocols &&value)
Definition: CustomOriginConfig.h:220
Aws::CloudFront::Model::CustomOriginConfig::WithHTTPSPort
CustomOriginConfig & WithHTTPSPort(int value)
Definition: CustomOriginConfig.h:92
Aws::CloudFront::Model::CustomOriginConfig::OriginReadTimeoutHasBeenSet
bool OriginReadTimeoutHasBeenSet() const
Definition: CustomOriginConfig.h:241
Aws::CloudFront::Model::CustomOriginConfig::SetOriginProtocolPolicy
void SetOriginProtocolPolicy(OriginProtocolPolicy &&value)
Definition: CustomOriginConfig.h:137
Aws::CloudFront::Model::CustomOriginConfig::GetHTTPSPort
int GetHTTPSPort() const
Definition: CustomOriginConfig.h:74
Aws::CloudFront::Model::CustomOriginConfig::GetOriginKeepaliveTimeout
int GetOriginKeepaliveTimeout() const
Definition: CustomOriginConfig.h:272
OriginSslProtocols.h
Aws::CloudFront::Model::CustomOriginConfig::OriginProtocolPolicyHasBeenSet
bool OriginProtocolPolicyHasBeenSet() const
Definition: CustomOriginConfig.h:115
Aws::CloudFront::Model::CustomOriginConfig::SetOriginSslProtocols
void SetOriginSslProtocols(OriginSslProtocols &&value)
Definition: CustomOriginConfig.h:200
Aws::CloudFront::Model::CustomOriginConfig::OriginKeepaliveTimeoutHasBeenSet
bool OriginKeepaliveTimeoutHasBeenSet() const
Definition: CustomOriginConfig.h:282
Aws::CloudFront::Model::CustomOriginConfig::WithOriginProtocolPolicy
CustomOriginConfig & WithOriginProtocolPolicy(OriginProtocolPolicy &&value)
Definition: CustomOriginConfig.h:159