AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetGeoRestriction(const GeoRestriction& value) { m_geoRestrictionHasBeenSet = true; m_geoRestriction = value; }
50 inline void SetGeoRestriction(GeoRestriction&& value) { m_geoRestrictionHasBeenSet = true; m_geoRestriction = std::move(value); }
51 inline Restrictions& WithGeoRestriction(const GeoRestriction& value) { SetGeoRestriction(value); return *this;}
52 inline Restrictions& WithGeoRestriction(GeoRestriction&& value) { SetGeoRestriction(std::move(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(const GeoRestriction &value)
AWS_CLOUDFRONT_API Restrictions(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetGeoRestriction(GeoRestriction &&value)
AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
AWS_CLOUDFRONT_API Restrictions & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Restrictions & WithGeoRestriction(const GeoRestriction &value)
const GeoRestriction & GetGeoRestriction() const
Restrictions & WithGeoRestriction(GeoRestriction &&value)