AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
KeyGroupList.h
1
6#pragma once
7#include <aws/cloudfront/CloudFront_EXPORTS.h>
8#include <aws/cloudfront/model/KeyGroupSummary.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Xml {
17class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace CloudFront {
21namespace Model {
22
29 public:
30 AWS_CLOUDFRONT_API KeyGroupList() = default;
31 AWS_CLOUDFRONT_API KeyGroupList(const Aws::Utils::Xml::XmlNode& xmlNode);
32 AWS_CLOUDFRONT_API KeyGroupList& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
33
34 AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
35
37
42 inline const Aws::String& GetNextMarker() const { return m_nextMarker; }
43 inline bool NextMarkerHasBeenSet() const { return m_nextMarkerHasBeenSet; }
44 template <typename NextMarkerT = Aws::String>
45 void SetNextMarker(NextMarkerT&& value) {
46 m_nextMarkerHasBeenSet = true;
47 m_nextMarker = std::forward<NextMarkerT>(value);
48 }
49 template <typename NextMarkerT = Aws::String>
50 KeyGroupList& WithNextMarker(NextMarkerT&& value) {
51 SetNextMarker(std::forward<NextMarkerT>(value));
52 return *this;
53 }
55
57
60 inline int GetMaxItems() const { return m_maxItems; }
61 inline bool MaxItemsHasBeenSet() const { return m_maxItemsHasBeenSet; }
62 inline void SetMaxItems(int value) {
63 m_maxItemsHasBeenSet = true;
64 m_maxItems = value;
65 }
66 inline KeyGroupList& WithMaxItems(int value) {
67 SetMaxItems(value);
68 return *this;
69 }
71
73
76 inline int GetQuantity() const { return m_quantity; }
77 inline bool QuantityHasBeenSet() const { return m_quantityHasBeenSet; }
78 inline void SetQuantity(int value) {
79 m_quantityHasBeenSet = true;
80 m_quantity = value;
81 }
82 inline KeyGroupList& WithQuantity(int value) {
83 SetQuantity(value);
84 return *this;
85 }
87
89
92 inline const Aws::Vector<KeyGroupSummary>& GetItems() const { return m_items; }
93 inline bool ItemsHasBeenSet() const { return m_itemsHasBeenSet; }
94 template <typename ItemsT = Aws::Vector<KeyGroupSummary>>
95 void SetItems(ItemsT&& value) {
96 m_itemsHasBeenSet = true;
97 m_items = std::forward<ItemsT>(value);
98 }
99 template <typename ItemsT = Aws::Vector<KeyGroupSummary>>
100 KeyGroupList& WithItems(ItemsT&& value) {
101 SetItems(std::forward<ItemsT>(value));
102 return *this;
103 }
104 template <typename ItemsT = KeyGroupSummary>
105 KeyGroupList& AddItems(ItemsT&& value) {
106 m_itemsHasBeenSet = true;
107 m_items.emplace_back(std::forward<ItemsT>(value));
108 return *this;
109 }
111 private:
112 Aws::String m_nextMarker;
113
114 int m_maxItems{0};
115
116 int m_quantity{0};
117
119 bool m_nextMarkerHasBeenSet = false;
120 bool m_maxItemsHasBeenSet = false;
121 bool m_quantityHasBeenSet = false;
122 bool m_itemsHasBeenSet = false;
123};
124
125} // namespace Model
126} // namespace CloudFront
127} // namespace Aws
const Aws::Vector< KeyGroupSummary > & GetItems() const
KeyGroupList & AddItems(ItemsT &&value)
AWS_CLOUDFRONT_API KeyGroupList()=default
AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
const Aws::String & GetNextMarker() const
KeyGroupList & WithItems(ItemsT &&value)
void SetNextMarker(NextMarkerT &&value)
KeyGroupList & WithQuantity(int value)
KeyGroupList & WithNextMarker(NextMarkerT &&value)
AWS_CLOUDFRONT_API KeyGroupList(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_CLOUDFRONT_API KeyGroupList & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
KeyGroupList & WithMaxItems(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector