AWS SDK for C++  1.9.16
AWS SDK for C++
KeyGroupList.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 
47  inline const Aws::String& GetNextMarker() const{ return m_nextMarker; }
48 
54  inline bool NextMarkerHasBeenSet() const { return m_nextMarkerHasBeenSet; }
55 
61  inline void SetNextMarker(const Aws::String& value) { m_nextMarkerHasBeenSet = true; m_nextMarker = value; }
62 
68  inline void SetNextMarker(Aws::String&& value) { m_nextMarkerHasBeenSet = true; m_nextMarker = std::move(value); }
69 
75  inline void SetNextMarker(const char* value) { m_nextMarkerHasBeenSet = true; m_nextMarker.assign(value); }
76 
82  inline KeyGroupList& WithNextMarker(const Aws::String& value) { SetNextMarker(value); return *this;}
83 
89  inline KeyGroupList& WithNextMarker(Aws::String&& value) { SetNextMarker(std::move(value)); return *this;}
90 
96  inline KeyGroupList& WithNextMarker(const char* value) { SetNextMarker(value); return *this;}
97 
98 
102  inline int GetMaxItems() const{ return m_maxItems; }
103 
107  inline bool MaxItemsHasBeenSet() const { return m_maxItemsHasBeenSet; }
108 
112  inline void SetMaxItems(int value) { m_maxItemsHasBeenSet = true; m_maxItems = value; }
113 
117  inline KeyGroupList& WithMaxItems(int value) { SetMaxItems(value); return *this;}
118 
119 
123  inline int GetQuantity() const{ return m_quantity; }
124 
128  inline bool QuantityHasBeenSet() const { return m_quantityHasBeenSet; }
129 
133  inline void SetQuantity(int value) { m_quantityHasBeenSet = true; m_quantity = value; }
134 
138  inline KeyGroupList& WithQuantity(int value) { SetQuantity(value); return *this;}
139 
140 
144  inline const Aws::Vector<KeyGroupSummary>& GetItems() const{ return m_items; }
145 
149  inline bool ItemsHasBeenSet() const { return m_itemsHasBeenSet; }
150 
154  inline void SetItems(const Aws::Vector<KeyGroupSummary>& value) { m_itemsHasBeenSet = true; m_items = value; }
155 
159  inline void SetItems(Aws::Vector<KeyGroupSummary>&& value) { m_itemsHasBeenSet = true; m_items = std::move(value); }
160 
164  inline KeyGroupList& WithItems(const Aws::Vector<KeyGroupSummary>& value) { SetItems(value); return *this;}
165 
169  inline KeyGroupList& WithItems(Aws::Vector<KeyGroupSummary>&& value) { SetItems(std::move(value)); return *this;}
170 
174  inline KeyGroupList& AddItems(const KeyGroupSummary& value) { m_itemsHasBeenSet = true; m_items.push_back(value); return *this; }
175 
179  inline KeyGroupList& AddItems(KeyGroupSummary&& value) { m_itemsHasBeenSet = true; m_items.push_back(std::move(value)); return *this; }
180 
181  private:
182 
183  Aws::String m_nextMarker;
184  bool m_nextMarkerHasBeenSet;
185 
186  int m_maxItems;
187  bool m_maxItemsHasBeenSet;
188 
189  int m_quantity;
190  bool m_quantityHasBeenSet;
191 
193  bool m_itemsHasBeenSet;
194  };
195 
196 } // namespace Model
197 } // namespace CloudFront
198 } // namespace Aws
Aws::CloudFront::Model::KeyGroupList::SetItems
void SetItems(Aws::Vector< KeyGroupSummary > &&value)
Definition: KeyGroupList.h:159
Aws::CloudFront::Model::KeyGroupList::GetNextMarker
const Aws::String & GetNextMarker() const
Definition: KeyGroupList.h:47
Aws::CloudFront::Model::KeyGroupList::MaxItemsHasBeenSet
bool MaxItemsHasBeenSet() const
Definition: KeyGroupList.h:107
Aws::CloudFront::Model::KeyGroupList::WithNextMarker
KeyGroupList & WithNextMarker(Aws::String &&value)
Definition: KeyGroupList.h:89
Aws::CloudFront::Model::KeyGroupList::NextMarkerHasBeenSet
bool NextMarkerHasBeenSet() const
Definition: KeyGroupList.h:54
Aws::CloudFront::Model::KeyGroupList::WithQuantity
KeyGroupList & WithQuantity(int value)
Definition: KeyGroupList.h:138
Aws::CloudFront::Model::KeyGroupList::SetNextMarker
void SetNextMarker(const Aws::String &value)
Definition: KeyGroupList.h:61
Aws::CloudFront::Model::KeyGroupList::SetMaxItems
void SetMaxItems(int value)
Definition: KeyGroupList.h:112
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::CloudFront::Model::KeyGroupList::GetItems
const Aws::Vector< KeyGroupSummary > & GetItems() const
Definition: KeyGroupList.h:144
AWSVector.h
Aws::CloudFront::Model::KeyGroupList::operator=
KeyGroupList & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::CloudFront::Model::KeyGroupList::WithNextMarker
KeyGroupList & WithNextMarker(const Aws::String &value)
Definition: KeyGroupList.h:82
Aws::CloudFront::Model::KeyGroupSummary
Definition: KeyGroupSummary.h:31
Aws::CloudFront::Model::KeyGroupList::KeyGroupList
KeyGroupList()
KeyGroupSummary.h
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::CloudFront::Model::KeyGroupList::ItemsHasBeenSet
bool ItemsHasBeenSet() const
Definition: KeyGroupList.h:149
Aws::CloudFront::Model::KeyGroupList::GetQuantity
int GetQuantity() const
Definition: KeyGroupList.h:123
Aws::CloudFront::Model::KeyGroupList::WithItems
KeyGroupList & WithItems(const Aws::Vector< KeyGroupSummary > &value)
Definition: KeyGroupList.h:164
Aws::CloudFront::Model::KeyGroupList::SetNextMarker
void SetNextMarker(const char *value)
Definition: KeyGroupList.h:75
Aws::CloudFront::Model::KeyGroupList::WithItems
KeyGroupList & WithItems(Aws::Vector< KeyGroupSummary > &&value)
Definition: KeyGroupList.h:169
Aws::CloudFront::Model::KeyGroupList::SetNextMarker
void SetNextMarker(Aws::String &&value)
Definition: KeyGroupList.h:68
AWSString.h
Aws::CloudFront::Model::KeyGroupList::SetItems
void SetItems(const Aws::Vector< KeyGroupSummary > &value)
Definition: KeyGroupList.h:154
Aws::CloudFront::Model::KeyGroupList::AddItems
KeyGroupList & AddItems(const KeyGroupSummary &value)
Definition: KeyGroupList.h:174
Aws::CloudFront::Model::KeyGroupList::GetMaxItems
int GetMaxItems() const
Definition: KeyGroupList.h:102
Aws::CloudFront::Model::KeyGroupList::AddToNode
void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
AWS_CLOUDFRONT_API
#define AWS_CLOUDFRONT_API
Definition: CloudFront_EXPORTS.h:28
CloudFront_EXPORTS.h
Aws::CloudFront::Model::KeyGroupList
Definition: KeyGroupList.h:33
Aws::CloudFront::Model::KeyGroupList::QuantityHasBeenSet
bool QuantityHasBeenSet() const
Definition: KeyGroupList.h:128
Aws::CloudFront::Model::KeyGroupList::SetQuantity
void SetQuantity(int value)
Definition: KeyGroupList.h:133
Aws::CloudFront::Model::KeyGroupList::KeyGroupList
KeyGroupList(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws
Definition: AccessManagementClient.h:15
Aws::CloudFront::Model::KeyGroupList::AddItems
KeyGroupList & AddItems(KeyGroupSummary &&value)
Definition: KeyGroupList.h:179
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CloudFront::Model::KeyGroupList::WithMaxItems
KeyGroupList & WithMaxItems(int value)
Definition: KeyGroupList.h:117
Aws::CloudFront::Model::KeyGroupList::WithNextMarker
KeyGroupList & WithNextMarker(const char *value)
Definition: KeyGroupList.h:96