AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Origin.h
1
6#pragma once
7#include <aws/cloudfront/CloudFront_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/cloudfront/model/CustomHeaders.h>
10#include <aws/cloudfront/model/S3OriginConfig.h>
11#include <aws/cloudfront/model/CustomOriginConfig.h>
12#include <aws/cloudfront/model/OriginShield.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Xml
20{
21 class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace CloudFront
25{
26namespace Model
27{
28
48 class Origin
49 {
50 public:
51 AWS_CLOUDFRONT_API Origin();
52 AWS_CLOUDFRONT_API Origin(const Aws::Utils::Xml::XmlNode& xmlNode);
53 AWS_CLOUDFRONT_API Origin& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
54
55 AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
56
57
59
64 inline const Aws::String& GetId() const{ return m_id; }
65 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
66 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
67 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
68 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
69 inline Origin& WithId(const Aws::String& value) { SetId(value); return *this;}
70 inline Origin& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
71 inline Origin& WithId(const char* value) { SetId(value); return *this;}
73
75
80 inline const Aws::String& GetDomainName() const{ return m_domainName; }
81 inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
82 inline void SetDomainName(const Aws::String& value) { m_domainNameHasBeenSet = true; m_domainName = value; }
83 inline void SetDomainName(Aws::String&& value) { m_domainNameHasBeenSet = true; m_domainName = std::move(value); }
84 inline void SetDomainName(const char* value) { m_domainNameHasBeenSet = true; m_domainName.assign(value); }
85 inline Origin& WithDomainName(const Aws::String& value) { SetDomainName(value); return *this;}
86 inline Origin& WithDomainName(Aws::String&& value) { SetDomainName(std::move(value)); return *this;}
87 inline Origin& WithDomainName(const char* value) { SetDomainName(value); return *this;}
89
91
97 inline const Aws::String& GetOriginPath() const{ return m_originPath; }
98 inline bool OriginPathHasBeenSet() const { return m_originPathHasBeenSet; }
99 inline void SetOriginPath(const Aws::String& value) { m_originPathHasBeenSet = true; m_originPath = value; }
100 inline void SetOriginPath(Aws::String&& value) { m_originPathHasBeenSet = true; m_originPath = std::move(value); }
101 inline void SetOriginPath(const char* value) { m_originPathHasBeenSet = true; m_originPath.assign(value); }
102 inline Origin& WithOriginPath(const Aws::String& value) { SetOriginPath(value); return *this;}
103 inline Origin& WithOriginPath(Aws::String&& value) { SetOriginPath(std::move(value)); return *this;}
104 inline Origin& WithOriginPath(const char* value) { SetOriginPath(value); return *this;}
106
108
115 inline const CustomHeaders& GetCustomHeaders() const{ return m_customHeaders; }
116 inline bool CustomHeadersHasBeenSet() const { return m_customHeadersHasBeenSet; }
117 inline void SetCustomHeaders(const CustomHeaders& value) { m_customHeadersHasBeenSet = true; m_customHeaders = value; }
118 inline void SetCustomHeaders(CustomHeaders&& value) { m_customHeadersHasBeenSet = true; m_customHeaders = std::move(value); }
119 inline Origin& WithCustomHeaders(const CustomHeaders& value) { SetCustomHeaders(value); return *this;}
120 inline Origin& WithCustomHeaders(CustomHeaders&& value) { SetCustomHeaders(std::move(value)); return *this;}
122
124
130 inline const S3OriginConfig& GetS3OriginConfig() const{ return m_s3OriginConfig; }
131 inline bool S3OriginConfigHasBeenSet() const { return m_s3OriginConfigHasBeenSet; }
132 inline void SetS3OriginConfig(const S3OriginConfig& value) { m_s3OriginConfigHasBeenSet = true; m_s3OriginConfig = value; }
133 inline void SetS3OriginConfig(S3OriginConfig&& value) { m_s3OriginConfigHasBeenSet = true; m_s3OriginConfig = std::move(value); }
134 inline Origin& WithS3OriginConfig(const S3OriginConfig& value) { SetS3OriginConfig(value); return *this;}
135 inline Origin& WithS3OriginConfig(S3OriginConfig&& value) { SetS3OriginConfig(std::move(value)); return *this;}
137
139
145 inline const CustomOriginConfig& GetCustomOriginConfig() const{ return m_customOriginConfig; }
146 inline bool CustomOriginConfigHasBeenSet() const { return m_customOriginConfigHasBeenSet; }
147 inline void SetCustomOriginConfig(const CustomOriginConfig& value) { m_customOriginConfigHasBeenSet = true; m_customOriginConfig = value; }
148 inline void SetCustomOriginConfig(CustomOriginConfig&& value) { m_customOriginConfigHasBeenSet = true; m_customOriginConfig = std::move(value); }
149 inline Origin& WithCustomOriginConfig(const CustomOriginConfig& value) { SetCustomOriginConfig(value); return *this;}
150 inline Origin& WithCustomOriginConfig(CustomOriginConfig&& value) { SetCustomOriginConfig(std::move(value)); return *this;}
152
154
166 inline int GetConnectionAttempts() const{ return m_connectionAttempts; }
167 inline bool ConnectionAttemptsHasBeenSet() const { return m_connectionAttemptsHasBeenSet; }
168 inline void SetConnectionAttempts(int value) { m_connectionAttemptsHasBeenSet = true; m_connectionAttempts = value; }
169 inline Origin& WithConnectionAttempts(int value) { SetConnectionAttempts(value); return *this;}
171
173
181 inline int GetConnectionTimeout() const{ return m_connectionTimeout; }
182 inline bool ConnectionTimeoutHasBeenSet() const { return m_connectionTimeoutHasBeenSet; }
183 inline void SetConnectionTimeout(int value) { m_connectionTimeoutHasBeenSet = true; m_connectionTimeout = value; }
184 inline Origin& WithConnectionTimeout(int value) { SetConnectionTimeout(value); return *this;}
186
188
194 inline const OriginShield& GetOriginShield() const{ return m_originShield; }
195 inline bool OriginShieldHasBeenSet() const { return m_originShieldHasBeenSet; }
196 inline void SetOriginShield(const OriginShield& value) { m_originShieldHasBeenSet = true; m_originShield = value; }
197 inline void SetOriginShield(OriginShield&& value) { m_originShieldHasBeenSet = true; m_originShield = std::move(value); }
198 inline Origin& WithOriginShield(const OriginShield& value) { SetOriginShield(value); return *this;}
199 inline Origin& WithOriginShield(OriginShield&& value) { SetOriginShield(std::move(value)); return *this;}
201
203
210 inline const Aws::String& GetOriginAccessControlId() const{ return m_originAccessControlId; }
211 inline bool OriginAccessControlIdHasBeenSet() const { return m_originAccessControlIdHasBeenSet; }
212 inline void SetOriginAccessControlId(const Aws::String& value) { m_originAccessControlIdHasBeenSet = true; m_originAccessControlId = value; }
213 inline void SetOriginAccessControlId(Aws::String&& value) { m_originAccessControlIdHasBeenSet = true; m_originAccessControlId = std::move(value); }
214 inline void SetOriginAccessControlId(const char* value) { m_originAccessControlIdHasBeenSet = true; m_originAccessControlId.assign(value); }
215 inline Origin& WithOriginAccessControlId(const Aws::String& value) { SetOriginAccessControlId(value); return *this;}
216 inline Origin& WithOriginAccessControlId(Aws::String&& value) { SetOriginAccessControlId(std::move(value)); return *this;}
217 inline Origin& WithOriginAccessControlId(const char* value) { SetOriginAccessControlId(value); return *this;}
219 private:
220
221 Aws::String m_id;
222 bool m_idHasBeenSet = false;
223
224 Aws::String m_domainName;
225 bool m_domainNameHasBeenSet = false;
226
227 Aws::String m_originPath;
228 bool m_originPathHasBeenSet = false;
229
230 CustomHeaders m_customHeaders;
231 bool m_customHeadersHasBeenSet = false;
232
233 S3OriginConfig m_s3OriginConfig;
234 bool m_s3OriginConfigHasBeenSet = false;
235
236 CustomOriginConfig m_customOriginConfig;
237 bool m_customOriginConfigHasBeenSet = false;
238
239 int m_connectionAttempts;
240 bool m_connectionAttemptsHasBeenSet = false;
241
242 int m_connectionTimeout;
243 bool m_connectionTimeoutHasBeenSet = false;
244
245 OriginShield m_originShield;
246 bool m_originShieldHasBeenSet = false;
247
248 Aws::String m_originAccessControlId;
249 bool m_originAccessControlIdHasBeenSet = false;
250 };
251
252} // namespace Model
253} // namespace CloudFront
254} // namespace Aws
AWS_CLOUDFRONT_API Origin & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
bool CustomOriginConfigHasBeenSet() const
Definition Origin.h:146
void SetCustomHeaders(const CustomHeaders &value)
Definition Origin.h:117
bool S3OriginConfigHasBeenSet() const
Definition Origin.h:131
Origin & WithDomainName(const char *value)
Definition Origin.h:87
const Aws::String & GetId() const
Definition Origin.h:64
Origin & WithId(const char *value)
Definition Origin.h:71
void SetOriginPath(const char *value)
Definition Origin.h:101
Origin & WithOriginAccessControlId(const char *value)
Definition Origin.h:217
void SetOriginPath(const Aws::String &value)
Definition Origin.h:99
AWS_CLOUDFRONT_API Origin()
Origin & WithCustomHeaders(const CustomHeaders &value)
Definition Origin.h:119
int GetConnectionAttempts() const
Definition Origin.h:166
Origin & WithOriginShield(const OriginShield &value)
Definition Origin.h:198
void SetS3OriginConfig(const S3OriginConfig &value)
Definition Origin.h:132
bool CustomHeadersHasBeenSet() const
Definition Origin.h:116
Origin & WithCustomHeaders(CustomHeaders &&value)
Definition Origin.h:120
void SetOriginShield(const OriginShield &value)
Definition Origin.h:196
bool DomainNameHasBeenSet() const
Definition Origin.h:81
Origin & WithId(const Aws::String &value)
Definition Origin.h:69
void SetOriginPath(Aws::String &&value)
Definition Origin.h:100
Origin & WithOriginPath(Aws::String &&value)
Definition Origin.h:103
void SetOriginAccessControlId(const char *value)
Definition Origin.h:214
bool ConnectionTimeoutHasBeenSet() const
Definition Origin.h:182
void SetConnectionTimeout(int value)
Definition Origin.h:183
void SetCustomHeaders(CustomHeaders &&value)
Definition Origin.h:118
void SetId(Aws::String &&value)
Definition Origin.h:67
void SetOriginAccessControlId(const Aws::String &value)
Definition Origin.h:212
int GetConnectionTimeout() const
Definition Origin.h:181
void SetS3OriginConfig(S3OriginConfig &&value)
Definition Origin.h:133
void SetCustomOriginConfig(CustomOriginConfig &&value)
Definition Origin.h:148
void SetId(const Aws::String &value)
Definition Origin.h:66
void SetId(const char *value)
Definition Origin.h:68
Origin & WithCustomOriginConfig(const CustomOriginConfig &value)
Definition Origin.h:149
const CustomOriginConfig & GetCustomOriginConfig() const
Definition Origin.h:145
Origin & WithDomainName(const Aws::String &value)
Definition Origin.h:85
void SetConnectionAttempts(int value)
Definition Origin.h:168
Origin & WithOriginAccessControlId(const Aws::String &value)
Definition Origin.h:215
const Aws::String & GetOriginAccessControlId() const
Definition Origin.h:210
const CustomHeaders & GetCustomHeaders() const
Definition Origin.h:115
bool ConnectionAttemptsHasBeenSet() const
Definition Origin.h:167
AWS_CLOUDFRONT_API Origin(const Aws::Utils::Xml::XmlNode &xmlNode)
Origin & WithConnectionTimeout(int value)
Definition Origin.h:184
const OriginShield & GetOriginShield() const
Definition Origin.h:194
AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
void SetDomainName(const char *value)
Definition Origin.h:84
const S3OriginConfig & GetS3OriginConfig() const
Definition Origin.h:130
Origin & WithOriginAccessControlId(Aws::String &&value)
Definition Origin.h:216
Origin & WithOriginPath(const Aws::String &value)
Definition Origin.h:102
Origin & WithS3OriginConfig(const S3OriginConfig &value)
Definition Origin.h:134
void SetOriginAccessControlId(Aws::String &&value)
Definition Origin.h:213
Origin & WithOriginPath(const char *value)
Definition Origin.h:104
void SetOriginShield(OriginShield &&value)
Definition Origin.h:197
Origin & WithConnectionAttempts(int value)
Definition Origin.h:169
void SetCustomOriginConfig(const CustomOriginConfig &value)
Definition Origin.h:147
bool OriginShieldHasBeenSet() const
Definition Origin.h:195
Origin & WithDomainName(Aws::String &&value)
Definition Origin.h:86
Origin & WithOriginShield(OriginShield &&value)
Definition Origin.h:199
void SetDomainName(const Aws::String &value)
Definition Origin.h:82
const Aws::String & GetDomainName() const
Definition Origin.h:80
void SetDomainName(Aws::String &&value)
Definition Origin.h:83
bool OriginAccessControlIdHasBeenSet() const
Definition Origin.h:211
bool OriginPathHasBeenSet() const
Definition Origin.h:98
Origin & WithId(Aws::String &&value)
Definition Origin.h:70
const Aws::String & GetOriginPath() const
Definition Origin.h:97
Origin & WithCustomOriginConfig(CustomOriginConfig &&value)
Definition Origin.h:150
Origin & WithS3OriginConfig(S3OriginConfig &&value)
Definition Origin.h:135
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String