AWS SDK for C++  1.9.16
AWS SDK for C++
RealtimeLogConfig.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Xml
18 {
19  class XmlNode;
20 } // namespace Xml
21 } // namespace Utils
22 namespace CloudFront
23 {
24 namespace Model
25 {
26 
33  {
34  public:
38 
39  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
40 
41 
45  inline const Aws::String& GetARN() const{ return m_aRN; }
46 
50  inline bool ARNHasBeenSet() const { return m_aRNHasBeenSet; }
51 
55  inline void SetARN(const Aws::String& value) { m_aRNHasBeenSet = true; m_aRN = value; }
56 
60  inline void SetARN(Aws::String&& value) { m_aRNHasBeenSet = true; m_aRN = std::move(value); }
61 
65  inline void SetARN(const char* value) { m_aRNHasBeenSet = true; m_aRN.assign(value); }
66 
70  inline RealtimeLogConfig& WithARN(const Aws::String& value) { SetARN(value); return *this;}
71 
75  inline RealtimeLogConfig& WithARN(Aws::String&& value) { SetARN(std::move(value)); return *this;}
76 
80  inline RealtimeLogConfig& WithARN(const char* value) { SetARN(value); return *this;}
81 
82 
86  inline const Aws::String& GetName() const{ return m_name; }
87 
91  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
92 
96  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
97 
101  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
102 
106  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
107 
111  inline RealtimeLogConfig& WithName(const Aws::String& value) { SetName(value); return *this;}
112 
116  inline RealtimeLogConfig& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
117 
121  inline RealtimeLogConfig& WithName(const char* value) { SetName(value); return *this;}
122 
123 
130  inline long long GetSamplingRate() const{ return m_samplingRate; }
131 
138  inline bool SamplingRateHasBeenSet() const { return m_samplingRateHasBeenSet; }
139 
146  inline void SetSamplingRate(long long value) { m_samplingRateHasBeenSet = true; m_samplingRate = value; }
147 
154  inline RealtimeLogConfig& WithSamplingRate(long long value) { SetSamplingRate(value); return *this;}
155 
156 
161  inline const Aws::Vector<EndPoint>& GetEndPoints() const{ return m_endPoints; }
162 
167  inline bool EndPointsHasBeenSet() const { return m_endPointsHasBeenSet; }
168 
173  inline void SetEndPoints(const Aws::Vector<EndPoint>& value) { m_endPointsHasBeenSet = true; m_endPoints = value; }
174 
179  inline void SetEndPoints(Aws::Vector<EndPoint>&& value) { m_endPointsHasBeenSet = true; m_endPoints = std::move(value); }
180 
185  inline RealtimeLogConfig& WithEndPoints(const Aws::Vector<EndPoint>& value) { SetEndPoints(value); return *this;}
186 
191  inline RealtimeLogConfig& WithEndPoints(Aws::Vector<EndPoint>&& value) { SetEndPoints(std::move(value)); return *this;}
192 
197  inline RealtimeLogConfig& AddEndPoints(const EndPoint& value) { m_endPointsHasBeenSet = true; m_endPoints.push_back(value); return *this; }
198 
203  inline RealtimeLogConfig& AddEndPoints(EndPoint&& value) { m_endPointsHasBeenSet = true; m_endPoints.push_back(std::move(value)); return *this; }
204 
205 
214  inline const Aws::Vector<Aws::String>& GetFields() const{ return m_fields; }
215 
224  inline bool FieldsHasBeenSet() const { return m_fieldsHasBeenSet; }
225 
234  inline void SetFields(const Aws::Vector<Aws::String>& value) { m_fieldsHasBeenSet = true; m_fields = value; }
235 
244  inline void SetFields(Aws::Vector<Aws::String>&& value) { m_fieldsHasBeenSet = true; m_fields = std::move(value); }
245 
254  inline RealtimeLogConfig& WithFields(const Aws::Vector<Aws::String>& value) { SetFields(value); return *this;}
255 
264  inline RealtimeLogConfig& WithFields(Aws::Vector<Aws::String>&& value) { SetFields(std::move(value)); return *this;}
265 
274  inline RealtimeLogConfig& AddFields(const Aws::String& value) { m_fieldsHasBeenSet = true; m_fields.push_back(value); return *this; }
275 
284  inline RealtimeLogConfig& AddFields(Aws::String&& value) { m_fieldsHasBeenSet = true; m_fields.push_back(std::move(value)); return *this; }
285 
294  inline RealtimeLogConfig& AddFields(const char* value) { m_fieldsHasBeenSet = true; m_fields.push_back(value); return *this; }
295 
296  private:
297 
298  Aws::String m_aRN;
299  bool m_aRNHasBeenSet;
300 
301  Aws::String m_name;
302  bool m_nameHasBeenSet;
303 
304  long long m_samplingRate;
305  bool m_samplingRateHasBeenSet;
306 
307  Aws::Vector<EndPoint> m_endPoints;
308  bool m_endPointsHasBeenSet;
309 
310  Aws::Vector<Aws::String> m_fields;
311  bool m_fieldsHasBeenSet;
312  };
313 
314 } // namespace Model
315 } // namespace CloudFront
316 } // namespace Aws
Aws::CloudFront::Model::RealtimeLogConfig::SetARN
void SetARN(Aws::String &&value)
Definition: RealtimeLogConfig.h:60
Aws::CloudFront::Model::RealtimeLogConfig::SetFields
void SetFields(Aws::Vector< Aws::String > &&value)
Definition: RealtimeLogConfig.h:244
Aws::CloudFront::Model::RealtimeLogConfig::GetSamplingRate
long long GetSamplingRate() const
Definition: RealtimeLogConfig.h:130
Aws::CloudFront::Model::RealtimeLogConfig::GetFields
const Aws::Vector< Aws::String > & GetFields() const
Definition: RealtimeLogConfig.h:214
Aws::CloudFront::Model::RealtimeLogConfig::WithEndPoints
RealtimeLogConfig & WithEndPoints(const Aws::Vector< EndPoint > &value)
Definition: RealtimeLogConfig.h:185
Aws::CloudFront::Model::RealtimeLogConfig::WithFields
RealtimeLogConfig & WithFields(const Aws::Vector< Aws::String > &value)
Definition: RealtimeLogConfig.h:254
Aws::CloudFront::Model::RealtimeLogConfig::AddEndPoints
RealtimeLogConfig & AddEndPoints(const EndPoint &value)
Definition: RealtimeLogConfig.h:197
EndPoint.h
Aws::CloudFront::Model::RealtimeLogConfig::EndPointsHasBeenSet
bool EndPointsHasBeenSet() const
Definition: RealtimeLogConfig.h:167
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::CloudFront::Model::RealtimeLogConfig::WithSamplingRate
RealtimeLogConfig & WithSamplingRate(long long value)
Definition: RealtimeLogConfig.h:154
Aws::CloudFront::Model::RealtimeLogConfig::WithName
RealtimeLogConfig & WithName(const Aws::String &value)
Definition: RealtimeLogConfig.h:111
Aws::CloudFront::Model::EndPoint
Definition: EndPoint.h:34
Aws::CloudFront::Model::RealtimeLogConfig::AddEndPoints
RealtimeLogConfig & AddEndPoints(EndPoint &&value)
Definition: RealtimeLogConfig.h:203
AWSVector.h
Aws::CloudFront::Model::RealtimeLogConfig::AddFields
RealtimeLogConfig & AddFields(const char *value)
Definition: RealtimeLogConfig.h:294
Aws::CloudFront::Model::RealtimeLogConfig::WithEndPoints
RealtimeLogConfig & WithEndPoints(Aws::Vector< EndPoint > &&value)
Definition: RealtimeLogConfig.h:191
Aws::CloudFront::Model::RealtimeLogConfig::ARNHasBeenSet
bool ARNHasBeenSet() const
Definition: RealtimeLogConfig.h:50
Aws::CloudFront::Model::RealtimeLogConfig::GetARN
const Aws::String & GetARN() const
Definition: RealtimeLogConfig.h:45
Aws::CloudFront::Model::RealtimeLogConfig::RealtimeLogConfig
RealtimeLogConfig(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::CloudFront::Model::RealtimeLogConfig::GetEndPoints
const Aws::Vector< EndPoint > & GetEndPoints() const
Definition: RealtimeLogConfig.h:161
Aws::CloudFront::Model::RealtimeLogConfig::SetName
void SetName(const char *value)
Definition: RealtimeLogConfig.h:106
Aws::CloudFront::Model::RealtimeLogConfig::WithName
RealtimeLogConfig & WithName(const char *value)
Definition: RealtimeLogConfig.h:121
Aws::CloudFront::Model::RealtimeLogConfig::GetName
const Aws::String & GetName() const
Definition: RealtimeLogConfig.h:86
Aws::CloudFront::Model::RealtimeLogConfig::AddFields
RealtimeLogConfig & AddFields(const Aws::String &value)
Definition: RealtimeLogConfig.h:274
Aws::CloudFront::Model::RealtimeLogConfig::WithName
RealtimeLogConfig & WithName(Aws::String &&value)
Definition: RealtimeLogConfig.h:116
Aws::CloudFront::Model::RealtimeLogConfig::SetName
void SetName(const Aws::String &value)
Definition: RealtimeLogConfig.h:96
Aws::CloudFront::Model::RealtimeLogConfig::WithARN
RealtimeLogConfig & WithARN(Aws::String &&value)
Definition: RealtimeLogConfig.h:75
AWSString.h
Aws::CloudFront::Model::RealtimeLogConfig::SamplingRateHasBeenSet
bool SamplingRateHasBeenSet() const
Definition: RealtimeLogConfig.h:138
AWS_CLOUDFRONT_API
#define AWS_CLOUDFRONT_API
Definition: CloudFront_EXPORTS.h:28
Aws::CloudFront::Model::RealtimeLogConfig::operator=
RealtimeLogConfig & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::CloudFront::Model::RealtimeLogConfig::SetFields
void SetFields(const Aws::Vector< Aws::String > &value)
Definition: RealtimeLogConfig.h:234
Aws::CloudFront::Model::RealtimeLogConfig::AddFields
RealtimeLogConfig & AddFields(Aws::String &&value)
Definition: RealtimeLogConfig.h:284
Aws::CloudFront::Model::RealtimeLogConfig::SetEndPoints
void SetEndPoints(const Aws::Vector< EndPoint > &value)
Definition: RealtimeLogConfig.h:173
Aws::CloudFront::Model::RealtimeLogConfig::SetName
void SetName(Aws::String &&value)
Definition: RealtimeLogConfig.h:101
Aws::CloudFront::Model::RealtimeLogConfig::WithARN
RealtimeLogConfig & WithARN(const char *value)
Definition: RealtimeLogConfig.h:80
Aws::CloudFront::Model::RealtimeLogConfig::SetSamplingRate
void SetSamplingRate(long long value)
Definition: RealtimeLogConfig.h:146
CloudFront_EXPORTS.h
Aws::CloudFront::Model::RealtimeLogConfig::WithARN
RealtimeLogConfig & WithARN(const Aws::String &value)
Definition: RealtimeLogConfig.h:70
Aws::CloudFront::Model::RealtimeLogConfig::FieldsHasBeenSet
bool FieldsHasBeenSet() const
Definition: RealtimeLogConfig.h:224
Aws
Definition: AccessManagementClient.h:15
Aws::CloudFront::Model::RealtimeLogConfig::AddToNode
void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CloudFront::Model::RealtimeLogConfig::SetARN
void SetARN(const Aws::String &value)
Definition: RealtimeLogConfig.h:55
Aws::CloudFront::Model::RealtimeLogConfig
Definition: RealtimeLogConfig.h:33
Aws::CloudFront::Model::RealtimeLogConfig::SetEndPoints
void SetEndPoints(Aws::Vector< EndPoint > &&value)
Definition: RealtimeLogConfig.h:179
Aws::CloudFront::Model::RealtimeLogConfig::RealtimeLogConfig
RealtimeLogConfig()
Aws::CloudFront::Model::RealtimeLogConfig::WithFields
RealtimeLogConfig & WithFields(Aws::Vector< Aws::String > &&value)
Definition: RealtimeLogConfig.h:264
Aws::CloudFront::Model::RealtimeLogConfig::SetARN
void SetARN(const char *value)
Definition: RealtimeLogConfig.h:65
Aws::CloudFront::Model::RealtimeLogConfig::NameHasBeenSet
bool NameHasBeenSet() const
Definition: RealtimeLogConfig.h:91