AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
Customizations.h
1
6#pragma once
7#include <aws/cloudfront/CloudFront_EXPORTS.h>
8#include <aws/cloudfront/model/Certificate.h>
9#include <aws/cloudfront/model/GeoRestrictionCustomization.h>
10#include <aws/cloudfront/model/WebAclCustomization.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Xml {
17class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace CloudFront {
21namespace Model {
22
33 public:
34 AWS_CLOUDFRONT_API Customizations() = default;
35 AWS_CLOUDFRONT_API Customizations(const Aws::Utils::Xml::XmlNode& xmlNode);
36 AWS_CLOUDFRONT_API Customizations& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
37
38 AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
39
41
44 inline const WebAclCustomization& GetWebAcl() const { return m_webAcl; }
45 inline bool WebAclHasBeenSet() const { return m_webAclHasBeenSet; }
46 template <typename WebAclT = WebAclCustomization>
47 void SetWebAcl(WebAclT&& value) {
48 m_webAclHasBeenSet = true;
49 m_webAcl = std::forward<WebAclT>(value);
50 }
51 template <typename WebAclT = WebAclCustomization>
52 Customizations& WithWebAcl(WebAclT&& value) {
53 SetWebAcl(std::forward<WebAclT>(value));
54 return *this;
55 }
57
59
62 inline const Certificate& GetCertificate() const { return m_certificate; }
63 inline bool CertificateHasBeenSet() const { return m_certificateHasBeenSet; }
64 template <typename CertificateT = Certificate>
65 void SetCertificate(CertificateT&& value) {
66 m_certificateHasBeenSet = true;
67 m_certificate = std::forward<CertificateT>(value);
68 }
69 template <typename CertificateT = Certificate>
70 Customizations& WithCertificate(CertificateT&& value) {
71 SetCertificate(std::forward<CertificateT>(value));
72 return *this;
73 }
75
77
80 inline const GeoRestrictionCustomization& GetGeoRestrictions() const { return m_geoRestrictions; }
81 inline bool GeoRestrictionsHasBeenSet() const { return m_geoRestrictionsHasBeenSet; }
82 template <typename GeoRestrictionsT = GeoRestrictionCustomization>
83 void SetGeoRestrictions(GeoRestrictionsT&& value) {
84 m_geoRestrictionsHasBeenSet = true;
85 m_geoRestrictions = std::forward<GeoRestrictionsT>(value);
86 }
87 template <typename GeoRestrictionsT = GeoRestrictionCustomization>
88 Customizations& WithGeoRestrictions(GeoRestrictionsT&& value) {
89 SetGeoRestrictions(std::forward<GeoRestrictionsT>(value));
90 return *this;
91 }
93 private:
94 WebAclCustomization m_webAcl;
95
96 Certificate m_certificate;
97
98 GeoRestrictionCustomization m_geoRestrictions;
99 bool m_webAclHasBeenSet = false;
100 bool m_certificateHasBeenSet = false;
101 bool m_geoRestrictionsHasBeenSet = false;
102};
103
104} // namespace Model
105} // namespace CloudFront
106} // namespace Aws
void SetCertificate(CertificateT &&value)
Customizations & WithGeoRestrictions(GeoRestrictionsT &&value)
AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
Customizations & WithWebAcl(WebAclT &&value)
const WebAclCustomization & GetWebAcl() const
AWS_CLOUDFRONT_API Customizations()=default
const Certificate & GetCertificate() const
AWS_CLOUDFRONT_API Customizations & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const GeoRestrictionCustomization & GetGeoRestrictions() const
void SetGeoRestrictions(GeoRestrictionsT &&value)
AWS_CLOUDFRONT_API Customizations(const Aws::Utils::Xml::XmlNode &xmlNode)
Customizations & WithCertificate(CertificateT &&value)