AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
VpcOriginList.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/VpcOriginSummary.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 VpcOriginList() = default;
36 AWS_CLOUDFRONT_API VpcOriginList(const Aws::Utils::Xml::XmlNode& xmlNode);
37 AWS_CLOUDFRONT_API VpcOriginList& 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 VpcOriginList& WithMarker(MarkerT&& value) { SetMarker(std::forward<MarkerT>(value)); return *this;}
53
55
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) { m_nextMarkerHasBeenSet = true; m_nextMarker = std::forward<NextMarkerT>(value); }
62 template<typename NextMarkerT = Aws::String>
63 VpcOriginList& WithNextMarker(NextMarkerT&& value) { SetNextMarker(std::forward<NextMarkerT>(value)); return *this;}
65
67
70 inline int GetMaxItems() const { return m_maxItems; }
71 inline bool MaxItemsHasBeenSet() const { return m_maxItemsHasBeenSet; }
72 inline void SetMaxItems(int value) { m_maxItemsHasBeenSet = true; m_maxItems = value; }
73 inline VpcOriginList& WithMaxItems(int value) { SetMaxItems(value); return *this;}
75
77
83 inline bool GetIsTruncated() const { return m_isTruncated; }
84 inline bool IsTruncatedHasBeenSet() const { return m_isTruncatedHasBeenSet; }
85 inline void SetIsTruncated(bool value) { m_isTruncatedHasBeenSet = true; m_isTruncated = value; }
86 inline VpcOriginList& WithIsTruncated(bool value) { SetIsTruncated(value); return *this;}
88
90
93 inline int GetQuantity() const { return m_quantity; }
94 inline bool QuantityHasBeenSet() const { return m_quantityHasBeenSet; }
95 inline void SetQuantity(int value) { m_quantityHasBeenSet = true; m_quantity = value; }
96 inline VpcOriginList& WithQuantity(int value) { SetQuantity(value); return *this;}
98
100
103 inline const Aws::Vector<VpcOriginSummary>& GetItems() const { return m_items; }
104 inline bool ItemsHasBeenSet() const { return m_itemsHasBeenSet; }
105 template<typename ItemsT = Aws::Vector<VpcOriginSummary>>
106 void SetItems(ItemsT&& value) { m_itemsHasBeenSet = true; m_items = std::forward<ItemsT>(value); }
107 template<typename ItemsT = Aws::Vector<VpcOriginSummary>>
108 VpcOriginList& WithItems(ItemsT&& value) { SetItems(std::forward<ItemsT>(value)); return *this;}
109 template<typename ItemsT = VpcOriginSummary>
110 VpcOriginList& AddItems(ItemsT&& value) { m_itemsHasBeenSet = true; m_items.emplace_back(std::forward<ItemsT>(value)); return *this; }
112 private:
113
114 Aws::String m_marker;
115 bool m_markerHasBeenSet = false;
116
117 Aws::String m_nextMarker;
118 bool m_nextMarkerHasBeenSet = false;
119
120 int m_maxItems{0};
121 bool m_maxItemsHasBeenSet = false;
122
123 bool m_isTruncated{false};
124 bool m_isTruncatedHasBeenSet = false;
125
126 int m_quantity{0};
127 bool m_quantityHasBeenSet = false;
128
130 bool m_itemsHasBeenSet = false;
131 };
132
133} // namespace Model
134} // namespace CloudFront
135} // namespace Aws
AWS_CLOUDFRONT_API VpcOriginList & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetNextMarker(NextMarkerT &&value)
VpcOriginList & AddItems(ItemsT &&value)
VpcOriginList & WithMarker(MarkerT &&value)
const Aws::String & GetNextMarker() const
const Aws::String & GetMarker() const
VpcOriginList & WithMaxItems(int value)
AWS_CLOUDFRONT_API VpcOriginList()=default
VpcOriginList & WithQuantity(int value)
VpcOriginList & WithItems(ItemsT &&value)
AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
AWS_CLOUDFRONT_API VpcOriginList(const Aws::Utils::Xml::XmlNode &xmlNode)
VpcOriginList & WithNextMarker(NextMarkerT &&value)
const Aws::Vector< VpcOriginSummary > & GetItems() const
VpcOriginList & WithIsTruncated(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector