AWS SDK for C++  1.9.16
AWS SDK for C++
UpdateRealtimeLogConfig2020_05_31Request.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace CloudFront
17 {
18 namespace Model
19 {
20 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "UpdateRealtimeLogConfig"; }
33 
34  Aws::String SerializePayload() const override;
35 
36 
41  inline const Aws::Vector<EndPoint>& GetEndPoints() const{ return m_endPoints; }
42 
47  inline bool EndPointsHasBeenSet() const { return m_endPointsHasBeenSet; }
48 
53  inline void SetEndPoints(const Aws::Vector<EndPoint>& value) { m_endPointsHasBeenSet = true; m_endPoints = value; }
54 
59  inline void SetEndPoints(Aws::Vector<EndPoint>&& value) { m_endPointsHasBeenSet = true; m_endPoints = std::move(value); }
60 
65  inline UpdateRealtimeLogConfig2020_05_31Request& WithEndPoints(const Aws::Vector<EndPoint>& value) { SetEndPoints(value); return *this;}
66 
71  inline UpdateRealtimeLogConfig2020_05_31Request& WithEndPoints(Aws::Vector<EndPoint>&& value) { SetEndPoints(std::move(value)); return *this;}
72 
77  inline UpdateRealtimeLogConfig2020_05_31Request& AddEndPoints(const EndPoint& value) { m_endPointsHasBeenSet = true; m_endPoints.push_back(value); return *this; }
78 
83  inline UpdateRealtimeLogConfig2020_05_31Request& AddEndPoints(EndPoint&& value) { m_endPointsHasBeenSet = true; m_endPoints.push_back(std::move(value)); return *this; }
84 
85 
93  inline const Aws::Vector<Aws::String>& GetFields() const{ return m_fields; }
94 
102  inline bool FieldsHasBeenSet() const { return m_fieldsHasBeenSet; }
103 
111  inline void SetFields(const Aws::Vector<Aws::String>& value) { m_fieldsHasBeenSet = true; m_fields = value; }
112 
120  inline void SetFields(Aws::Vector<Aws::String>&& value) { m_fieldsHasBeenSet = true; m_fields = std::move(value); }
121 
129  inline UpdateRealtimeLogConfig2020_05_31Request& WithFields(const Aws::Vector<Aws::String>& value) { SetFields(value); return *this;}
130 
138  inline UpdateRealtimeLogConfig2020_05_31Request& WithFields(Aws::Vector<Aws::String>&& value) { SetFields(std::move(value)); return *this;}
139 
147  inline UpdateRealtimeLogConfig2020_05_31Request& AddFields(const Aws::String& value) { m_fieldsHasBeenSet = true; m_fields.push_back(value); return *this; }
148 
156  inline UpdateRealtimeLogConfig2020_05_31Request& AddFields(Aws::String&& value) { m_fieldsHasBeenSet = true; m_fields.push_back(std::move(value)); return *this; }
157 
165  inline UpdateRealtimeLogConfig2020_05_31Request& AddFields(const char* value) { m_fieldsHasBeenSet = true; m_fields.push_back(value); return *this; }
166 
167 
171  inline const Aws::String& GetName() const{ return m_name; }
172 
176  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
177 
181  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
182 
186  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
187 
191  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
192 
196  inline UpdateRealtimeLogConfig2020_05_31Request& WithName(const Aws::String& value) { SetName(value); return *this;}
197 
201  inline UpdateRealtimeLogConfig2020_05_31Request& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
202 
206  inline UpdateRealtimeLogConfig2020_05_31Request& WithName(const char* value) { SetName(value); return *this;}
207 
208 
212  inline const Aws::String& GetARN() const{ return m_aRN; }
213 
217  inline bool ARNHasBeenSet() const { return m_aRNHasBeenSet; }
218 
222  inline void SetARN(const Aws::String& value) { m_aRNHasBeenSet = true; m_aRN = value; }
223 
227  inline void SetARN(Aws::String&& value) { m_aRNHasBeenSet = true; m_aRN = std::move(value); }
228 
232  inline void SetARN(const char* value) { m_aRNHasBeenSet = true; m_aRN.assign(value); }
233 
237  inline UpdateRealtimeLogConfig2020_05_31Request& WithARN(const Aws::String& value) { SetARN(value); return *this;}
238 
242  inline UpdateRealtimeLogConfig2020_05_31Request& WithARN(Aws::String&& value) { SetARN(std::move(value)); return *this;}
243 
247  inline UpdateRealtimeLogConfig2020_05_31Request& WithARN(const char* value) { SetARN(value); return *this;}
248 
249 
256  inline long long GetSamplingRate() const{ return m_samplingRate; }
257 
264  inline bool SamplingRateHasBeenSet() const { return m_samplingRateHasBeenSet; }
265 
272  inline void SetSamplingRate(long long value) { m_samplingRateHasBeenSet = true; m_samplingRate = value; }
273 
280  inline UpdateRealtimeLogConfig2020_05_31Request& WithSamplingRate(long long value) { SetSamplingRate(value); return *this;}
281 
282  private:
283 
284  Aws::Vector<EndPoint> m_endPoints;
285  bool m_endPointsHasBeenSet;
286 
287  Aws::Vector<Aws::String> m_fields;
288  bool m_fieldsHasBeenSet;
289 
290  Aws::String m_name;
291  bool m_nameHasBeenSet;
292 
293  Aws::String m_aRN;
294  bool m_aRNHasBeenSet;
295 
296  long long m_samplingRate;
297  bool m_samplingRateHasBeenSet;
298  };
299 
300 } // namespace Model
301 } // namespace CloudFront
302 } // namespace Aws
Aws::CloudFront::Model::UpdateRealtimeLogConfig2020_05_31Request::SetName
void SetName(const Aws::String &value)
Definition: UpdateRealtimeLogConfig2020_05_31Request.h:181
Aws::CloudFront::Model::UpdateRealtimeLogConfig2020_05_31Request::SetEndPoints
void SetEndPoints(const Aws::Vector< EndPoint > &value)
Definition: UpdateRealtimeLogConfig2020_05_31Request.h:53
Aws::CloudFront::Model::UpdateRealtimeLogConfig2020_05_31Request::EndPointsHasBeenSet
bool EndPointsHasBeenSet() const
Definition: UpdateRealtimeLogConfig2020_05_31Request.h:47
Aws::CloudFront::Model::UpdateRealtimeLogConfig2020_05_31Request::SetFields
void SetFields(const Aws::Vector< Aws::String > &value)
Definition: UpdateRealtimeLogConfig2020_05_31Request.h:111
Aws::CloudFront::Model::UpdateRealtimeLogConfig2020_05_31Request::AddFields
UpdateRealtimeLogConfig2020_05_31Request & AddFields(const Aws::String &value)
Definition: UpdateRealtimeLogConfig2020_05_31Request.h:147
Aws::CloudFront::Model::UpdateRealtimeLogConfig2020_05_31Request::SetEndPoints
void SetEndPoints(Aws::Vector< EndPoint > &&value)
Definition: UpdateRealtimeLogConfig2020_05_31Request.h:59
CloudFrontRequest.h
Aws::CloudFront::Model::UpdateRealtimeLogConfig2020_05_31Request::GetARN
const Aws::String & GetARN() const
Definition: UpdateRealtimeLogConfig2020_05_31Request.h:212
Aws::CloudFront::Model::UpdateRealtimeLogConfig2020_05_31Request::WithEndPoints
UpdateRealtimeLogConfig2020_05_31Request & WithEndPoints(const Aws::Vector< EndPoint > &value)
Definition: UpdateRealtimeLogConfig2020_05_31Request.h:65
Aws::CloudFront::Model::UpdateRealtimeLogConfig2020_05_31Request::NameHasBeenSet
bool NameHasBeenSet() const
Definition: UpdateRealtimeLogConfig2020_05_31Request.h:176
Aws::CloudFront::Model::UpdateRealtimeLogConfig2020_05_31Request::SetName
void SetName(const char *value)
Definition: UpdateRealtimeLogConfig2020_05_31Request.h:191
Aws::CloudFront::Model::UpdateRealtimeLogConfig2020_05_31Request::SetFields
void SetFields(Aws::Vector< Aws::String > &&value)
Definition: UpdateRealtimeLogConfig2020_05_31Request.h:120
EndPoint.h
Aws::CloudFront::Model::UpdateRealtimeLogConfig2020_05_31Request::WithName
UpdateRealtimeLogConfig2020_05_31Request & WithName(const char *value)
Definition: UpdateRealtimeLogConfig2020_05_31Request.h:206
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::CloudFront::Model::UpdateRealtimeLogConfig2020_05_31Request::AddFields
UpdateRealtimeLogConfig2020_05_31Request & AddFields(Aws::String &&value)
Definition: UpdateRealtimeLogConfig2020_05_31Request.h:156
Aws::CloudFront::Model::EndPoint
Definition: EndPoint.h:34
AWSVector.h
Aws::CloudFront::Model::UpdateRealtimeLogConfig2020_05_31Request::SetName
void SetName(Aws::String &&value)
Definition: UpdateRealtimeLogConfig2020_05_31Request.h:186
Aws::CloudFront::Model::UpdateRealtimeLogConfig2020_05_31Request::WithARN
UpdateRealtimeLogConfig2020_05_31Request & WithARN(const Aws::String &value)
Definition: UpdateRealtimeLogConfig2020_05_31Request.h:237
Aws::CloudFront::Model::UpdateRealtimeLogConfig2020_05_31Request::UpdateRealtimeLogConfig2020_05_31Request
UpdateRealtimeLogConfig2020_05_31Request()
Aws::CloudFront::Model::UpdateRealtimeLogConfig2020_05_31Request::WithName
UpdateRealtimeLogConfig2020_05_31Request & WithName(const Aws::String &value)
Definition: UpdateRealtimeLogConfig2020_05_31Request.h:196
Aws::CloudFront::Model::UpdateRealtimeLogConfig2020_05_31Request::GetEndPoints
const Aws::Vector< EndPoint > & GetEndPoints() const
Definition: UpdateRealtimeLogConfig2020_05_31Request.h:41
Aws::CloudFront::Model::UpdateRealtimeLogConfig2020_05_31Request::WithName
UpdateRealtimeLogConfig2020_05_31Request & WithName(Aws::String &&value)
Definition: UpdateRealtimeLogConfig2020_05_31Request.h:201
Aws::CloudFront::Model::UpdateRealtimeLogConfig2020_05_31Request::WithEndPoints
UpdateRealtimeLogConfig2020_05_31Request & WithEndPoints(Aws::Vector< EndPoint > &&value)
Definition: UpdateRealtimeLogConfig2020_05_31Request.h:71
Aws::CloudFront::Model::UpdateRealtimeLogConfig2020_05_31Request::SetARN
void SetARN(Aws::String &&value)
Definition: UpdateRealtimeLogConfig2020_05_31Request.h:227
Aws::CloudFront::Model::UpdateRealtimeLogConfig2020_05_31Request::SetARN
void SetARN(const char *value)
Definition: UpdateRealtimeLogConfig2020_05_31Request.h:232
Aws::CloudFront::Model::UpdateRealtimeLogConfig2020_05_31Request::AddEndPoints
UpdateRealtimeLogConfig2020_05_31Request & AddEndPoints(const EndPoint &value)
Definition: UpdateRealtimeLogConfig2020_05_31Request.h:77
Aws::CloudFront::Model::UpdateRealtimeLogConfig2020_05_31Request::SetSamplingRate
void SetSamplingRate(long long value)
Definition: UpdateRealtimeLogConfig2020_05_31Request.h:272
AWSString.h
Aws::CloudFront::Model::UpdateRealtimeLogConfig2020_05_31Request::SerializePayload
Aws::String SerializePayload() const override
Aws::CloudFront::CloudFrontRequest
Definition: CloudFrontRequest.h:17
AWS_CLOUDFRONT_API
#define AWS_CLOUDFRONT_API
Definition: CloudFront_EXPORTS.h:28
Aws::CloudFront::Model::UpdateRealtimeLogConfig2020_05_31Request::FieldsHasBeenSet
bool FieldsHasBeenSet() const
Definition: UpdateRealtimeLogConfig2020_05_31Request.h:102
Aws::CloudFront::Model::UpdateRealtimeLogConfig2020_05_31Request::GetSamplingRate
long long GetSamplingRate() const
Definition: UpdateRealtimeLogConfig2020_05_31Request.h:256
Aws::CloudFront::Model::UpdateRealtimeLogConfig2020_05_31Request::GetName
const Aws::String & GetName() const
Definition: UpdateRealtimeLogConfig2020_05_31Request.h:171
CloudFront_EXPORTS.h
Aws::CloudFront::Model::UpdateRealtimeLogConfig2020_05_31Request::WithFields
UpdateRealtimeLogConfig2020_05_31Request & WithFields(const Aws::Vector< Aws::String > &value)
Definition: UpdateRealtimeLogConfig2020_05_31Request.h:129
Aws::CloudFront::Model::UpdateRealtimeLogConfig2020_05_31Request::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateRealtimeLogConfig2020_05_31Request.h:32
Aws::CloudFront::Model::UpdateRealtimeLogConfig2020_05_31Request::WithARN
UpdateRealtimeLogConfig2020_05_31Request & WithARN(Aws::String &&value)
Definition: UpdateRealtimeLogConfig2020_05_31Request.h:242
Aws
Definition: AccessManagementClient.h:15
Aws::CloudFront::Model::UpdateRealtimeLogConfig2020_05_31Request
Definition: UpdateRealtimeLogConfig2020_05_31Request.h:24
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CloudFront::Model::UpdateRealtimeLogConfig2020_05_31Request::WithFields
UpdateRealtimeLogConfig2020_05_31Request & WithFields(Aws::Vector< Aws::String > &&value)
Definition: UpdateRealtimeLogConfig2020_05_31Request.h:138
Aws::CloudFront::Model::UpdateRealtimeLogConfig2020_05_31Request::GetFields
const Aws::Vector< Aws::String > & GetFields() const
Definition: UpdateRealtimeLogConfig2020_05_31Request.h:93
Aws::CloudFront::Model::UpdateRealtimeLogConfig2020_05_31Request::AddEndPoints
UpdateRealtimeLogConfig2020_05_31Request & AddEndPoints(EndPoint &&value)
Definition: UpdateRealtimeLogConfig2020_05_31Request.h:83
Aws::CloudFront::Model::UpdateRealtimeLogConfig2020_05_31Request::ARNHasBeenSet
bool ARNHasBeenSet() const
Definition: UpdateRealtimeLogConfig2020_05_31Request.h:217
Aws::CloudFront::Model::UpdateRealtimeLogConfig2020_05_31Request::SetARN
void SetARN(const Aws::String &value)
Definition: UpdateRealtimeLogConfig2020_05_31Request.h:222
Aws::CloudFront::Model::UpdateRealtimeLogConfig2020_05_31Request::AddFields
UpdateRealtimeLogConfig2020_05_31Request & AddFields(const char *value)
Definition: UpdateRealtimeLogConfig2020_05_31Request.h:165
Aws::CloudFront::Model::UpdateRealtimeLogConfig2020_05_31Request::SamplingRateHasBeenSet
bool SamplingRateHasBeenSet() const
Definition: UpdateRealtimeLogConfig2020_05_31Request.h:264
Aws::CloudFront::Model::UpdateRealtimeLogConfig2020_05_31Request::WithARN
UpdateRealtimeLogConfig2020_05_31Request & WithARN(const char *value)
Definition: UpdateRealtimeLogConfig2020_05_31Request.h:247
Aws::CloudFront::Model::UpdateRealtimeLogConfig2020_05_31Request::WithSamplingRate
UpdateRealtimeLogConfig2020_05_31Request & WithSamplingRate(long long value)
Definition: UpdateRealtimeLogConfig2020_05_31Request.h:280