AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
GeoRestrictionCustomization.h
1
6#pragma once
7#include <aws/cloudfront/CloudFront_EXPORTS.h>
8#include <aws/cloudfront/model/GeoRestrictionType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Xml {
17class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace CloudFront {
21namespace Model {
22
30 public:
31 AWS_CLOUDFRONT_API GeoRestrictionCustomization() = default;
32 AWS_CLOUDFRONT_API GeoRestrictionCustomization(const Aws::Utils::Xml::XmlNode& xmlNode);
34
35 AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
36
38
48 inline GeoRestrictionType GetRestrictionType() const { return m_restrictionType; }
49 inline bool RestrictionTypeHasBeenSet() const { return m_restrictionTypeHasBeenSet; }
51 m_restrictionTypeHasBeenSet = true;
52 m_restrictionType = value;
53 }
55 SetRestrictionType(value);
56 return *this;
57 }
59
61
64 inline const Aws::Vector<Aws::String>& GetLocations() const { return m_locations; }
65 inline bool LocationsHasBeenSet() const { return m_locationsHasBeenSet; }
66 template <typename LocationsT = Aws::Vector<Aws::String>>
67 void SetLocations(LocationsT&& value) {
68 m_locationsHasBeenSet = true;
69 m_locations = std::forward<LocationsT>(value);
70 }
71 template <typename LocationsT = Aws::Vector<Aws::String>>
73 SetLocations(std::forward<LocationsT>(value));
74 return *this;
75 }
76 template <typename LocationsT = Aws::String>
78 m_locationsHasBeenSet = true;
79 m_locations.emplace_back(std::forward<LocationsT>(value));
80 return *this;
81 }
83 private:
85
86 Aws::Vector<Aws::String> m_locations;
87 bool m_restrictionTypeHasBeenSet = false;
88 bool m_locationsHasBeenSet = false;
89};
90
91} // namespace Model
92} // namespace CloudFront
93} // namespace Aws
const Aws::Vector< Aws::String > & GetLocations() const
GeoRestrictionCustomization & WithLocations(LocationsT &&value)
AWS_CLOUDFRONT_API GeoRestrictionCustomization()=default
AWS_CLOUDFRONT_API GeoRestrictionCustomization & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
GeoRestrictionCustomization & AddLocations(LocationsT &&value)
AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
AWS_CLOUDFRONT_API GeoRestrictionCustomization(const Aws::Utils::Xml::XmlNode &xmlNode)
GeoRestrictionCustomization & WithRestrictionType(GeoRestrictionType value)
std::vector< T, Aws::Allocator< T > > Vector