AWS SDK for C++

AWS SDK for C++ Version 1.11.744

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
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Xml {
15class XmlNode;
16} // namespace Xml
17} // namespace Utils
18namespace CloudFront {
19namespace Model {
20
28 public:
29 AWS_CLOUDFRONT_API Restrictions() = default;
30 AWS_CLOUDFRONT_API Restrictions(const Aws::Utils::Xml::XmlNode& xmlNode);
31 AWS_CLOUDFRONT_API Restrictions& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
32
33 AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
34
36
41 inline const GeoRestriction& GetGeoRestriction() const { return m_geoRestriction; }
42 inline bool GeoRestrictionHasBeenSet() const { return m_geoRestrictionHasBeenSet; }
43 template <typename GeoRestrictionT = GeoRestriction>
44 void SetGeoRestriction(GeoRestrictionT&& value) {
45 m_geoRestrictionHasBeenSet = true;
46 m_geoRestriction = std::forward<GeoRestrictionT>(value);
47 }
48 template <typename GeoRestrictionT = GeoRestriction>
49 Restrictions& WithGeoRestriction(GeoRestrictionT&& value) {
50 SetGeoRestriction(std::forward<GeoRestrictionT>(value));
51 return *this;
52 }
54 private:
55 GeoRestriction m_geoRestriction;
56 bool m_geoRestrictionHasBeenSet = false;
57};
58
59} // namespace Model
60} // namespace CloudFront
61} // 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)