AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
RealtimeLogConfigs.h
1
6#pragma once
7#include <aws/cloudfront/CloudFront_EXPORTS.h>
8#include <aws/cloudfront/model/RealtimeLogConfig.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
29 public:
30 AWS_CLOUDFRONT_API RealtimeLogConfigs() = default;
31 AWS_CLOUDFRONT_API RealtimeLogConfigs(const Aws::Utils::Xml::XmlNode& xmlNode);
32 AWS_CLOUDFRONT_API RealtimeLogConfigs& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
33
34 AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
35
37
40 inline int GetMaxItems() const { return m_maxItems; }
41 inline bool MaxItemsHasBeenSet() const { return m_maxItemsHasBeenSet; }
42 inline void SetMaxItems(int value) {
43 m_maxItemsHasBeenSet = true;
44 m_maxItems = value;
45 }
46 inline RealtimeLogConfigs& WithMaxItems(int value) {
47 SetMaxItems(value);
48 return *this;
49 }
51
53
56 inline const Aws::Vector<RealtimeLogConfig>& GetItems() const { return m_items; }
57 inline bool ItemsHasBeenSet() const { return m_itemsHasBeenSet; }
58 template <typename ItemsT = Aws::Vector<RealtimeLogConfig>>
59 void SetItems(ItemsT&& value) {
60 m_itemsHasBeenSet = true;
61 m_items = std::forward<ItemsT>(value);
62 }
63 template <typename ItemsT = Aws::Vector<RealtimeLogConfig>>
64 RealtimeLogConfigs& WithItems(ItemsT&& value) {
65 SetItems(std::forward<ItemsT>(value));
66 return *this;
67 }
68 template <typename ItemsT = RealtimeLogConfig>
69 RealtimeLogConfigs& AddItems(ItemsT&& value) {
70 m_itemsHasBeenSet = true;
71 m_items.emplace_back(std::forward<ItemsT>(value));
72 return *this;
73 }
75
77
81 inline bool GetIsTruncated() const { return m_isTruncated; }
82 inline bool IsTruncatedHasBeenSet() const { return m_isTruncatedHasBeenSet; }
83 inline void SetIsTruncated(bool value) {
84 m_isTruncatedHasBeenSet = true;
85 m_isTruncated = value;
86 }
87 inline RealtimeLogConfigs& WithIsTruncated(bool value) {
88 SetIsTruncated(value);
89 return *this;
90 }
92
94
99 inline const Aws::String& GetMarker() const { return m_marker; }
100 inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; }
101 template <typename MarkerT = Aws::String>
102 void SetMarker(MarkerT&& value) {
103 m_markerHasBeenSet = true;
104 m_marker = std::forward<MarkerT>(value);
105 }
106 template <typename MarkerT = Aws::String>
107 RealtimeLogConfigs& WithMarker(MarkerT&& value) {
108 SetMarker(std::forward<MarkerT>(value));
109 return *this;
110 }
112
114
120 inline const Aws::String& GetNextMarker() const { return m_nextMarker; }
121 inline bool NextMarkerHasBeenSet() const { return m_nextMarkerHasBeenSet; }
122 template <typename NextMarkerT = Aws::String>
123 void SetNextMarker(NextMarkerT&& value) {
124 m_nextMarkerHasBeenSet = true;
125 m_nextMarker = std::forward<NextMarkerT>(value);
126 }
127 template <typename NextMarkerT = Aws::String>
128 RealtimeLogConfigs& WithNextMarker(NextMarkerT&& value) {
129 SetNextMarker(std::forward<NextMarkerT>(value));
130 return *this;
131 }
133 private:
134 int m_maxItems{0};
135
137
138 bool m_isTruncated{false};
139
140 Aws::String m_marker;
141
142 Aws::String m_nextMarker;
143 bool m_maxItemsHasBeenSet = false;
144 bool m_itemsHasBeenSet = false;
145 bool m_isTruncatedHasBeenSet = false;
146 bool m_markerHasBeenSet = false;
147 bool m_nextMarkerHasBeenSet = false;
148};
149
150} // namespace Model
151} // namespace CloudFront
152} // namespace Aws
AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
AWS_CLOUDFRONT_API RealtimeLogConfigs & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
RealtimeLogConfigs & WithItems(ItemsT &&value)
RealtimeLogConfigs & AddItems(ItemsT &&value)
AWS_CLOUDFRONT_API RealtimeLogConfigs(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_CLOUDFRONT_API RealtimeLogConfigs()=default
const Aws::Vector< RealtimeLogConfig > & GetItems() const
RealtimeLogConfigs & WithMarker(MarkerT &&value)
RealtimeLogConfigs & WithMaxItems(int value)
RealtimeLogConfigs & WithIsTruncated(bool value)
RealtimeLogConfigs & WithNextMarker(NextMarkerT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector