AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
RealtimeLogConfig.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/EndPoint.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 RealtimeLogConfig() = default;
36 AWS_CLOUDFRONT_API RealtimeLogConfig(const Aws::Utils::Xml::XmlNode& xmlNode);
37 AWS_CLOUDFRONT_API RealtimeLogConfig& 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& GetARN() const { return m_aRN; }
47 inline bool ARNHasBeenSet() const { return m_aRNHasBeenSet; }
48 template<typename ARNT = Aws::String>
49 void SetARN(ARNT&& value) { m_aRNHasBeenSet = true; m_aRN = std::forward<ARNT>(value); }
50 template<typename ARNT = Aws::String>
51 RealtimeLogConfig& WithARN(ARNT&& value) { SetARN(std::forward<ARNT>(value)); return *this;}
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) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
62 template<typename NameT = Aws::String>
63 RealtimeLogConfig& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
65
67
73 inline long long GetSamplingRate() const { return m_samplingRate; }
74 inline bool SamplingRateHasBeenSet() const { return m_samplingRateHasBeenSet; }
75 inline void SetSamplingRate(long long value) { m_samplingRateHasBeenSet = true; m_samplingRate = value; }
76 inline RealtimeLogConfig& WithSamplingRate(long long value) { SetSamplingRate(value); return *this;}
78
80
84 inline const Aws::Vector<EndPoint>& GetEndPoints() const { return m_endPoints; }
85 inline bool EndPointsHasBeenSet() const { return m_endPointsHasBeenSet; }
86 template<typename EndPointsT = Aws::Vector<EndPoint>>
87 void SetEndPoints(EndPointsT&& value) { m_endPointsHasBeenSet = true; m_endPoints = std::forward<EndPointsT>(value); }
88 template<typename EndPointsT = Aws::Vector<EndPoint>>
89 RealtimeLogConfig& WithEndPoints(EndPointsT&& value) { SetEndPoints(std::forward<EndPointsT>(value)); return *this;}
90 template<typename EndPointsT = EndPoint>
91 RealtimeLogConfig& AddEndPoints(EndPointsT&& value) { m_endPointsHasBeenSet = true; m_endPoints.emplace_back(std::forward<EndPointsT>(value)); return *this; }
93
95
103 inline const Aws::Vector<Aws::String>& GetFields() const { return m_fields; }
104 inline bool FieldsHasBeenSet() const { return m_fieldsHasBeenSet; }
105 template<typename FieldsT = Aws::Vector<Aws::String>>
106 void SetFields(FieldsT&& value) { m_fieldsHasBeenSet = true; m_fields = std::forward<FieldsT>(value); }
107 template<typename FieldsT = Aws::Vector<Aws::String>>
108 RealtimeLogConfig& WithFields(FieldsT&& value) { SetFields(std::forward<FieldsT>(value)); return *this;}
109 template<typename FieldsT = Aws::String>
110 RealtimeLogConfig& AddFields(FieldsT&& value) { m_fieldsHasBeenSet = true; m_fields.emplace_back(std::forward<FieldsT>(value)); return *this; }
112 private:
113
114 Aws::String m_aRN;
115 bool m_aRNHasBeenSet = false;
116
117 Aws::String m_name;
118 bool m_nameHasBeenSet = false;
119
120 long long m_samplingRate{0};
121 bool m_samplingRateHasBeenSet = false;
122
123 Aws::Vector<EndPoint> m_endPoints;
124 bool m_endPointsHasBeenSet = false;
125
127 bool m_fieldsHasBeenSet = false;
128 };
129
130} // namespace Model
131} // namespace CloudFront
132} // 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