AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
InvalidationList.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#include <aws/cloudfront/model/InvalidationSummary.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace CloudFront
23{
24namespace Model
25{
26
37 {
38 public:
39 AWS_CLOUDFRONT_API InvalidationList() = default;
40 AWS_CLOUDFRONT_API InvalidationList(const Aws::Utils::Xml::XmlNode& xmlNode);
41 AWS_CLOUDFRONT_API InvalidationList& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
42
43 AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
44
45
47
51 inline const Aws::String& GetMarker() const { return m_marker; }
52 inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; }
53 template<typename MarkerT = Aws::String>
54 void SetMarker(MarkerT&& value) { m_markerHasBeenSet = true; m_marker = std::forward<MarkerT>(value); }
55 template<typename MarkerT = Aws::String>
56 InvalidationList& WithMarker(MarkerT&& value) { SetMarker(std::forward<MarkerT>(value)); return *this;}
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) { m_nextMarkerHasBeenSet = true; m_nextMarker = std::forward<NextMarkerT>(value); }
69 template<typename NextMarkerT = Aws::String>
70 InvalidationList& WithNextMarker(NextMarkerT&& value) { SetNextMarker(std::forward<NextMarkerT>(value)); return *this;}
72
74
78 inline int GetMaxItems() const { return m_maxItems; }
79 inline bool MaxItemsHasBeenSet() const { return m_maxItemsHasBeenSet; }
80 inline void SetMaxItems(int value) { m_maxItemsHasBeenSet = true; m_maxItems = value; }
81 inline InvalidationList& WithMaxItems(int value) { SetMaxItems(value); return *this;}
83
85
91 inline bool GetIsTruncated() const { return m_isTruncated; }
92 inline bool IsTruncatedHasBeenSet() const { return m_isTruncatedHasBeenSet; }
93 inline void SetIsTruncated(bool value) { m_isTruncatedHasBeenSet = true; m_isTruncated = value; }
94 inline InvalidationList& WithIsTruncated(bool value) { SetIsTruncated(value); return *this;}
96
98
102 inline int GetQuantity() const { return m_quantity; }
103 inline bool QuantityHasBeenSet() const { return m_quantityHasBeenSet; }
104 inline void SetQuantity(int value) { m_quantityHasBeenSet = true; m_quantity = value; }
105 inline InvalidationList& WithQuantity(int value) { SetQuantity(value); return *this;}
107
109
113 inline const Aws::Vector<InvalidationSummary>& GetItems() const { return m_items; }
114 inline bool ItemsHasBeenSet() const { return m_itemsHasBeenSet; }
115 template<typename ItemsT = Aws::Vector<InvalidationSummary>>
116 void SetItems(ItemsT&& value) { m_itemsHasBeenSet = true; m_items = std::forward<ItemsT>(value); }
117 template<typename ItemsT = Aws::Vector<InvalidationSummary>>
118 InvalidationList& WithItems(ItemsT&& value) { SetItems(std::forward<ItemsT>(value)); return *this;}
119 template<typename ItemsT = InvalidationSummary>
120 InvalidationList& AddItems(ItemsT&& value) { m_itemsHasBeenSet = true; m_items.emplace_back(std::forward<ItemsT>(value)); return *this; }
122 private:
123
124 Aws::String m_marker;
125 bool m_markerHasBeenSet = false;
126
127 Aws::String m_nextMarker;
128 bool m_nextMarkerHasBeenSet = false;
129
130 int m_maxItems{0};
131 bool m_maxItemsHasBeenSet = false;
132
133 bool m_isTruncated{false};
134 bool m_isTruncatedHasBeenSet = false;
135
136 int m_quantity{0};
137 bool m_quantityHasBeenSet = false;
138
140 bool m_itemsHasBeenSet = false;
141 };
142
143} // namespace Model
144} // namespace CloudFront
145} // 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