AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
InvalidationList.h
1
6#pragma once
7#include <aws/cloudfront/CloudFront_EXPORTS.h>
8#include <aws/cloudfront/model/InvalidationSummary.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
33 public:
34 AWS_CLOUDFRONT_API InvalidationList() = default;
35 AWS_CLOUDFRONT_API InvalidationList(const Aws::Utils::Xml::XmlNode& xmlNode);
36 AWS_CLOUDFRONT_API InvalidationList& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
37
38 AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
39
41
45 inline const Aws::String& GetMarker() const { return m_marker; }
46 inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; }
47 template <typename MarkerT = Aws::String>
48 void SetMarker(MarkerT&& value) {
49 m_markerHasBeenSet = true;
50 m_marker = std::forward<MarkerT>(value);
51 }
52 template <typename MarkerT = Aws::String>
53 InvalidationList& WithMarker(MarkerT&& value) {
54 SetMarker(std::forward<MarkerT>(value));
55 return *this;
56 }
58
60
65 inline const Aws::String& GetNextMarker() const { return m_nextMarker; }
66 inline bool NextMarkerHasBeenSet() const { return m_nextMarkerHasBeenSet; }
67 template <typename NextMarkerT = Aws::String>
68 void SetNextMarker(NextMarkerT&& value) {
69 m_nextMarkerHasBeenSet = true;
70 m_nextMarker = std::forward<NextMarkerT>(value);
71 }
72 template <typename NextMarkerT = Aws::String>
73 InvalidationList& WithNextMarker(NextMarkerT&& value) {
74 SetNextMarker(std::forward<NextMarkerT>(value));
75 return *this;
76 }
78
80
84 inline int GetMaxItems() const { return m_maxItems; }
85 inline bool MaxItemsHasBeenSet() const { return m_maxItemsHasBeenSet; }
86 inline void SetMaxItems(int value) {
87 m_maxItemsHasBeenSet = true;
88 m_maxItems = value;
89 }
90 inline InvalidationList& WithMaxItems(int value) {
91 SetMaxItems(value);
92 return *this;
93 }
95
97
103 inline bool GetIsTruncated() const { return m_isTruncated; }
104 inline bool IsTruncatedHasBeenSet() const { return m_isTruncatedHasBeenSet; }
105 inline void SetIsTruncated(bool value) {
106 m_isTruncatedHasBeenSet = true;
107 m_isTruncated = value;
108 }
109 inline InvalidationList& WithIsTruncated(bool value) {
110 SetIsTruncated(value);
111 return *this;
112 }
114
116
120 inline int GetQuantity() const { return m_quantity; }
121 inline bool QuantityHasBeenSet() const { return m_quantityHasBeenSet; }
122 inline void SetQuantity(int value) {
123 m_quantityHasBeenSet = true;
124 m_quantity = value;
125 }
126 inline InvalidationList& WithQuantity(int value) {
127 SetQuantity(value);
128 return *this;
129 }
131
133
137 inline const Aws::Vector<InvalidationSummary>& GetItems() const { return m_items; }
138 inline bool ItemsHasBeenSet() const { return m_itemsHasBeenSet; }
139 template <typename ItemsT = Aws::Vector<InvalidationSummary>>
140 void SetItems(ItemsT&& value) {
141 m_itemsHasBeenSet = true;
142 m_items = std::forward<ItemsT>(value);
143 }
144 template <typename ItemsT = Aws::Vector<InvalidationSummary>>
145 InvalidationList& WithItems(ItemsT&& value) {
146 SetItems(std::forward<ItemsT>(value));
147 return *this;
148 }
149 template <typename ItemsT = InvalidationSummary>
150 InvalidationList& AddItems(ItemsT&& value) {
151 m_itemsHasBeenSet = true;
152 m_items.emplace_back(std::forward<ItemsT>(value));
153 return *this;
154 }
156 private:
157 Aws::String m_marker;
158
159 Aws::String m_nextMarker;
160
161 int m_maxItems{0};
162
163 bool m_isTruncated{false};
164
165 int m_quantity{0};
166
168 bool m_markerHasBeenSet = false;
169 bool m_nextMarkerHasBeenSet = false;
170 bool m_maxItemsHasBeenSet = false;
171 bool m_isTruncatedHasBeenSet = false;
172 bool m_quantityHasBeenSet = false;
173 bool m_itemsHasBeenSet = false;
174};
175
176} // namespace Model
177} // namespace CloudFront
178} // namespace Aws
InvalidationList & WithItems(ItemsT &&value)
const Aws::Vector< InvalidationSummary > & GetItems() const
InvalidationList & AddItems(ItemsT &&value)
InvalidationList & WithQuantity(int value)
AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
InvalidationList & WithMaxItems(int value)
AWS_CLOUDFRONT_API InvalidationList & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetMarker() const
AWS_CLOUDFRONT_API InvalidationList(const Aws::Utils::Xml::XmlNode &xmlNode)
InvalidationList & WithIsTruncated(bool value)
AWS_CLOUDFRONT_API InvalidationList()=default
const Aws::String & GetNextMarker() const
InvalidationList & WithNextMarker(NextMarkerT &&value)
InvalidationList & WithMarker(MarkerT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector