AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AnycastIpListCollection.h
1
6#pragma once
7#include <aws/cloudfront/CloudFront_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/cloudfront/model/AnycastIpListSummary.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 AnycastIpListCollection() = default;
36 AWS_CLOUDFRONT_API AnycastIpListCollection(const Aws::Utils::Xml::XmlNode& xmlNode);
37 AWS_CLOUDFRONT_API AnycastIpListCollection& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
40
41
43
47 inline const Aws::Vector<AnycastIpListSummary>& GetItems() const { return m_items; }
48 inline bool ItemsHasBeenSet() const { return m_itemsHasBeenSet; }
49 template<typename ItemsT = Aws::Vector<AnycastIpListSummary>>
50 void SetItems(ItemsT&& value) { m_itemsHasBeenSet = true; m_items = std::forward<ItemsT>(value); }
51 template<typename ItemsT = Aws::Vector<AnycastIpListSummary>>
52 AnycastIpListCollection& WithItems(ItemsT&& value) { SetItems(std::forward<ItemsT>(value)); return *this;}
53 template<typename ItemsT = AnycastIpListSummary>
54 AnycastIpListCollection& AddItems(ItemsT&& value) { m_itemsHasBeenSet = true; m_items.emplace_back(std::forward<ItemsT>(value)); return *this; }
56
58
64 inline const Aws::String& GetMarker() const { return m_marker; }
65 inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; }
66 template<typename MarkerT = Aws::String>
67 void SetMarker(MarkerT&& value) { m_markerHasBeenSet = true; m_marker = std::forward<MarkerT>(value); }
68 template<typename MarkerT = Aws::String>
69 AnycastIpListCollection& WithMarker(MarkerT&& value) { SetMarker(std::forward<MarkerT>(value)); return *this;}
71
73
78 inline const Aws::String& GetNextMarker() const { return m_nextMarker; }
79 inline bool NextMarkerHasBeenSet() const { return m_nextMarkerHasBeenSet; }
80 template<typename NextMarkerT = Aws::String>
81 void SetNextMarker(NextMarkerT&& value) { m_nextMarkerHasBeenSet = true; m_nextMarker = std::forward<NextMarkerT>(value); }
82 template<typename NextMarkerT = Aws::String>
83 AnycastIpListCollection& WithNextMarker(NextMarkerT&& value) { SetNextMarker(std::forward<NextMarkerT>(value)); return *this;}
85
87
91 inline int GetMaxItems() const { return m_maxItems; }
92 inline bool MaxItemsHasBeenSet() const { return m_maxItemsHasBeenSet; }
93 inline void SetMaxItems(int value) { m_maxItemsHasBeenSet = true; m_maxItems = value; }
94 inline AnycastIpListCollection& WithMaxItems(int value) { SetMaxItems(value); return *this;}
96
98
102 inline bool GetIsTruncated() const { return m_isTruncated; }
103 inline bool IsTruncatedHasBeenSet() const { return m_isTruncatedHasBeenSet; }
104 inline void SetIsTruncated(bool value) { m_isTruncatedHasBeenSet = true; m_isTruncated = value; }
105 inline AnycastIpListCollection& WithIsTruncated(bool value) { SetIsTruncated(value); return *this;}
107
109
112 inline int GetQuantity() const { return m_quantity; }
113 inline bool QuantityHasBeenSet() const { return m_quantityHasBeenSet; }
114 inline void SetQuantity(int value) { m_quantityHasBeenSet = true; m_quantity = value; }
115 inline AnycastIpListCollection& WithQuantity(int value) { SetQuantity(value); return *this;}
117 private:
118
120 bool m_itemsHasBeenSet = false;
121
122 Aws::String m_marker;
123 bool m_markerHasBeenSet = false;
124
125 Aws::String m_nextMarker;
126 bool m_nextMarkerHasBeenSet = false;
127
128 int m_maxItems{0};
129 bool m_maxItemsHasBeenSet = false;
130
131 bool m_isTruncated{false};
132 bool m_isTruncatedHasBeenSet = false;
133
134 int m_quantity{0};
135 bool m_quantityHasBeenSet = false;
136 };
137
138} // namespace Model
139} // namespace CloudFront
140} // namespace Aws
const Aws::Vector< AnycastIpListSummary > & GetItems() const
AWS_CLOUDFRONT_API AnycastIpListCollection & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AnycastIpListCollection & AddItems(ItemsT &&value)
AnycastIpListCollection & WithNextMarker(NextMarkerT &&value)
AWS_CLOUDFRONT_API AnycastIpListCollection(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_CLOUDFRONT_API AnycastIpListCollection()=default
AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
AnycastIpListCollection & WithQuantity(int value)
AnycastIpListCollection & WithMaxItems(int value)
AnycastIpListCollection & WithMarker(MarkerT &&value)
AnycastIpListCollection & WithItems(ItemsT &&value)
AnycastIpListCollection & WithIsTruncated(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector