AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
PublicKeyList.h
1
6#pragma once
7#include <aws/cloudfront/CloudFront_EXPORTS.h>
8#include <aws/cloudfront/model/PublicKeySummary.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Xml {
17class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace CloudFront {
21namespace Model {
22
33 public:
34 AWS_CLOUDFRONT_API PublicKeyList() = default;
35 AWS_CLOUDFRONT_API PublicKeyList(const Aws::Utils::Xml::XmlNode& xmlNode);
36 AWS_CLOUDFRONT_API PublicKeyList& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
37
38 AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
39
41
46 inline const Aws::String& GetNextMarker() const { return m_nextMarker; }
47 inline bool NextMarkerHasBeenSet() const { return m_nextMarkerHasBeenSet; }
48 template <typename NextMarkerT = Aws::String>
49 void SetNextMarker(NextMarkerT&& value) {
50 m_nextMarkerHasBeenSet = true;
51 m_nextMarker = std::forward<NextMarkerT>(value);
52 }
53 template <typename NextMarkerT = Aws::String>
54 PublicKeyList& WithNextMarker(NextMarkerT&& value) {
55 SetNextMarker(std::forward<NextMarkerT>(value));
56 return *this;
57 }
59
61
64 inline int GetMaxItems() const { return m_maxItems; }
65 inline bool MaxItemsHasBeenSet() const { return m_maxItemsHasBeenSet; }
66 inline void SetMaxItems(int value) {
67 m_maxItemsHasBeenSet = true;
68 m_maxItems = value;
69 }
70 inline PublicKeyList& WithMaxItems(int value) {
71 SetMaxItems(value);
72 return *this;
73 }
75
77
80 inline int GetQuantity() const { return m_quantity; }
81 inline bool QuantityHasBeenSet() const { return m_quantityHasBeenSet; }
82 inline void SetQuantity(int value) {
83 m_quantityHasBeenSet = true;
84 m_quantity = value;
85 }
86 inline PublicKeyList& WithQuantity(int value) {
87 SetQuantity(value);
88 return *this;
89 }
91
93
96 inline const Aws::Vector<PublicKeySummary>& GetItems() const { return m_items; }
97 inline bool ItemsHasBeenSet() const { return m_itemsHasBeenSet; }
98 template <typename ItemsT = Aws::Vector<PublicKeySummary>>
99 void SetItems(ItemsT&& value) {
100 m_itemsHasBeenSet = true;
101 m_items = std::forward<ItemsT>(value);
102 }
103 template <typename ItemsT = Aws::Vector<PublicKeySummary>>
104 PublicKeyList& WithItems(ItemsT&& value) {
105 SetItems(std::forward<ItemsT>(value));
106 return *this;
107 }
108 template <typename ItemsT = PublicKeySummary>
109 PublicKeyList& AddItems(ItemsT&& value) {
110 m_itemsHasBeenSet = true;
111 m_items.emplace_back(std::forward<ItemsT>(value));
112 return *this;
113 }
115 private:
116 Aws::String m_nextMarker;
117
118 int m_maxItems{0};
119
120 int m_quantity{0};
121
123 bool m_nextMarkerHasBeenSet = false;
124 bool m_maxItemsHasBeenSet = false;
125 bool m_quantityHasBeenSet = false;
126 bool m_itemsHasBeenSet = false;
127};
128
129} // namespace Model
130} // namespace CloudFront
131} // namespace Aws
PublicKeyList & WithNextMarker(NextMarkerT &&value)
AWS_CLOUDFRONT_API PublicKeyList(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetNextMarker(NextMarkerT &&value)
const Aws::String & GetNextMarker() const
const Aws::Vector< PublicKeySummary > & GetItems() const
PublicKeyList & WithMaxItems(int value)
PublicKeyList & AddItems(ItemsT &&value)
AWS_CLOUDFRONT_API PublicKeyList & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_CLOUDFRONT_API PublicKeyList()=default
AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
PublicKeyList & WithQuantity(int value)
PublicKeyList & WithItems(ItemsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector