AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
Restrictions.h
1
6#pragma once
7#include <aws/cloudfront/CloudFront_EXPORTS.h>
8#include <aws/cloudfront/model/GeoRestriction.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Xml
16{
17 class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace CloudFront
21{
22namespace Model
23{
24
32 {
33 public:
34 AWS_CLOUDFRONT_API Restrictions() = default;
35 AWS_CLOUDFRONT_API Restrictions(const Aws::Utils::Xml::XmlNode& xmlNode);
36 AWS_CLOUDFRONT_API Restrictions& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
37
38 AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
39
40
42
47 inline const GeoRestriction& GetGeoRestriction() const { return m_geoRestriction; }
48 inline bool GeoRestrictionHasBeenSet() const { return m_geoRestrictionHasBeenSet; }
49 template<typename GeoRestrictionT = GeoRestriction>
50 void SetGeoRestriction(GeoRestrictionT&& value) { m_geoRestrictionHasBeenSet = true; m_geoRestriction = std::forward<GeoRestrictionT>(value); }
51 template<typename GeoRestrictionT = GeoRestriction>
52 Restrictions& WithGeoRestriction(GeoRestrictionT&& value) { SetGeoRestriction(std::forward<GeoRestrictionT>(value)); return *this;}
54 private:
55
56 GeoRestriction m_geoRestriction;
57 bool m_geoRestrictionHasBeenSet = false;
58 };
59
60} // namespace Model
61} // namespace CloudFront
62} // namespace Aws
void SetGeoRestriction(GeoRestrictionT &&value)
AWS_CLOUDFRONT_API Restrictions(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
AWS_CLOUDFRONT_API Restrictions & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_CLOUDFRONT_API Restrictions()=default
const GeoRestriction & GetGeoRestriction() const
Restrictions & WithGeoRestriction(GeoRestrictionT &&value)