AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetMarker(const Aws::String& value) { m_markerHasBeenSet = true; m_marker = value; }
49 inline void SetMarker(Aws::String&& value) { m_markerHasBeenSet = true; m_marker = std::move(value); }
50 inline void SetMarker(const char* value) { m_markerHasBeenSet = true; m_marker.assign(value); }
51 inline DistributionList& WithMarker(const Aws::String& value) { SetMarker(value); return *this;}
52 inline DistributionList& WithMarker(Aws::String&& value) { SetMarker(std::move(value)); return *this;}
53 inline DistributionList& WithMarker(const char* value) { SetMarker(value); return *this;}
55
57
62 inline const Aws::String& GetNextMarker() const{ return m_nextMarker; }
63 inline bool NextMarkerHasBeenSet() const { return m_nextMarkerHasBeenSet; }
64 inline void SetNextMarker(const Aws::String& value) { m_nextMarkerHasBeenSet = true; m_nextMarker = value; }
65 inline void SetNextMarker(Aws::String&& value) { m_nextMarkerHasBeenSet = true; m_nextMarker = std::move(value); }
66 inline void SetNextMarker(const char* value) { m_nextMarkerHasBeenSet = true; m_nextMarker.assign(value); }
67 inline DistributionList& WithNextMarker(const Aws::String& value) { SetNextMarker(value); return *this;}
68 inline DistributionList& WithNextMarker(Aws::String&& value) { SetNextMarker(std::move(value)); return *this;}
69 inline DistributionList& WithNextMarker(const char* value) { SetNextMarker(value); return *this;}
71
73
76 inline int GetMaxItems() const{ return m_maxItems; }
77 inline bool MaxItemsHasBeenSet() const { return m_maxItemsHasBeenSet; }
78 inline void SetMaxItems(int value) { m_maxItemsHasBeenSet = true; m_maxItems = value; }
79 inline DistributionList& WithMaxItems(int value) { SetMaxItems(value); return *this;}
81
83
89 inline bool GetIsTruncated() const{ return m_isTruncated; }
90 inline bool IsTruncatedHasBeenSet() const { return m_isTruncatedHasBeenSet; }
91 inline void SetIsTruncated(bool value) { m_isTruncatedHasBeenSet = true; m_isTruncated = value; }
92 inline DistributionList& WithIsTruncated(bool value) { SetIsTruncated(value); return *this;}
94
96
100 inline int GetQuantity() const{ return m_quantity; }
101 inline bool QuantityHasBeenSet() const { return m_quantityHasBeenSet; }
102 inline void SetQuantity(int value) { m_quantityHasBeenSet = true; m_quantity = value; }
103 inline DistributionList& WithQuantity(int value) { SetQuantity(value); return *this;}
105
107
112 inline const Aws::Vector<DistributionSummary>& GetItems() const{ return m_items; }
113 inline bool ItemsHasBeenSet() const { return m_itemsHasBeenSet; }
114 inline void SetItems(const Aws::Vector<DistributionSummary>& value) { m_itemsHasBeenSet = true; m_items = value; }
115 inline void SetItems(Aws::Vector<DistributionSummary>&& value) { m_itemsHasBeenSet = true; m_items = std::move(value); }
116 inline DistributionList& WithItems(const Aws::Vector<DistributionSummary>& value) { SetItems(value); return *this;}
117 inline DistributionList& WithItems(Aws::Vector<DistributionSummary>&& value) { SetItems(std::move(value)); return *this;}
118 inline DistributionList& AddItems(const DistributionSummary& value) { m_itemsHasBeenSet = true; m_items.push_back(value); return *this; }
119 inline DistributionList& AddItems(DistributionSummary&& value) { m_itemsHasBeenSet = true; m_items.push_back(std::move(value)); return *this; }
121 private:
122
123 Aws::String m_marker;
124 bool m_markerHasBeenSet = false;
125
126 Aws::String m_nextMarker;
127 bool m_nextMarkerHasBeenSet = false;
128
129 int m_maxItems;
130 bool m_maxItemsHasBeenSet = false;
131
132 bool m_isTruncated;
133 bool m_isTruncatedHasBeenSet = false;
134
135 int m_quantity;
136 bool m_quantityHasBeenSet = false;
137
139 bool m_itemsHasBeenSet = false;
140 };
141
142} // namespace Model
143} // namespace CloudFront
144} // namespace Aws
DistributionList & WithNextMarker(const Aws::String &value)
AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
DistributionList & WithMarker(const Aws::String &value)
void SetItems(const Aws::Vector< DistributionSummary > &value)
DistributionList & WithItems(Aws::Vector< DistributionSummary > &&value)
DistributionList & WithMarker(const char *value)
const Aws::String & GetMarker() const
DistributionList & AddItems(const DistributionSummary &value)
void SetMarker(const Aws::String &value)
DistributionList & WithQuantity(int value)
const Aws::Vector< DistributionSummary > & GetItems() const
const Aws::String & GetNextMarker() const
DistributionList & WithNextMarker(Aws::String &&value)
AWS_CLOUDFRONT_API DistributionList(const Aws::Utils::Xml::XmlNode &xmlNode)
DistributionList & WithNextMarker(const char *value)
AWS_CLOUDFRONT_API DistributionList & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
DistributionList & WithItems(const Aws::Vector< DistributionSummary > &value)
DistributionList & WithIsTruncated(bool value)
void SetNextMarker(const Aws::String &value)
DistributionList & WithMaxItems(int value)
DistributionList & WithMarker(Aws::String &&value)
DistributionList & AddItems(DistributionSummary &&value)
void SetItems(Aws::Vector< DistributionSummary > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector