AWS SDK for C++  1.9.20
AWS SDK for C++
QueryStringCacheKeys.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Xml
17 {
18  class XmlNode;
19 } // namespace Xml
20 } // namespace Utils
21 namespace CloudFront
22 {
23 namespace Model
24 {
25 
40  {
41  public:
45 
46  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
47 
48 
53  inline int GetQuantity() const{ return m_quantity; }
54 
59  inline bool QuantityHasBeenSet() const { return m_quantityHasBeenSet; }
60 
65  inline void SetQuantity(int value) { m_quantityHasBeenSet = true; m_quantity = value; }
66 
71  inline QueryStringCacheKeys& WithQuantity(int value) { SetQuantity(value); return *this;}
72 
73 
79  inline const Aws::Vector<Aws::String>& GetItems() const{ return m_items; }
80 
86  inline bool ItemsHasBeenSet() const { return m_itemsHasBeenSet; }
87 
93  inline void SetItems(const Aws::Vector<Aws::String>& value) { m_itemsHasBeenSet = true; m_items = value; }
94 
100  inline void SetItems(Aws::Vector<Aws::String>&& value) { m_itemsHasBeenSet = true; m_items = std::move(value); }
101 
107  inline QueryStringCacheKeys& WithItems(const Aws::Vector<Aws::String>& value) { SetItems(value); return *this;}
108 
114  inline QueryStringCacheKeys& WithItems(Aws::Vector<Aws::String>&& value) { SetItems(std::move(value)); return *this;}
115 
121  inline QueryStringCacheKeys& AddItems(const Aws::String& value) { m_itemsHasBeenSet = true; m_items.push_back(value); return *this; }
122 
128  inline QueryStringCacheKeys& AddItems(Aws::String&& value) { m_itemsHasBeenSet = true; m_items.push_back(std::move(value)); return *this; }
129 
135  inline QueryStringCacheKeys& AddItems(const char* value) { m_itemsHasBeenSet = true; m_items.push_back(value); return *this; }
136 
137  private:
138 
139  int m_quantity;
140  bool m_quantityHasBeenSet;
141 
142  Aws::Vector<Aws::String> m_items;
143  bool m_itemsHasBeenSet;
144  };
145 
146 } // namespace Model
147 } // namespace CloudFront
148 } // namespace Aws
Aws::CloudFront::Model::QueryStringCacheKeys::GetQuantity
int GetQuantity() const
Definition: QueryStringCacheKeys.h:53
Aws::CloudFront::Model::QueryStringCacheKeys::AddToNode
void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
Aws::CloudFront::Model::QueryStringCacheKeys::SetItems
void SetItems(const Aws::Vector< Aws::String > &value)
Definition: QueryStringCacheKeys.h:93
Aws::CloudFront::Model::QueryStringCacheKeys::GetItems
const Aws::Vector< Aws::String > & GetItems() const
Definition: QueryStringCacheKeys.h:79
Aws::CloudFront::Model::QueryStringCacheKeys::operator=
QueryStringCacheKeys & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::CloudFront::Model::QueryStringCacheKeys::WithQuantity
QueryStringCacheKeys & WithQuantity(int value)
Definition: QueryStringCacheKeys.h:71
AWSVector.h
Aws::CloudFront::Model::QueryStringCacheKeys
Definition: QueryStringCacheKeys.h:40
Aws::CloudFront::Model::QueryStringCacheKeys::WithItems
QueryStringCacheKeys & WithItems(Aws::Vector< Aws::String > &&value)
Definition: QueryStringCacheKeys.h:114
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::CloudFront::Model::QueryStringCacheKeys::ItemsHasBeenSet
bool ItemsHasBeenSet() const
Definition: QueryStringCacheKeys.h:86
Aws::CloudFront::Model::QueryStringCacheKeys::QueryStringCacheKeys
QueryStringCacheKeys(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::CloudFront::Model::QueryStringCacheKeys::SetQuantity
void SetQuantity(int value)
Definition: QueryStringCacheKeys.h:65
AWSString.h
Aws::CloudFront::Model::QueryStringCacheKeys::AddItems
QueryStringCacheKeys & AddItems(const char *value)
Definition: QueryStringCacheKeys.h:135
AWS_CLOUDFRONT_API
#define AWS_CLOUDFRONT_API
Definition: CloudFront_EXPORTS.h:28
CloudFront_EXPORTS.h
Aws::CloudFront::Model::QueryStringCacheKeys::QueryStringCacheKeys
QueryStringCacheKeys()
Aws
Definition: AccessManagementClient.h:15
Aws::CloudFront::Model::QueryStringCacheKeys::QuantityHasBeenSet
bool QuantityHasBeenSet() const
Definition: QueryStringCacheKeys.h:59
Aws::CloudFront::Model::QueryStringCacheKeys::WithItems
QueryStringCacheKeys & WithItems(const Aws::Vector< Aws::String > &value)
Definition: QueryStringCacheKeys.h:107
Aws::CloudFront::Model::QueryStringCacheKeys::AddItems
QueryStringCacheKeys & AddItems(const Aws::String &value)
Definition: QueryStringCacheKeys.h:121
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CloudFront::Model::QueryStringCacheKeys::AddItems
QueryStringCacheKeys & AddItems(Aws::String &&value)
Definition: QueryStringCacheKeys.h:128
Aws::CloudFront::Model::QueryStringCacheKeys::SetItems
void SetItems(Aws::Vector< Aws::String > &&value)
Definition: QueryStringCacheKeys.h:100