AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
DistributionList.h
1
6#pragma once
7#include <aws/cloudfront/CloudFront_EXPORTS.h>
8#include <aws/cloudfront/model/DistributionSummary.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 DistributionList() = default;
31 AWS_CLOUDFRONT_API DistributionList(const Aws::Utils::Xml::XmlNode& xmlNode);
32 AWS_CLOUDFRONT_API DistributionList& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
33
34 AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
35
37
40 inline const Aws::String& GetMarker() const { return m_marker; }
41 inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; }
42 template <typename MarkerT = Aws::String>
43 void SetMarker(MarkerT&& value) {
44 m_markerHasBeenSet = true;
45 m_marker = std::forward<MarkerT>(value);
46 }
47 template <typename MarkerT = Aws::String>
48 DistributionList& WithMarker(MarkerT&& value) {
49 SetMarker(std::forward<MarkerT>(value));
50 return *this;
51 }
53
55
60 inline const Aws::String& GetNextMarker() const { return m_nextMarker; }
61 inline bool NextMarkerHasBeenSet() const { return m_nextMarkerHasBeenSet; }
62 template <typename NextMarkerT = Aws::String>
63 void SetNextMarker(NextMarkerT&& value) {
64 m_nextMarkerHasBeenSet = true;
65 m_nextMarker = std::forward<NextMarkerT>(value);
66 }
67 template <typename NextMarkerT = Aws::String>
68 DistributionList& WithNextMarker(NextMarkerT&& value) {
69 SetNextMarker(std::forward<NextMarkerT>(value));
70 return *this;
71 }
73
75
78 inline int GetMaxItems() const { return m_maxItems; }
79 inline bool MaxItemsHasBeenSet() const { return m_maxItemsHasBeenSet; }
80 inline void SetMaxItems(int value) {
81 m_maxItemsHasBeenSet = true;
82 m_maxItems = value;
83 }
84 inline DistributionList& WithMaxItems(int value) {
85 SetMaxItems(value);
86 return *this;
87 }
89
91
97 inline bool GetIsTruncated() const { return m_isTruncated; }
98 inline bool IsTruncatedHasBeenSet() const { return m_isTruncatedHasBeenSet; }
99 inline void SetIsTruncated(bool value) {
100 m_isTruncatedHasBeenSet = true;
101 m_isTruncated = value;
102 }
103 inline DistributionList& WithIsTruncated(bool value) {
104 SetIsTruncated(value);
105 return *this;
106 }
108
110
114 inline int GetQuantity() const { return m_quantity; }
115 inline bool QuantityHasBeenSet() const { return m_quantityHasBeenSet; }
116 inline void SetQuantity(int value) {
117 m_quantityHasBeenSet = true;
118 m_quantity = value;
119 }
120 inline DistributionList& WithQuantity(int value) {
121 SetQuantity(value);
122 return *this;
123 }
125
127
132 inline const Aws::Vector<DistributionSummary>& GetItems() const { return m_items; }
133 inline bool ItemsHasBeenSet() const { return m_itemsHasBeenSet; }
134 template <typename ItemsT = Aws::Vector<DistributionSummary>>
135 void SetItems(ItemsT&& value) {
136 m_itemsHasBeenSet = true;
137 m_items = std::forward<ItemsT>(value);
138 }
139 template <typename ItemsT = Aws::Vector<DistributionSummary>>
140 DistributionList& WithItems(ItemsT&& value) {
141 SetItems(std::forward<ItemsT>(value));
142 return *this;
143 }
144 template <typename ItemsT = DistributionSummary>
145 DistributionList& AddItems(ItemsT&& value) {
146 m_itemsHasBeenSet = true;
147 m_items.emplace_back(std::forward<ItemsT>(value));
148 return *this;
149 }
151 private:
152 Aws::String m_marker;
153
154 Aws::String m_nextMarker;
155
156 int m_maxItems{0};
157
158 bool m_isTruncated{false};
159
160 int m_quantity{0};
161
163 bool m_markerHasBeenSet = false;
164 bool m_nextMarkerHasBeenSet = false;
165 bool m_maxItemsHasBeenSet = false;
166 bool m_isTruncatedHasBeenSet = false;
167 bool m_quantityHasBeenSet = false;
168 bool m_itemsHasBeenSet = false;
169};
170
171} // namespace Model
172} // namespace CloudFront
173} // namespace Aws
AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
DistributionList & WithItems(ItemsT &&value)
DistributionList & WithNextMarker(NextMarkerT &&value)
const Aws::String & GetMarker() const
DistributionList & WithMarker(MarkerT &&value)
DistributionList & AddItems(ItemsT &&value)
DistributionList & WithQuantity(int value)
const Aws::Vector< DistributionSummary > & GetItems() const
const Aws::String & GetNextMarker() const
AWS_CLOUDFRONT_API DistributionList(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_CLOUDFRONT_API DistributionList()=default
AWS_CLOUDFRONT_API DistributionList & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
DistributionList & WithIsTruncated(bool value)
DistributionList & WithMaxItems(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector