AWS SDK for C++  0.12.9
AWS SDK for C++
Restrictions.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
18 
19 namespace Aws
20 {
21 namespace Utils
22 {
23 namespace Xml
24 {
25  class XmlNode;
26 } // namespace Xml
27 } // namespace Utils
28 namespace CloudFront
29 {
30 namespace Model
31 {
32 
38  {
39  public:
40  Restrictions();
41  Restrictions(const Aws::Utils::Xml::XmlNode& xmlNode);
42  Restrictions& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
43 
44  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
45 
46 
47  inline const GeoRestriction& GetGeoRestriction() const{ return m_geoRestriction; }
48 
49 
50  inline void SetGeoRestriction(const GeoRestriction& value) { m_geoRestrictionHasBeenSet = true; m_geoRestriction = value; }
51 
52 
53  inline void SetGeoRestriction(GeoRestriction&& value) { m_geoRestrictionHasBeenSet = true; m_geoRestriction = value; }
54 
55 
56  inline Restrictions& WithGeoRestriction(const GeoRestriction& value) { SetGeoRestriction(value); return *this;}
57 
58 
59  inline Restrictions& WithGeoRestriction(GeoRestriction&& value) { SetGeoRestriction(value); return *this;}
60 
61  private:
62  GeoRestriction m_geoRestriction;
63  bool m_geoRestrictionHasBeenSet;
64  };
65 
66 } // namespace Model
67 } // namespace CloudFront
68 } // namespace Aws
void SetGeoRestriction(GeoRestriction &&value)
Definition: Restrictions.h:53
void SetGeoRestriction(const GeoRestriction &value)
Definition: Restrictions.h:50
#define AWS_CLOUDFRONT_API
Restrictions & WithGeoRestriction(GeoRestriction &&value)
Definition: Restrictions.h:59
const GeoRestriction & GetGeoRestriction() const
Definition: Restrictions.h:47
Restrictions & WithGeoRestriction(const GeoRestriction &value)
Definition: Restrictions.h:56
JSON (JavaScript Object Notation).