7#include <aws/cloudfront/CloudFront_EXPORTS.h>
8#include <aws/cloudfront/model/CustomHeaders.h>
9#include <aws/cloudfront/model/CustomOriginConfig.h>
10#include <aws/cloudfront/model/OriginShield.h>
11#include <aws/cloudfront/model/S3OriginConfig.h>
12#include <aws/cloudfront/model/VpcOriginConfig.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
48 AWS_CLOUDFRONT_API
Origin() =
default;
62 template <
typename IdT = Aws::String>
64 m_idHasBeenSet =
true;
65 m_id = std::forward<IdT>(value);
67 template <
typename IdT = Aws::String>
69 SetId(std::forward<IdT>(value));
82 template <
typename DomainNameT = Aws::String>
84 m_domainNameHasBeenSet =
true;
85 m_domainName = std::forward<DomainNameT>(value);
87 template <
typename DomainNameT = Aws::String>
103 template <
typename OriginPathT = Aws::String>
105 m_originPathHasBeenSet =
true;
106 m_originPath = std::forward<OriginPathT>(value);
108 template <
typename OriginPathT = Aws::String>
125 template <
typename CustomHeadersT = CustomHeaders>
127 m_customHeadersHasBeenSet =
true;
128 m_customHeaders = std::forward<CustomHeadersT>(value);
130 template <
typename CustomHeadersT = CustomHeaders>
146 template <
typename S3OriginConfigT = S3OriginConfig>
148 m_s3OriginConfigHasBeenSet =
true;
149 m_s3OriginConfig = std::forward<S3OriginConfigT>(value);
151 template <
typename S3OriginConfigT = S3OriginConfig>
167 template <
typename CustomOriginConfigT = CustomOriginConfig>
169 m_customOriginConfigHasBeenSet =
true;
170 m_customOriginConfig = std::forward<CustomOriginConfigT>(value);
172 template <
typename CustomOriginConfigT = CustomOriginConfig>
185 template <
typename VpcOriginConfigT = VpcOriginConfig>
187 m_vpcOriginConfigHasBeenSet =
true;
188 m_vpcOriginConfig = std::forward<VpcOriginConfigT>(value);
190 template <
typename VpcOriginConfigT = VpcOriginConfig>
213 m_connectionAttemptsHasBeenSet =
true;
214 m_connectionAttempts = value;
234 m_connectionTimeoutHasBeenSet =
true;
235 m_connectionTimeout = value;
258 m_responseCompletionTimeoutHasBeenSet =
true;
259 m_responseCompletionTimeout = value;
276 template <
typename OriginShieldT = OriginShield>
278 m_originShieldHasBeenSet =
true;
279 m_originShield = std::forward<OriginShieldT>(value);
281 template <
typename OriginShieldT = OriginShield>
298 template <
typename OriginAccessControlIdT = Aws::String>
300 m_originAccessControlIdHasBeenSet =
true;
301 m_originAccessControlId = std::forward<OriginAccessControlIdT>(value);
303 template <
typename OriginAccessControlIdT = Aws::String>
324 int m_connectionAttempts{0};
326 int m_connectionTimeout{0};
328 int m_responseCompletionTimeout{0};
330 OriginShield m_originShield;
333 bool m_idHasBeenSet =
false;
334 bool m_domainNameHasBeenSet =
false;
335 bool m_originPathHasBeenSet =
false;
336 bool m_customHeadersHasBeenSet =
false;
337 bool m_s3OriginConfigHasBeenSet =
false;
338 bool m_customOriginConfigHasBeenSet =
false;
339 bool m_vpcOriginConfigHasBeenSet =
false;
340 bool m_connectionAttemptsHasBeenSet =
false;
341 bool m_connectionTimeoutHasBeenSet =
false;
342 bool m_responseCompletionTimeoutHasBeenSet =
false;
343 bool m_originShieldHasBeenSet =
false;
344 bool m_originAccessControlIdHasBeenSet =
false;
AWS_CLOUDFRONT_API Origin & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
bool CustomOriginConfigHasBeenSet() const
bool S3OriginConfigHasBeenSet() const
Origin & WithOriginAccessControlId(OriginAccessControlIdT &&value)
const Aws::String & GetId() const
Origin & WithId(IdT &&value)
void SetCustomHeaders(CustomHeadersT &&value)
Origin & WithOriginPath(OriginPathT &&value)
void SetResponseCompletionTimeout(int value)
int GetConnectionAttempts() const
Origin & WithS3OriginConfig(S3OriginConfigT &&value)
void SetOriginAccessControlId(OriginAccessControlIdT &&value)
bool CustomHeadersHasBeenSet() const
int GetResponseCompletionTimeout() const
void SetS3OriginConfig(S3OriginConfigT &&value)
void SetOriginPath(OriginPathT &&value)
Origin & WithVpcOriginConfig(VpcOriginConfigT &&value)
bool DomainNameHasBeenSet() const
void SetCustomOriginConfig(CustomOriginConfigT &&value)
bool ConnectionTimeoutHasBeenSet() const
void SetConnectionTimeout(int value)
int GetConnectionTimeout() const
const CustomOriginConfig & GetCustomOriginConfig() const
void SetVpcOriginConfig(VpcOriginConfigT &&value)
const VpcOriginConfig & GetVpcOriginConfig() const
void SetConnectionAttempts(int value)
void SetDomainName(DomainNameT &&value)
Origin & WithOriginShield(OriginShieldT &&value)
const Aws::String & GetOriginAccessControlId() const
bool IdHasBeenSet() const
Origin & WithCustomHeaders(CustomHeadersT &&value)
const CustomHeaders & GetCustomHeaders() const
void SetOriginShield(OriginShieldT &&value)
bool ConnectionAttemptsHasBeenSet() const
AWS_CLOUDFRONT_API Origin(const Aws::Utils::Xml::XmlNode &xmlNode)
Origin & WithConnectionTimeout(int value)
const OriginShield & GetOriginShield() const
Origin & WithResponseCompletionTimeout(int value)
Origin & WithCustomOriginConfig(CustomOriginConfigT &&value)
AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
const S3OriginConfig & GetS3OriginConfig() const
bool VpcOriginConfigHasBeenSet() const
Origin & WithConnectionAttempts(int value)
bool OriginShieldHasBeenSet() const
Origin & WithDomainName(DomainNameT &&value)
const Aws::String & GetDomainName() const
bool ResponseCompletionTimeoutHasBeenSet() const
bool OriginAccessControlIdHasBeenSet() const
bool OriginPathHasBeenSet() const
const Aws::String & GetOriginPath() const
AWS_CLOUDFRONT_API Origin()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String