AWS SDK for C++  1.9.123
AWS SDK for C++
Restrictions.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Xml
16 {
17  class XmlNode;
18 } // namespace Xml
19 } // namespace Utils
20 namespace CloudFront
21 {
22 namespace Model
23 {
24 
32  {
33  public:
37 
38  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
39 
40 
46  inline const GeoRestriction& GetGeoRestriction() const{ return m_geoRestriction; }
47 
53  inline bool GeoRestrictionHasBeenSet() const { return m_geoRestrictionHasBeenSet; }
54 
60  inline void SetGeoRestriction(const GeoRestriction& value) { m_geoRestrictionHasBeenSet = true; m_geoRestriction = value; }
61 
67  inline void SetGeoRestriction(GeoRestriction&& value) { m_geoRestrictionHasBeenSet = true; m_geoRestriction = std::move(value); }
68 
74  inline Restrictions& WithGeoRestriction(const GeoRestriction& value) { SetGeoRestriction(value); return *this;}
75 
81  inline Restrictions& WithGeoRestriction(GeoRestriction&& value) { SetGeoRestriction(std::move(value)); return *this;}
82 
83  private:
84 
85  GeoRestriction m_geoRestriction;
86  bool m_geoRestrictionHasBeenSet;
87  };
88 
89 } // namespace Model
90 } // namespace CloudFront
91 } // namespace Aws
Aws::CloudFront::Model::Restrictions
Definition: Restrictions.h:32
Aws::CloudFront::Model::Restrictions::GeoRestrictionHasBeenSet
bool GeoRestrictionHasBeenSet() const
Definition: Restrictions.h:53
Aws::CloudFront::Model::Restrictions::SetGeoRestriction
void SetGeoRestriction(const GeoRestriction &value)
Definition: Restrictions.h:60
Aws::CloudFront::Model::Restrictions::AddToNode
void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
GeoRestriction.h
Aws::CloudFront::Model::Restrictions::SetGeoRestriction
void SetGeoRestriction(GeoRestriction &&value)
Definition: Restrictions.h:67
AWS_CLOUDFRONT_API
#define AWS_CLOUDFRONT_API
Definition: CloudFront_EXPORTS.h:28
Aws::CloudFront::Model::Restrictions::GetGeoRestriction
const GeoRestriction & GetGeoRestriction() const
Definition: Restrictions.h:46
CloudFront_EXPORTS.h
Aws::CloudFront::Model::Restrictions::WithGeoRestriction
Restrictions & WithGeoRestriction(GeoRestriction &&value)
Definition: Restrictions.h:81
Aws
Definition: AccessManagementClient.h:15
Aws::CloudFront::Model::Restrictions::WithGeoRestriction
Restrictions & WithGeoRestriction(const GeoRestriction &value)
Definition: Restrictions.h:74
Aws::CloudFront::Model::Restrictions::operator=
Restrictions & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::CloudFront::Model::Restrictions::Restrictions
Restrictions(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::CloudFront::Model::Restrictions::Restrictions
Restrictions()
Aws::CloudFront::Model::GeoRestriction
Definition: GeoRestriction.h:35