AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
Customizations.h
1
6#pragma once
7#include <aws/cloudfront/CloudFront_EXPORTS.h>
8#include <aws/cloudfront/model/WebAclCustomization.h>
9#include <aws/cloudfront/model/Certificate.h>
10#include <aws/cloudfront/model/GeoRestrictionCustomization.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace CloudFront
23{
24namespace Model
25{
26
37 {
38 public:
39 AWS_CLOUDFRONT_API Customizations() = default;
40 AWS_CLOUDFRONT_API Customizations(const Aws::Utils::Xml::XmlNode& xmlNode);
41 AWS_CLOUDFRONT_API Customizations& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
42
43 AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
44
45
47
50 inline const WebAclCustomization& GetWebAcl() const { return m_webAcl; }
51 inline bool WebAclHasBeenSet() const { return m_webAclHasBeenSet; }
52 template<typename WebAclT = WebAclCustomization>
53 void SetWebAcl(WebAclT&& value) { m_webAclHasBeenSet = true; m_webAcl = std::forward<WebAclT>(value); }
54 template<typename WebAclT = WebAclCustomization>
55 Customizations& WithWebAcl(WebAclT&& value) { SetWebAcl(std::forward<WebAclT>(value)); return *this;}
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) { m_certificateHasBeenSet = true; m_certificate = std::forward<CertificateT>(value); }
66 template<typename CertificateT = Certificate>
67 Customizations& WithCertificate(CertificateT&& value) { SetCertificate(std::forward<CertificateT>(value)); return *this;}
69
71
74 inline const GeoRestrictionCustomization& GetGeoRestrictions() const { return m_geoRestrictions; }
75 inline bool GeoRestrictionsHasBeenSet() const { return m_geoRestrictionsHasBeenSet; }
76 template<typename GeoRestrictionsT = GeoRestrictionCustomization>
77 void SetGeoRestrictions(GeoRestrictionsT&& value) { m_geoRestrictionsHasBeenSet = true; m_geoRestrictions = std::forward<GeoRestrictionsT>(value); }
78 template<typename GeoRestrictionsT = GeoRestrictionCustomization>
79 Customizations& WithGeoRestrictions(GeoRestrictionsT&& value) { SetGeoRestrictions(std::forward<GeoRestrictionsT>(value)); return *this;}
81 private:
82
83 WebAclCustomization m_webAcl;
84 bool m_webAclHasBeenSet = false;
85
86 Certificate m_certificate;
87 bool m_certificateHasBeenSet = false;
88
89 GeoRestrictionCustomization m_geoRestrictions;
90 bool m_geoRestrictionsHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace CloudFront
95} // 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)