AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DistributionList.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/DistributionSummary.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
33 {
34 public:
35 AWS_CLOUDFRONT_API DistributionList() = default;
36 AWS_CLOUDFRONT_API DistributionList(const Aws::Utils::Xml::XmlNode& xmlNode);
37 AWS_CLOUDFRONT_API DistributionList& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
40
41
43
46 inline const Aws::String& GetMarker() const { return m_marker; }
47 inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; }
48 template<typename MarkerT = Aws::String>
49 void SetMarker(MarkerT&& value) { m_markerHasBeenSet = true; m_marker = std::forward<MarkerT>(value); }
50 template<typename MarkerT = Aws::String>
51 DistributionList& WithMarker(MarkerT&& value) { SetMarker(std::forward<MarkerT>(value)); return *this;}
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) { m_nextMarkerHasBeenSet = true; m_nextMarker = std::forward<NextMarkerT>(value); }
64 template<typename NextMarkerT = Aws::String>
65 DistributionList& WithNextMarker(NextMarkerT&& value) { SetNextMarker(std::forward<NextMarkerT>(value)); return *this;}
67
69
72 inline int GetMaxItems() const { return m_maxItems; }
73 inline bool MaxItemsHasBeenSet() const { return m_maxItemsHasBeenSet; }
74 inline void SetMaxItems(int value) { m_maxItemsHasBeenSet = true; m_maxItems = value; }
75 inline DistributionList& WithMaxItems(int value) { SetMaxItems(value); return *this;}
77
79
85 inline bool GetIsTruncated() const { return m_isTruncated; }
86 inline bool IsTruncatedHasBeenSet() const { return m_isTruncatedHasBeenSet; }
87 inline void SetIsTruncated(bool value) { m_isTruncatedHasBeenSet = true; m_isTruncated = value; }
88 inline DistributionList& WithIsTruncated(bool value) { SetIsTruncated(value); return *this;}
90
92
96 inline int GetQuantity() const { return m_quantity; }
97 inline bool QuantityHasBeenSet() const { return m_quantityHasBeenSet; }
98 inline void SetQuantity(int value) { m_quantityHasBeenSet = true; m_quantity = value; }
99 inline DistributionList& WithQuantity(int value) { SetQuantity(value); return *this;}
101
103
108 inline const Aws::Vector<DistributionSummary>& GetItems() const { return m_items; }
109 inline bool ItemsHasBeenSet() const { return m_itemsHasBeenSet; }
110 template<typename ItemsT = Aws::Vector<DistributionSummary>>
111 void SetItems(ItemsT&& value) { m_itemsHasBeenSet = true; m_items = std::forward<ItemsT>(value); }
112 template<typename ItemsT = Aws::Vector<DistributionSummary>>
113 DistributionList& WithItems(ItemsT&& value) { SetItems(std::forward<ItemsT>(value)); return *this;}
114 template<typename ItemsT = DistributionSummary>
115 DistributionList& AddItems(ItemsT&& value) { m_itemsHasBeenSet = true; m_items.emplace_back(std::forward<ItemsT>(value)); return *this; }
117 private:
118
119 Aws::String m_marker;
120 bool m_markerHasBeenSet = false;
121
122 Aws::String m_nextMarker;
123 bool m_nextMarkerHasBeenSet = false;
124
125 int m_maxItems{0};
126 bool m_maxItemsHasBeenSet = false;
127
128 bool m_isTruncated{false};
129 bool m_isTruncatedHasBeenSet = false;
130
131 int m_quantity{0};
132 bool m_quantityHasBeenSet = false;
133
135 bool m_itemsHasBeenSet = false;
136 };
137
138} // namespace Model
139} // namespace CloudFront
140} // 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