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>
70 inline void SetQuantity(
int value) { m_quantityHasBeenSet =
true; m_quantity = value; }
91 template<
typename ItemsT = Aws::Vector<Aws::String>>
92 void SetItems(ItemsT&& value) { m_itemsHasBeenSet =
true; m_items = std::forward<ItemsT>(value); }
93 template<
typename ItemsT = Aws::Vector<Aws::String>>
95 template<
typename ItemsT = Aws::String>
96 GeoRestriction&
AddItems(ItemsT&& value) { m_itemsHasBeenSet =
true; m_items.emplace_back(std::forward<ItemsT>(value));
return *
this; }
101 bool m_restrictionTypeHasBeenSet =
false;
104 bool m_quantityHasBeenSet =
false;
107 bool m_itemsHasBeenSet =
false;
bool RestrictionTypeHasBeenSet() const
bool QuantityHasBeenSet() const
AWS_CLOUDFRONT_API GeoRestriction()=default
void SetItems(ItemsT &&value)
AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
void SetRestrictionType(GeoRestrictionType value)
const Aws::Vector< Aws::String > & GetItems() const
GeoRestriction & WithItems(ItemsT &&value)
bool ItemsHasBeenSet() const
AWS_CLOUDFRONT_API GeoRestriction & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
GeoRestriction & AddItems(ItemsT &&value)
GeoRestriction & WithRestrictionType(GeoRestrictionType value)
GeoRestriction & WithQuantity(int value)
GeoRestrictionType GetRestrictionType() const
AWS_CLOUDFRONT_API GeoRestriction(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetQuantity(int value)
std::vector< T, Aws::Allocator< T > > Vector