AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CustomOriginConfig.h
1
6#pragma once
7#include <aws/cloudfront/CloudFront_EXPORTS.h>
8#include <aws/cloudfront/model/OriginProtocolPolicy.h>
9#include <aws/cloudfront/model/OriginSslProtocols.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
36 {
37 public:
38 AWS_CLOUDFRONT_API CustomOriginConfig();
39 AWS_CLOUDFRONT_API CustomOriginConfig(const Aws::Utils::Xml::XmlNode& xmlNode);
40 AWS_CLOUDFRONT_API CustomOriginConfig& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
41
42 AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
43
44
46
50 inline int GetHTTPPort() const{ return m_hTTPPort; }
51 inline bool HTTPPortHasBeenSet() const { return m_hTTPPortHasBeenSet; }
52 inline void SetHTTPPort(int value) { m_hTTPPortHasBeenSet = true; m_hTTPPort = value; }
53 inline CustomOriginConfig& WithHTTPPort(int value) { SetHTTPPort(value); return *this;}
55
57
61 inline int GetHTTPSPort() const{ return m_hTTPSPort; }
62 inline bool HTTPSPortHasBeenSet() const { return m_hTTPSPortHasBeenSet; }
63 inline void SetHTTPSPort(int value) { m_hTTPSPortHasBeenSet = true; m_hTTPSPort = value; }
64 inline CustomOriginConfig& WithHTTPSPort(int value) { SetHTTPSPort(value); return *this;}
66
68
77 inline const OriginProtocolPolicy& GetOriginProtocolPolicy() const{ return m_originProtocolPolicy; }
78 inline bool OriginProtocolPolicyHasBeenSet() const { return m_originProtocolPolicyHasBeenSet; }
79 inline void SetOriginProtocolPolicy(const OriginProtocolPolicy& value) { m_originProtocolPolicyHasBeenSet = true; m_originProtocolPolicy = value; }
80 inline void SetOriginProtocolPolicy(OriginProtocolPolicy&& value) { m_originProtocolPolicyHasBeenSet = true; m_originProtocolPolicy = std::move(value); }
84
86
94 inline const OriginSslProtocols& GetOriginSslProtocols() const{ return m_originSslProtocols; }
95 inline bool OriginSslProtocolsHasBeenSet() const { return m_originSslProtocolsHasBeenSet; }
96 inline void SetOriginSslProtocols(const OriginSslProtocols& value) { m_originSslProtocolsHasBeenSet = true; m_originSslProtocols = value; }
97 inline void SetOriginSslProtocols(OriginSslProtocols&& value) { m_originSslProtocolsHasBeenSet = true; m_originSslProtocols = std::move(value); }
99 inline CustomOriginConfig& WithOriginSslProtocols(OriginSslProtocols&& value) { SetOriginSslProtocols(std::move(value)); return *this;}
101
103
111 inline int GetOriginReadTimeout() const{ return m_originReadTimeout; }
112 inline bool OriginReadTimeoutHasBeenSet() const { return m_originReadTimeoutHasBeenSet; }
113 inline void SetOriginReadTimeout(int value) { m_originReadTimeoutHasBeenSet = true; m_originReadTimeout = value; }
114 inline CustomOriginConfig& WithOriginReadTimeout(int value) { SetOriginReadTimeout(value); return *this;}
116
118
126 inline int GetOriginKeepaliveTimeout() const{ return m_originKeepaliveTimeout; }
127 inline bool OriginKeepaliveTimeoutHasBeenSet() const { return m_originKeepaliveTimeoutHasBeenSet; }
128 inline void SetOriginKeepaliveTimeout(int value) { m_originKeepaliveTimeoutHasBeenSet = true; m_originKeepaliveTimeout = value; }
131 private:
132
133 int m_hTTPPort;
134 bool m_hTTPPortHasBeenSet = false;
135
136 int m_hTTPSPort;
137 bool m_hTTPSPortHasBeenSet = false;
138
139 OriginProtocolPolicy m_originProtocolPolicy;
140 bool m_originProtocolPolicyHasBeenSet = false;
141
142 OriginSslProtocols m_originSslProtocols;
143 bool m_originSslProtocolsHasBeenSet = false;
144
145 int m_originReadTimeout;
146 bool m_originReadTimeoutHasBeenSet = false;
147
148 int m_originKeepaliveTimeout;
149 bool m_originKeepaliveTimeoutHasBeenSet = false;
150 };
151
152} // namespace Model
153} // namespace CloudFront
154} // namespace Aws
CustomOriginConfig & WithHTTPSPort(int value)
const OriginProtocolPolicy & GetOriginProtocolPolicy() const
CustomOriginConfig & WithOriginReadTimeout(int value)
CustomOriginConfig & WithOriginSslProtocols(OriginSslProtocols &&value)
CustomOriginConfig & WithOriginProtocolPolicy(const OriginProtocolPolicy &value)
void SetOriginSslProtocols(const OriginSslProtocols &value)
CustomOriginConfig & WithOriginKeepaliveTimeout(int value)
void SetOriginProtocolPolicy(OriginProtocolPolicy &&value)
AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
const OriginSslProtocols & GetOriginSslProtocols() const
void SetOriginProtocolPolicy(const OriginProtocolPolicy &value)
CustomOriginConfig & WithHTTPPort(int value)
AWS_CLOUDFRONT_API CustomOriginConfig & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetOriginSslProtocols(OriginSslProtocols &&value)
AWS_CLOUDFRONT_API CustomOriginConfig(const Aws::Utils::Xml::XmlNode &xmlNode)
CustomOriginConfig & WithOriginSslProtocols(const OriginSslProtocols &value)
CustomOriginConfig & WithOriginProtocolPolicy(OriginProtocolPolicy &&value)