AWS SDK for C++  1.9.16
AWS SDK for C++
Origin.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace Utils
18 {
19 namespace Xml
20 {
21  class XmlNode;
22 } // namespace Xml
23 } // namespace Utils
24 namespace CloudFront
25 {
26 namespace Model
27 {
28 
49  {
50  public:
51  Origin();
54 
55  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
56 
57 
63  inline const Aws::String& GetId() const{ return m_id; }
64 
70  inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
71 
77  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
78 
84  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
85 
91  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
92 
98  inline Origin& WithId(const Aws::String& value) { SetId(value); return *this;}
99 
105  inline Origin& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
106 
112  inline Origin& WithId(const char* value) { SetId(value); return *this;}
113 
114 
120  inline const Aws::String& GetDomainName() const{ return m_domainName; }
121 
127  inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
128 
134  inline void SetDomainName(const Aws::String& value) { m_domainNameHasBeenSet = true; m_domainName = value; }
135 
141  inline void SetDomainName(Aws::String&& value) { m_domainNameHasBeenSet = true; m_domainName = std::move(value); }
142 
148  inline void SetDomainName(const char* value) { m_domainNameHasBeenSet = true; m_domainName.assign(value); }
149 
155  inline Origin& WithDomainName(const Aws::String& value) { SetDomainName(value); return *this;}
156 
162  inline Origin& WithDomainName(Aws::String&& value) { SetDomainName(std::move(value)); return *this;}
163 
169  inline Origin& WithDomainName(const char* value) { SetDomainName(value); return *this;}
170 
171 
178  inline const Aws::String& GetOriginPath() const{ return m_originPath; }
179 
186  inline bool OriginPathHasBeenSet() const { return m_originPathHasBeenSet; }
187 
194  inline void SetOriginPath(const Aws::String& value) { m_originPathHasBeenSet = true; m_originPath = value; }
195 
202  inline void SetOriginPath(Aws::String&& value) { m_originPathHasBeenSet = true; m_originPath = std::move(value); }
203 
210  inline void SetOriginPath(const char* value) { m_originPathHasBeenSet = true; m_originPath.assign(value); }
211 
218  inline Origin& WithOriginPath(const Aws::String& value) { SetOriginPath(value); return *this;}
219 
226  inline Origin& WithOriginPath(Aws::String&& value) { SetOriginPath(std::move(value)); return *this;}
227 
234  inline Origin& WithOriginPath(const char* value) { SetOriginPath(value); return *this;}
235 
236 
244  inline const CustomHeaders& GetCustomHeaders() const{ return m_customHeaders; }
245 
253  inline bool CustomHeadersHasBeenSet() const { return m_customHeadersHasBeenSet; }
254 
262  inline void SetCustomHeaders(const CustomHeaders& value) { m_customHeadersHasBeenSet = true; m_customHeaders = value; }
263 
271  inline void SetCustomHeaders(CustomHeaders&& value) { m_customHeadersHasBeenSet = true; m_customHeaders = std::move(value); }
272 
280  inline Origin& WithCustomHeaders(const CustomHeaders& value) { SetCustomHeaders(value); return *this;}
281 
289  inline Origin& WithCustomHeaders(CustomHeaders&& value) { SetCustomHeaders(std::move(value)); return *this;}
290 
291 
298  inline const S3OriginConfig& GetS3OriginConfig() const{ return m_s3OriginConfig; }
299 
306  inline bool S3OriginConfigHasBeenSet() const { return m_s3OriginConfigHasBeenSet; }
307 
314  inline void SetS3OriginConfig(const S3OriginConfig& value) { m_s3OriginConfigHasBeenSet = true; m_s3OriginConfig = value; }
315 
322  inline void SetS3OriginConfig(S3OriginConfig&& value) { m_s3OriginConfigHasBeenSet = true; m_s3OriginConfig = std::move(value); }
323 
330  inline Origin& WithS3OriginConfig(const S3OriginConfig& value) { SetS3OriginConfig(value); return *this;}
331 
338  inline Origin& WithS3OriginConfig(S3OriginConfig&& value) { SetS3OriginConfig(std::move(value)); return *this;}
339 
340 
347  inline const CustomOriginConfig& GetCustomOriginConfig() const{ return m_customOriginConfig; }
348 
355  inline bool CustomOriginConfigHasBeenSet() const { return m_customOriginConfigHasBeenSet; }
356 
363  inline void SetCustomOriginConfig(const CustomOriginConfig& value) { m_customOriginConfigHasBeenSet = true; m_customOriginConfig = value; }
364 
371  inline void SetCustomOriginConfig(CustomOriginConfig&& value) { m_customOriginConfigHasBeenSet = true; m_customOriginConfig = std::move(value); }
372 
379  inline Origin& WithCustomOriginConfig(const CustomOriginConfig& value) { SetCustomOriginConfig(value); return *this;}
380 
387  inline Origin& WithCustomOriginConfig(CustomOriginConfig&& value) { SetCustomOriginConfig(std::move(value)); return *this;}
388 
389 
402  inline int GetConnectionAttempts() const{ return m_connectionAttempts; }
403 
416  inline bool ConnectionAttemptsHasBeenSet() const { return m_connectionAttemptsHasBeenSet; }
417 
430  inline void SetConnectionAttempts(int value) { m_connectionAttemptsHasBeenSet = true; m_connectionAttempts = value; }
431 
444  inline Origin& WithConnectionAttempts(int value) { SetConnectionAttempts(value); return *this;}
445 
446 
455  inline int GetConnectionTimeout() const{ return m_connectionTimeout; }
456 
465  inline bool ConnectionTimeoutHasBeenSet() const { return m_connectionTimeoutHasBeenSet; }
466 
475  inline void SetConnectionTimeout(int value) { m_connectionTimeoutHasBeenSet = true; m_connectionTimeout = value; }
476 
485  inline Origin& WithConnectionTimeout(int value) { SetConnectionTimeout(value); return *this;}
486 
487 
494  inline const OriginShield& GetOriginShield() const{ return m_originShield; }
495 
502  inline bool OriginShieldHasBeenSet() const { return m_originShieldHasBeenSet; }
503 
510  inline void SetOriginShield(const OriginShield& value) { m_originShieldHasBeenSet = true; m_originShield = value; }
511 
518  inline void SetOriginShield(OriginShield&& value) { m_originShieldHasBeenSet = true; m_originShield = std::move(value); }
519 
526  inline Origin& WithOriginShield(const OriginShield& value) { SetOriginShield(value); return *this;}
527 
534  inline Origin& WithOriginShield(OriginShield&& value) { SetOriginShield(std::move(value)); return *this;}
535 
536  private:
537 
538  Aws::String m_id;
539  bool m_idHasBeenSet;
540 
541  Aws::String m_domainName;
542  bool m_domainNameHasBeenSet;
543 
544  Aws::String m_originPath;
545  bool m_originPathHasBeenSet;
546 
547  CustomHeaders m_customHeaders;
548  bool m_customHeadersHasBeenSet;
549 
550  S3OriginConfig m_s3OriginConfig;
551  bool m_s3OriginConfigHasBeenSet;
552 
553  CustomOriginConfig m_customOriginConfig;
554  bool m_customOriginConfigHasBeenSet;
555 
556  int m_connectionAttempts;
557  bool m_connectionAttemptsHasBeenSet;
558 
559  int m_connectionTimeout;
560  bool m_connectionTimeoutHasBeenSet;
561 
562  OriginShield m_originShield;
563  bool m_originShieldHasBeenSet;
564  };
565 
566 } // namespace Model
567 } // namespace CloudFront
568 } // namespace Aws
Aws::CloudFront::Model::Origin::WithCustomOriginConfig
Origin & WithCustomOriginConfig(CustomOriginConfig &&value)
Definition: Origin.h:387
Aws::CloudFront::Model::Origin::operator=
Origin & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::CloudFront::Model::Origin::IdHasBeenSet
bool IdHasBeenSet() const
Definition: Origin.h:70
Aws::CloudFront::Model::Origin::WithS3OriginConfig
Origin & WithS3OriginConfig(const S3OriginConfig &value)
Definition: Origin.h:330
Aws::CloudFront::Model::Origin::CustomHeadersHasBeenSet
bool CustomHeadersHasBeenSet() const
Definition: Origin.h:253
Aws::CloudFront::Model::Origin::SetDomainName
void SetDomainName(Aws::String &&value)
Definition: Origin.h:141
Aws::CloudFront::Model::Origin::SetOriginPath
void SetOriginPath(const char *value)
Definition: Origin.h:210
Aws::CloudFront::Model::Origin::SetDomainName
void SetDomainName(const Aws::String &value)
Definition: Origin.h:134
Aws::CloudFront::Model::CustomHeaders
Definition: CustomHeaders.h:33
Aws::CloudFront::Model::Origin::WithS3OriginConfig
Origin & WithS3OriginConfig(S3OriginConfig &&value)
Definition: Origin.h:338
Aws::CloudFront::Model::Origin::WithOriginPath
Origin & WithOriginPath(const Aws::String &value)
Definition: Origin.h:218
Aws::CloudFront::Model::Origin::WithOriginPath
Origin & WithOriginPath(Aws::String &&value)
Definition: Origin.h:226
Aws::CloudFront::Model::Origin::WithOriginShield
Origin & WithOriginShield(OriginShield &&value)
Definition: Origin.h:534
Aws::CloudFront::Model::Origin
Definition: Origin.h:49
Aws::CloudFront::Model::Origin::WithConnectionTimeout
Origin & WithConnectionTimeout(int value)
Definition: Origin.h:485
Aws::CloudFront::Model::Origin::WithOriginPath
Origin & WithOriginPath(const char *value)
Definition: Origin.h:234
S3OriginConfig.h
Aws::CloudFront::Model::Origin::SetConnectionTimeout
void SetConnectionTimeout(int value)
Definition: Origin.h:475
Aws::CloudFront::Model::Origin::AddToNode
void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
Aws::CloudFront::Model::Origin::SetOriginShield
void SetOriginShield(const OriginShield &value)
Definition: Origin.h:510
Aws::CloudFront::Model::Origin::WithConnectionAttempts
Origin & WithConnectionAttempts(int value)
Definition: Origin.h:444
Aws::CloudFront::Model::Origin::OriginPathHasBeenSet
bool OriginPathHasBeenSet() const
Definition: Origin.h:186
Aws::CloudFront::Model::CustomOriginConfig
Definition: CustomOriginConfig.h:36
CustomOriginConfig.h
Aws::CloudFront::Model::Origin::SetCustomHeaders
void SetCustomHeaders(const CustomHeaders &value)
Definition: Origin.h:262
Aws::CloudFront::Model::Origin::GetCustomOriginConfig
const CustomOriginConfig & GetCustomOriginConfig() const
Definition: Origin.h:347
Aws::CloudFront::Model::S3OriginConfig
Definition: S3OriginConfig.h:34
Aws::CloudFront::Model::Origin::GetDomainName
const Aws::String & GetDomainName() const
Definition: Origin.h:120
Aws::CloudFront::Model::Origin::SetConnectionAttempts
void SetConnectionAttempts(int value)
Definition: Origin.h:430
Aws::CloudFront::Model::Origin::WithId
Origin & WithId(const char *value)
Definition: Origin.h:112
Aws::CloudFront::Model::Origin::GetId
const Aws::String & GetId() const
Definition: Origin.h:63
Aws::CloudFront::Model::Origin::Origin
Origin()
CustomHeaders.h
Aws::CloudFront::Model::Origin::GetConnectionTimeout
int GetConnectionTimeout() const
Definition: Origin.h:455
Aws::CloudFront::Model::Origin::SetId
void SetId(Aws::String &&value)
Definition: Origin.h:84
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::CloudFront::Model::Origin::SetCustomOriginConfig
void SetCustomOriginConfig(CustomOriginConfig &&value)
Definition: Origin.h:371
Aws::CloudFront::Model::Origin::SetOriginPath
void SetOriginPath(Aws::String &&value)
Definition: Origin.h:202
Aws::CloudFront::Model::Origin::ConnectionTimeoutHasBeenSet
bool ConnectionTimeoutHasBeenSet() const
Definition: Origin.h:465
Aws::CloudFront::Model::Origin::GetCustomHeaders
const CustomHeaders & GetCustomHeaders() const
Definition: Origin.h:244
Aws::CloudFront::Model::Origin::GetOriginPath
const Aws::String & GetOriginPath() const
Definition: Origin.h:178
Aws::CloudFront::Model::Origin::WithId
Origin & WithId(Aws::String &&value)
Definition: Origin.h:105
Aws::CloudFront::Model::Origin::Origin
Origin(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::CloudFront::Model::Origin::WithCustomOriginConfig
Origin & WithCustomOriginConfig(const CustomOriginConfig &value)
Definition: Origin.h:379
Aws::CloudFront::Model::Origin::WithId
Origin & WithId(const Aws::String &value)
Definition: Origin.h:98
Aws::CloudFront::Model::Origin::WithCustomHeaders
Origin & WithCustomHeaders(CustomHeaders &&value)
Definition: Origin.h:289
Aws::CloudFront::Model::Origin::WithDomainName
Origin & WithDomainName(const char *value)
Definition: Origin.h:169
AWSString.h
Aws::CloudFront::Model::Origin::SetDomainName
void SetDomainName(const char *value)
Definition: Origin.h:148
Aws::CloudFront::Model::Origin::SetOriginPath
void SetOriginPath(const Aws::String &value)
Definition: Origin.h:194
Aws::CloudFront::Model::Origin::GetOriginShield
const OriginShield & GetOriginShield() const
Definition: Origin.h:494
AWS_CLOUDFRONT_API
#define AWS_CLOUDFRONT_API
Definition: CloudFront_EXPORTS.h:28
Aws::CloudFront::Model::Origin::SetCustomHeaders
void SetCustomHeaders(CustomHeaders &&value)
Definition: Origin.h:271
Aws::CloudFront::Model::Origin::CustomOriginConfigHasBeenSet
bool CustomOriginConfigHasBeenSet() const
Definition: Origin.h:355
Aws::CloudFront::Model::Origin::GetS3OriginConfig
const S3OriginConfig & GetS3OriginConfig() const
Definition: Origin.h:298
Aws::CloudFront::Model::Origin::WithOriginShield
Origin & WithOriginShield(const OriginShield &value)
Definition: Origin.h:526
CloudFront_EXPORTS.h
Aws::CloudFront::Model::Origin::SetS3OriginConfig
void SetS3OriginConfig(const S3OriginConfig &value)
Definition: Origin.h:314
Aws::CloudFront::Model::Origin::S3OriginConfigHasBeenSet
bool S3OriginConfigHasBeenSet() const
Definition: Origin.h:306
Aws::CloudFront::Model::Origin::SetS3OriginConfig
void SetS3OriginConfig(S3OriginConfig &&value)
Definition: Origin.h:322
Aws::CloudFront::Model::Origin::SetId
void SetId(const Aws::String &value)
Definition: Origin.h:77
Aws
Definition: AccessManagementClient.h:15
Aws::CloudFront::Model::Origin::WithDomainName
Origin & WithDomainName(Aws::String &&value)
Definition: Origin.h:162
Aws::CloudFront::Model::OriginShield
Definition: OriginShield.h:35
Aws::CloudFront::Model::Origin::GetConnectionAttempts
int GetConnectionAttempts() const
Definition: Origin.h:402
Aws::CloudFront::Model::Origin::SetId
void SetId(const char *value)
Definition: Origin.h:91
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CloudFront::Model::Origin::WithCustomHeaders
Origin & WithCustomHeaders(const CustomHeaders &value)
Definition: Origin.h:280
Aws::CloudFront::Model::Origin::DomainNameHasBeenSet
bool DomainNameHasBeenSet() const
Definition: Origin.h:127
Aws::CloudFront::Model::Origin::SetOriginShield
void SetOriginShield(OriginShield &&value)
Definition: Origin.h:518
Aws::CloudFront::Model::Origin::OriginShieldHasBeenSet
bool OriginShieldHasBeenSet() const
Definition: Origin.h:502
OriginShield.h
Aws::CloudFront::Model::Origin::ConnectionAttemptsHasBeenSet
bool ConnectionAttemptsHasBeenSet() const
Definition: Origin.h:416
Aws::CloudFront::Model::Origin::WithDomainName
Origin & WithDomainName(const Aws::String &value)
Definition: Origin.h:155
Aws::CloudFront::Model::Origin::SetCustomOriginConfig
void SetCustomOriginConfig(const CustomOriginConfig &value)
Definition: Origin.h:363