AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
DistributionIdList.h
1
6#pragma once
7#include <aws/cloudfront/CloudFront_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace CloudFront {
20namespace Model {
21
28 public:
29 AWS_CLOUDFRONT_API DistributionIdList() = default;
30 AWS_CLOUDFRONT_API DistributionIdList(const Aws::Utils::Xml::XmlNode& xmlNode);
31 AWS_CLOUDFRONT_API DistributionIdList& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
32
33 AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
34
36
39 inline const Aws::String& GetMarker() const { return m_marker; }
40 inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; }
41 template <typename MarkerT = Aws::String>
42 void SetMarker(MarkerT&& value) {
43 m_markerHasBeenSet = true;
44 m_marker = std::forward<MarkerT>(value);
45 }
46 template <typename MarkerT = Aws::String>
47 DistributionIdList& WithMarker(MarkerT&& value) {
48 SetMarker(std::forward<MarkerT>(value));
49 return *this;
50 }
52
54
58 inline const Aws::String& GetNextMarker() const { return m_nextMarker; }
59 inline bool NextMarkerHasBeenSet() const { return m_nextMarkerHasBeenSet; }
60 template <typename NextMarkerT = Aws::String>
61 void SetNextMarker(NextMarkerT&& value) {
62 m_nextMarkerHasBeenSet = true;
63 m_nextMarker = std::forward<NextMarkerT>(value);
64 }
65 template <typename NextMarkerT = Aws::String>
66 DistributionIdList& WithNextMarker(NextMarkerT&& value) {
67 SetNextMarker(std::forward<NextMarkerT>(value));
68 return *this;
69 }
71
73
76 inline int GetMaxItems() const { return m_maxItems; }
77 inline bool MaxItemsHasBeenSet() const { return m_maxItemsHasBeenSet; }
78 inline void SetMaxItems(int value) {
79 m_maxItemsHasBeenSet = true;
80 m_maxItems = value;
81 }
82 inline DistributionIdList& WithMaxItems(int value) {
83 SetMaxItems(value);
84 return *this;
85 }
87
89
95 inline bool GetIsTruncated() const { return m_isTruncated; }
96 inline bool IsTruncatedHasBeenSet() const { return m_isTruncatedHasBeenSet; }
97 inline void SetIsTruncated(bool value) {
98 m_isTruncatedHasBeenSet = true;
99 m_isTruncated = value;
100 }
102 SetIsTruncated(value);
103 return *this;
104 }
106
108
111 inline int GetQuantity() const { return m_quantity; }
112 inline bool QuantityHasBeenSet() const { return m_quantityHasBeenSet; }
113 inline void SetQuantity(int value) {
114 m_quantityHasBeenSet = true;
115 m_quantity = value;
116 }
117 inline DistributionIdList& WithQuantity(int value) {
118 SetQuantity(value);
119 return *this;
120 }
122
124
127 inline const Aws::Vector<Aws::String>& GetItems() const { return m_items; }
128 inline bool ItemsHasBeenSet() const { return m_itemsHasBeenSet; }
129 template <typename ItemsT = Aws::Vector<Aws::String>>
130 void SetItems(ItemsT&& value) {
131 m_itemsHasBeenSet = true;
132 m_items = std::forward<ItemsT>(value);
133 }
134 template <typename ItemsT = Aws::Vector<Aws::String>>
135 DistributionIdList& WithItems(ItemsT&& value) {
136 SetItems(std::forward<ItemsT>(value));
137 return *this;
138 }
139 template <typename ItemsT = Aws::String>
140 DistributionIdList& AddItems(ItemsT&& value) {
141 m_itemsHasBeenSet = true;
142 m_items.emplace_back(std::forward<ItemsT>(value));
143 return *this;
144 }
146 private:
147 Aws::String m_marker;
148
149 Aws::String m_nextMarker;
150
151 int m_maxItems{0};
152
153 bool m_isTruncated{false};
154
155 int m_quantity{0};
156
158 bool m_markerHasBeenSet = false;
159 bool m_nextMarkerHasBeenSet = false;
160 bool m_maxItemsHasBeenSet = false;
161 bool m_isTruncatedHasBeenSet = false;
162 bool m_quantityHasBeenSet = false;
163 bool m_itemsHasBeenSet = false;
164};
165
166} // namespace Model
167} // namespace CloudFront
168} // namespace Aws
AWS_CLOUDFRONT_API DistributionIdList()=default
AWS_CLOUDFRONT_API DistributionIdList & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
DistributionIdList & AddItems(ItemsT &&value)
DistributionIdList & WithIsTruncated(bool value)
const Aws::Vector< Aws::String > & GetItems() const
DistributionIdList & WithQuantity(int value)
DistributionIdList & WithMarker(MarkerT &&value)
DistributionIdList & WithNextMarker(NextMarkerT &&value)
DistributionIdList & WithMaxItems(int value)
AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
AWS_CLOUDFRONT_API DistributionIdList(const Aws::Utils::Xml::XmlNode &xmlNode)
DistributionIdList & WithItems(ItemsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector