AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
FunctionList.h
1
6#pragma once
7#include <aws/cloudfront/CloudFront_EXPORTS.h>
8#include <aws/cloudfront/model/FunctionSummary.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 FunctionList() = default;
31 AWS_CLOUDFRONT_API FunctionList(const Aws::Utils::Xml::XmlNode& xmlNode);
32 AWS_CLOUDFRONT_API FunctionList& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
33
34 AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
35
37
43 inline const Aws::String& GetNextMarker() const { return m_nextMarker; }
44 inline bool NextMarkerHasBeenSet() const { return m_nextMarkerHasBeenSet; }
45 template <typename NextMarkerT = Aws::String>
46 void SetNextMarker(NextMarkerT&& value) {
47 m_nextMarkerHasBeenSet = true;
48 m_nextMarker = std::forward<NextMarkerT>(value);
49 }
50 template <typename NextMarkerT = Aws::String>
51 FunctionList& WithNextMarker(NextMarkerT&& value) {
52 SetNextMarker(std::forward<NextMarkerT>(value));
53 return *this;
54 }
56
58
61 inline int GetMaxItems() const { return m_maxItems; }
62 inline bool MaxItemsHasBeenSet() const { return m_maxItemsHasBeenSet; }
63 inline void SetMaxItems(int value) {
64 m_maxItemsHasBeenSet = true;
65 m_maxItems = value;
66 }
67 inline FunctionList& WithMaxItems(int value) {
68 SetMaxItems(value);
69 return *this;
70 }
72
74
77 inline int GetQuantity() const { return m_quantity; }
78 inline bool QuantityHasBeenSet() const { return m_quantityHasBeenSet; }
79 inline void SetQuantity(int value) {
80 m_quantityHasBeenSet = true;
81 m_quantity = value;
82 }
83 inline FunctionList& WithQuantity(int value) {
84 SetQuantity(value);
85 return *this;
86 }
88
90
93 inline const Aws::Vector<FunctionSummary>& GetItems() const { return m_items; }
94 inline bool ItemsHasBeenSet() const { return m_itemsHasBeenSet; }
95 template <typename ItemsT = Aws::Vector<FunctionSummary>>
96 void SetItems(ItemsT&& value) {
97 m_itemsHasBeenSet = true;
98 m_items = std::forward<ItemsT>(value);
99 }
100 template <typename ItemsT = Aws::Vector<FunctionSummary>>
101 FunctionList& WithItems(ItemsT&& value) {
102 SetItems(std::forward<ItemsT>(value));
103 return *this;
104 }
105 template <typename ItemsT = FunctionSummary>
106 FunctionList& AddItems(ItemsT&& value) {
107 m_itemsHasBeenSet = true;
108 m_items.emplace_back(std::forward<ItemsT>(value));
109 return *this;
110 }
112 private:
113 Aws::String m_nextMarker;
114
115 int m_maxItems{0};
116
117 int m_quantity{0};
118
120 bool m_nextMarkerHasBeenSet = false;
121 bool m_maxItemsHasBeenSet = false;
122 bool m_quantityHasBeenSet = false;
123 bool m_itemsHasBeenSet = false;
124};
125
126} // namespace Model
127} // namespace CloudFront
128} // namespace Aws
void SetNextMarker(NextMarkerT &&value)
const Aws::Vector< FunctionSummary > & GetItems() const
AWS_CLOUDFRONT_API FunctionList & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
FunctionList & WithNextMarker(NextMarkerT &&value)
AWS_CLOUDFRONT_API FunctionList(const Aws::Utils::Xml::XmlNode &xmlNode)
FunctionList & AddItems(ItemsT &&value)
FunctionList & WithItems(ItemsT &&value)
FunctionList & WithMaxItems(int value)
AWS_CLOUDFRONT_API FunctionList()=default
const Aws::String & GetNextMarker() const
AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
FunctionList & WithQuantity(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector