AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetARN(const Aws::String& value) { m_aRNHasBeenSet = true; m_aRN = value; }
49 inline void SetARN(Aws::String&& value) { m_aRNHasBeenSet = true; m_aRN = std::move(value); }
50 inline void SetARN(const char* value) { m_aRNHasBeenSet = true; m_aRN.assign(value); }
51 inline RealtimeLogConfig& WithARN(const Aws::String& value) { SetARN(value); return *this;}
52 inline RealtimeLogConfig& WithARN(Aws::String&& value) { SetARN(std::move(value)); return *this;}
53 inline RealtimeLogConfig& WithARN(const char* value) { SetARN(value); return *this;}
55
57
60 inline const Aws::String& GetName() const{ return m_name; }
61 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
62 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
63 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
64 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
65 inline RealtimeLogConfig& WithName(const Aws::String& value) { SetName(value); return *this;}
66 inline RealtimeLogConfig& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
67 inline RealtimeLogConfig& WithName(const char* value) { SetName(value); return *this;}
69
71
77 inline long long GetSamplingRate() const{ return m_samplingRate; }
78 inline bool SamplingRateHasBeenSet() const { return m_samplingRateHasBeenSet; }
79 inline void SetSamplingRate(long long value) { m_samplingRateHasBeenSet = true; m_samplingRate = value; }
80 inline RealtimeLogConfig& WithSamplingRate(long long value) { SetSamplingRate(value); return *this;}
82
84
88 inline const Aws::Vector<EndPoint>& GetEndPoints() const{ return m_endPoints; }
89 inline bool EndPointsHasBeenSet() const { return m_endPointsHasBeenSet; }
90 inline void SetEndPoints(const Aws::Vector<EndPoint>& value) { m_endPointsHasBeenSet = true; m_endPoints = value; }
91 inline void SetEndPoints(Aws::Vector<EndPoint>&& value) { m_endPointsHasBeenSet = true; m_endPoints = std::move(value); }
92 inline RealtimeLogConfig& WithEndPoints(const Aws::Vector<EndPoint>& value) { SetEndPoints(value); return *this;}
93 inline RealtimeLogConfig& WithEndPoints(Aws::Vector<EndPoint>&& value) { SetEndPoints(std::move(value)); return *this;}
94 inline RealtimeLogConfig& AddEndPoints(const EndPoint& value) { m_endPointsHasBeenSet = true; m_endPoints.push_back(value); return *this; }
95 inline RealtimeLogConfig& AddEndPoints(EndPoint&& value) { m_endPointsHasBeenSet = true; m_endPoints.push_back(std::move(value)); return *this; }
97
99
107 inline const Aws::Vector<Aws::String>& GetFields() const{ return m_fields; }
108 inline bool FieldsHasBeenSet() const { return m_fieldsHasBeenSet; }
109 inline void SetFields(const Aws::Vector<Aws::String>& value) { m_fieldsHasBeenSet = true; m_fields = value; }
110 inline void SetFields(Aws::Vector<Aws::String>&& value) { m_fieldsHasBeenSet = true; m_fields = std::move(value); }
111 inline RealtimeLogConfig& WithFields(const Aws::Vector<Aws::String>& value) { SetFields(value); return *this;}
112 inline RealtimeLogConfig& WithFields(Aws::Vector<Aws::String>&& value) { SetFields(std::move(value)); return *this;}
113 inline RealtimeLogConfig& AddFields(const Aws::String& value) { m_fieldsHasBeenSet = true; m_fields.push_back(value); return *this; }
114 inline RealtimeLogConfig& AddFields(Aws::String&& value) { m_fieldsHasBeenSet = true; m_fields.push_back(std::move(value)); return *this; }
115 inline RealtimeLogConfig& AddFields(const char* value) { m_fieldsHasBeenSet = true; m_fields.push_back(value); return *this; }
117 private:
118
119 Aws::String m_aRN;
120 bool m_aRNHasBeenSet = false;
121
122 Aws::String m_name;
123 bool m_nameHasBeenSet = false;
124
125 long long m_samplingRate;
126 bool m_samplingRateHasBeenSet = false;
127
128 Aws::Vector<EndPoint> m_endPoints;
129 bool m_endPointsHasBeenSet = false;
130
132 bool m_fieldsHasBeenSet = false;
133 };
134
135} // namespace Model
136} // namespace CloudFront
137} // namespace Aws
void SetFields(const Aws::Vector< Aws::String > &value)
RealtimeLogConfig & AddFields(const char *value)
AWS_CLOUDFRONT_API RealtimeLogConfig & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
RealtimeLogConfig & WithARN(const Aws::String &value)
const Aws::Vector< Aws::String > & GetFields() const
void SetFields(Aws::Vector< Aws::String > &&value)
RealtimeLogConfig & WithSamplingRate(long long value)
RealtimeLogConfig & AddFields(Aws::String &&value)
void SetEndPoints(Aws::Vector< EndPoint > &&value)
RealtimeLogConfig & WithFields(const Aws::Vector< Aws::String > &value)
RealtimeLogConfig & AddEndPoints(const EndPoint &value)
RealtimeLogConfig & AddEndPoints(EndPoint &&value)
const Aws::Vector< EndPoint > & GetEndPoints() const
RealtimeLogConfig & WithARN(Aws::String &&value)
RealtimeLogConfig & WithEndPoints(const Aws::Vector< EndPoint > &value)
RealtimeLogConfig & WithName(Aws::String &&value)
RealtimeLogConfig & WithARN(const char *value)
AWS_CLOUDFRONT_API RealtimeLogConfig(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetEndPoints(const Aws::Vector< EndPoint > &value)
RealtimeLogConfig & WithName(const char *value)
RealtimeLogConfig & WithName(const Aws::String &value)
RealtimeLogConfig & WithFields(Aws::Vector< Aws::String > &&value)
RealtimeLogConfig & WithEndPoints(Aws::Vector< EndPoint > &&value)
AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
void SetARN(const Aws::String &value)
RealtimeLogConfig & AddFields(const Aws::String &value)
void SetName(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector