AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GeoRestriction.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/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace CloudFront
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_CLOUDFRONT_API GeoRestriction();
38 AWS_CLOUDFRONT_API GeoRestriction(const Aws::Utils::Xml::XmlNode& xmlNode);
39 AWS_CLOUDFRONT_API GeoRestriction& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
40
41 AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
42
43
45
55 inline const GeoRestrictionType& GetRestrictionType() const{ return m_restrictionType; }
56 inline bool RestrictionTypeHasBeenSet() const { return m_restrictionTypeHasBeenSet; }
57 inline void SetRestrictionType(const GeoRestrictionType& value) { m_restrictionTypeHasBeenSet = true; m_restrictionType = value; }
58 inline void SetRestrictionType(GeoRestrictionType&& value) { m_restrictionTypeHasBeenSet = true; m_restrictionType = std::move(value); }
59 inline GeoRestriction& WithRestrictionType(const GeoRestrictionType& value) { SetRestrictionType(value); return *this;}
60 inline GeoRestriction& WithRestrictionType(GeoRestrictionType&& value) { SetRestrictionType(std::move(value)); return *this;}
62
64
70 inline int GetQuantity() const{ return m_quantity; }
71 inline bool QuantityHasBeenSet() const { return m_quantityHasBeenSet; }
72 inline void SetQuantity(int value) { m_quantityHasBeenSet = true; m_quantity = value; }
73 inline GeoRestriction& WithQuantity(int value) { SetQuantity(value); return *this;}
75
77
91 inline const Aws::Vector<Aws::String>& GetItems() const{ return m_items; }
92 inline bool ItemsHasBeenSet() const { return m_itemsHasBeenSet; }
93 inline void SetItems(const Aws::Vector<Aws::String>& value) { m_itemsHasBeenSet = true; m_items = value; }
94 inline void SetItems(Aws::Vector<Aws::String>&& value) { m_itemsHasBeenSet = true; m_items = std::move(value); }
95 inline GeoRestriction& WithItems(const Aws::Vector<Aws::String>& value) { SetItems(value); return *this;}
96 inline GeoRestriction& WithItems(Aws::Vector<Aws::String>&& value) { SetItems(std::move(value)); return *this;}
97 inline GeoRestriction& AddItems(const Aws::String& value) { m_itemsHasBeenSet = true; m_items.push_back(value); return *this; }
98 inline GeoRestriction& AddItems(Aws::String&& value) { m_itemsHasBeenSet = true; m_items.push_back(std::move(value)); return *this; }
99 inline GeoRestriction& AddItems(const char* value) { m_itemsHasBeenSet = true; m_items.push_back(value); return *this; }
101 private:
102
103 GeoRestrictionType m_restrictionType;
104 bool m_restrictionTypeHasBeenSet = false;
105
106 int m_quantity;
107 bool m_quantityHasBeenSet = false;
108
110 bool m_itemsHasBeenSet = false;
111 };
112
113} // namespace Model
114} // namespace CloudFront
115} // namespace Aws
GeoRestriction & WithItems(Aws::Vector< Aws::String > &&value)
void SetItems(Aws::Vector< Aws::String > &&value)
AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
GeoRestriction & WithRestrictionType(const GeoRestrictionType &value)
GeoRestriction & WithRestrictionType(GeoRestrictionType &&value)
const Aws::Vector< Aws::String > & GetItems() const
GeoRestriction & WithItems(const Aws::Vector< Aws::String > &value)
void SetRestrictionType(GeoRestrictionType &&value)
void SetRestrictionType(const GeoRestrictionType &value)
AWS_CLOUDFRONT_API GeoRestriction & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const GeoRestrictionType & GetRestrictionType() const
GeoRestriction & AddItems(const char *value)
GeoRestriction & AddItems(Aws::String &&value)
void SetItems(const Aws::Vector< Aws::String > &value)
GeoRestriction & WithQuantity(int value)
GeoRestriction & AddItems(const Aws::String &value)
AWS_CLOUDFRONT_API GeoRestriction(const Aws::Utils::Xml::XmlNode &xmlNode)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector