AWS SDK for C++  1.9.20
AWS SDK for C++
CachePolicyList.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Xml
18 {
19  class XmlNode;
20 } // namespace Xml
21 } // namespace Utils
22 namespace CloudFront
23 {
24 namespace Model
25 {
26 
33  {
34  public:
38 
39  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
40 
41 
48  inline const Aws::String& GetNextMarker() const{ return m_nextMarker; }
49 
56  inline bool NextMarkerHasBeenSet() const { return m_nextMarkerHasBeenSet; }
57 
64  inline void SetNextMarker(const Aws::String& value) { m_nextMarkerHasBeenSet = true; m_nextMarker = value; }
65 
72  inline void SetNextMarker(Aws::String&& value) { m_nextMarkerHasBeenSet = true; m_nextMarker = std::move(value); }
73 
80  inline void SetNextMarker(const char* value) { m_nextMarkerHasBeenSet = true; m_nextMarker.assign(value); }
81 
88  inline CachePolicyList& WithNextMarker(const Aws::String& value) { SetNextMarker(value); return *this;}
89 
96  inline CachePolicyList& WithNextMarker(Aws::String&& value) { SetNextMarker(std::move(value)); return *this;}
97 
104  inline CachePolicyList& WithNextMarker(const char* value) { SetNextMarker(value); return *this;}
105 
106 
110  inline int GetMaxItems() const{ return m_maxItems; }
111 
115  inline bool MaxItemsHasBeenSet() const { return m_maxItemsHasBeenSet; }
116 
120  inline void SetMaxItems(int value) { m_maxItemsHasBeenSet = true; m_maxItems = value; }
121 
125  inline CachePolicyList& WithMaxItems(int value) { SetMaxItems(value); return *this;}
126 
127 
131  inline int GetQuantity() const{ return m_quantity; }
132 
136  inline bool QuantityHasBeenSet() const { return m_quantityHasBeenSet; }
137 
141  inline void SetQuantity(int value) { m_quantityHasBeenSet = true; m_quantity = value; }
142 
146  inline CachePolicyList& WithQuantity(int value) { SetQuantity(value); return *this;}
147 
148 
152  inline const Aws::Vector<CachePolicySummary>& GetItems() const{ return m_items; }
153 
157  inline bool ItemsHasBeenSet() const { return m_itemsHasBeenSet; }
158 
162  inline void SetItems(const Aws::Vector<CachePolicySummary>& value) { m_itemsHasBeenSet = true; m_items = value; }
163 
167  inline void SetItems(Aws::Vector<CachePolicySummary>&& value) { m_itemsHasBeenSet = true; m_items = std::move(value); }
168 
172  inline CachePolicyList& WithItems(const Aws::Vector<CachePolicySummary>& value) { SetItems(value); return *this;}
173 
177  inline CachePolicyList& WithItems(Aws::Vector<CachePolicySummary>&& value) { SetItems(std::move(value)); return *this;}
178 
182  inline CachePolicyList& AddItems(const CachePolicySummary& value) { m_itemsHasBeenSet = true; m_items.push_back(value); return *this; }
183 
187  inline CachePolicyList& AddItems(CachePolicySummary&& value) { m_itemsHasBeenSet = true; m_items.push_back(std::move(value)); return *this; }
188 
189  private:
190 
191  Aws::String m_nextMarker;
192  bool m_nextMarkerHasBeenSet;
193 
194  int m_maxItems;
195  bool m_maxItemsHasBeenSet;
196 
197  int m_quantity;
198  bool m_quantityHasBeenSet;
199 
201  bool m_itemsHasBeenSet;
202  };
203 
204 } // namespace Model
205 } // namespace CloudFront
206 } // namespace Aws
CachePolicySummary.h
Aws::CloudFront::Model::CachePolicyList::WithMaxItems
CachePolicyList & WithMaxItems(int value)
Definition: CachePolicyList.h:125
Aws::CloudFront::Model::CachePolicyList::CachePolicyList
CachePolicyList(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::CloudFront::Model::CachePolicyList::operator=
CachePolicyList & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::CloudFront::Model::CachePolicyList::SetItems
void SetItems(Aws::Vector< CachePolicySummary > &&value)
Definition: CachePolicyList.h:167
Aws::CloudFront::Model::CachePolicyList::NextMarkerHasBeenSet
bool NextMarkerHasBeenSet() const
Definition: CachePolicyList.h:56
Aws::CloudFront::Model::CachePolicyList::AddItems
CachePolicyList & AddItems(CachePolicySummary &&value)
Definition: CachePolicyList.h:187
Aws::CloudFront::Model::CachePolicyList::GetItems
const Aws::Vector< CachePolicySummary > & GetItems() const
Definition: CachePolicyList.h:152
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::CloudFront::Model::CachePolicyList::MaxItemsHasBeenSet
bool MaxItemsHasBeenSet() const
Definition: CachePolicyList.h:115
Aws::CloudFront::Model::CachePolicyList::WithNextMarker
CachePolicyList & WithNextMarker(const char *value)
Definition: CachePolicyList.h:104
Aws::CloudFront::Model::CachePolicyList::CachePolicyList
CachePolicyList()
Aws::CloudFront::Model::CachePolicyList
Definition: CachePolicyList.h:33
AWSVector.h
Aws::CloudFront::Model::CachePolicySummary
Definition: CachePolicySummary.h:32
Aws::CloudFront::Model::CachePolicyList::WithItems
CachePolicyList & WithItems(const Aws::Vector< CachePolicySummary > &value)
Definition: CachePolicyList.h:172
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::CloudFront::Model::CachePolicyList::SetNextMarker
void SetNextMarker(Aws::String &&value)
Definition: CachePolicyList.h:72
Aws::CloudFront::Model::CachePolicyList::SetNextMarker
void SetNextMarker(const char *value)
Definition: CachePolicyList.h:80
Aws::CloudFront::Model::CachePolicyList::GetNextMarker
const Aws::String & GetNextMarker() const
Definition: CachePolicyList.h:48
Aws::CloudFront::Model::CachePolicyList::SetQuantity
void SetQuantity(int value)
Definition: CachePolicyList.h:141
Aws::CloudFront::Model::CachePolicyList::SetMaxItems
void SetMaxItems(int value)
Definition: CachePolicyList.h:120
Aws::CloudFront::Model::CachePolicyList::WithNextMarker
CachePolicyList & WithNextMarker(const Aws::String &value)
Definition: CachePolicyList.h:88
Aws::CloudFront::Model::CachePolicyList::QuantityHasBeenSet
bool QuantityHasBeenSet() const
Definition: CachePolicyList.h:136
Aws::CloudFront::Model::CachePolicyList::ItemsHasBeenSet
bool ItemsHasBeenSet() const
Definition: CachePolicyList.h:157
Aws::CloudFront::Model::CachePolicyList::WithItems
CachePolicyList & WithItems(Aws::Vector< CachePolicySummary > &&value)
Definition: CachePolicyList.h:177
AWSString.h
Aws::CloudFront::Model::CachePolicyList::SetNextMarker
void SetNextMarker(const Aws::String &value)
Definition: CachePolicyList.h:64
AWS_CLOUDFRONT_API
#define AWS_CLOUDFRONT_API
Definition: CloudFront_EXPORTS.h:28
Aws::CloudFront::Model::CachePolicyList::AddToNode
void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
CloudFront_EXPORTS.h
Aws::CloudFront::Model::CachePolicyList::WithQuantity
CachePolicyList & WithQuantity(int value)
Definition: CachePolicyList.h:146
Aws::CloudFront::Model::CachePolicyList::WithNextMarker
CachePolicyList & WithNextMarker(Aws::String &&value)
Definition: CachePolicyList.h:96
Aws::CloudFront::Model::CachePolicyList::SetItems
void SetItems(const Aws::Vector< CachePolicySummary > &value)
Definition: CachePolicyList.h:162
Aws
Definition: AccessManagementClient.h:15
Aws::CloudFront::Model::CachePolicyList::AddItems
CachePolicyList & AddItems(const CachePolicySummary &value)
Definition: CachePolicyList.h:182
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CloudFront::Model::CachePolicyList::GetMaxItems
int GetMaxItems() const
Definition: CachePolicyList.h:110
Aws::CloudFront::Model::CachePolicyList::GetQuantity
int GetQuantity() const
Definition: CachePolicyList.h:131