AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
RealtimeLogConfig.h
1
6#pragma once
7#include <aws/cloudfront/CloudFront_EXPORTS.h>
8#include <aws/cloudfront/model/EndPoint.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 RealtimeLogConfig() = default;
31 AWS_CLOUDFRONT_API RealtimeLogConfig(const Aws::Utils::Xml::XmlNode& xmlNode);
32 AWS_CLOUDFRONT_API RealtimeLogConfig& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
33
34 AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
35
37
40 inline const Aws::String& GetARN() const { return m_aRN; }
41 inline bool ARNHasBeenSet() const { return m_aRNHasBeenSet; }
42 template <typename ARNT = Aws::String>
43 void SetARN(ARNT&& value) {
44 m_aRNHasBeenSet = true;
45 m_aRN = std::forward<ARNT>(value);
46 }
47 template <typename ARNT = Aws::String>
48 RealtimeLogConfig& WithARN(ARNT&& value) {
49 SetARN(std::forward<ARNT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetName() const { return m_name; }
59 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
60 template <typename NameT = Aws::String>
61 void SetName(NameT&& value) {
62 m_nameHasBeenSet = true;
63 m_name = std::forward<NameT>(value);
64 }
65 template <typename NameT = Aws::String>
66 RealtimeLogConfig& WithName(NameT&& value) {
67 SetName(std::forward<NameT>(value));
68 return *this;
69 }
71
73
79 inline long long GetSamplingRate() const { return m_samplingRate; }
80 inline bool SamplingRateHasBeenSet() const { return m_samplingRateHasBeenSet; }
81 inline void SetSamplingRate(long long value) {
82 m_samplingRateHasBeenSet = true;
83 m_samplingRate = value;
84 }
85 inline RealtimeLogConfig& WithSamplingRate(long long value) {
86 SetSamplingRate(value);
87 return *this;
88 }
90
92
96 inline const Aws::Vector<EndPoint>& GetEndPoints() const { return m_endPoints; }
97 inline bool EndPointsHasBeenSet() const { return m_endPointsHasBeenSet; }
98 template <typename EndPointsT = Aws::Vector<EndPoint>>
99 void SetEndPoints(EndPointsT&& value) {
100 m_endPointsHasBeenSet = true;
101 m_endPoints = std::forward<EndPointsT>(value);
102 }
103 template <typename EndPointsT = Aws::Vector<EndPoint>>
104 RealtimeLogConfig& WithEndPoints(EndPointsT&& value) {
105 SetEndPoints(std::forward<EndPointsT>(value));
106 return *this;
107 }
108 template <typename EndPointsT = EndPoint>
109 RealtimeLogConfig& AddEndPoints(EndPointsT&& value) {
110 m_endPointsHasBeenSet = true;
111 m_endPoints.emplace_back(std::forward<EndPointsT>(value));
112 return *this;
113 }
115
117
125 inline const Aws::Vector<Aws::String>& GetFields() const { return m_fields; }
126 inline bool FieldsHasBeenSet() const { return m_fieldsHasBeenSet; }
127 template <typename FieldsT = Aws::Vector<Aws::String>>
128 void SetFields(FieldsT&& value) {
129 m_fieldsHasBeenSet = true;
130 m_fields = std::forward<FieldsT>(value);
131 }
132 template <typename FieldsT = Aws::Vector<Aws::String>>
133 RealtimeLogConfig& WithFields(FieldsT&& value) {
134 SetFields(std::forward<FieldsT>(value));
135 return *this;
136 }
137 template <typename FieldsT = Aws::String>
138 RealtimeLogConfig& AddFields(FieldsT&& value) {
139 m_fieldsHasBeenSet = true;
140 m_fields.emplace_back(std::forward<FieldsT>(value));
141 return *this;
142 }
144 private:
145 Aws::String m_aRN;
146
147 Aws::String m_name;
148
149 long long m_samplingRate{0};
150
151 Aws::Vector<EndPoint> m_endPoints;
152
154 bool m_aRNHasBeenSet = false;
155 bool m_nameHasBeenSet = false;
156 bool m_samplingRateHasBeenSet = false;
157 bool m_endPointsHasBeenSet = false;
158 bool m_fieldsHasBeenSet = false;
159};
160
161} // namespace Model
162} // namespace CloudFront
163} // namespace Aws
RealtimeLogConfig & WithEndPoints(EndPointsT &&value)
AWS_CLOUDFRONT_API RealtimeLogConfig & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
RealtimeLogConfig & WithName(NameT &&value)
const Aws::Vector< Aws::String > & GetFields() const
RealtimeLogConfig & WithSamplingRate(long long value)
const Aws::Vector< EndPoint > & GetEndPoints() const
AWS_CLOUDFRONT_API RealtimeLogConfig()=default
RealtimeLogConfig & AddEndPoints(EndPointsT &&value)
AWS_CLOUDFRONT_API RealtimeLogConfig(const Aws::Utils::Xml::XmlNode &xmlNode)
RealtimeLogConfig & WithARN(ARNT &&value)
RealtimeLogConfig & AddFields(FieldsT &&value)
RealtimeLogConfig & WithFields(FieldsT &&value)
AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector