AWS SDK for C++  1.9.15
AWS SDK for C++
CreateRealtimeLogConfig2020_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 "CreateRealtimeLogConfig"; }
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 CreateRealtimeLogConfig2020_05_31Request& WithEndPoints(const Aws::Vector<EndPoint>& value) { SetEndPoints(value); return *this;}
66 
71  inline CreateRealtimeLogConfig2020_05_31Request& WithEndPoints(Aws::Vector<EndPoint>&& value) { SetEndPoints(std::move(value)); return *this;}
72 
77  inline CreateRealtimeLogConfig2020_05_31Request& AddEndPoints(const EndPoint& value) { m_endPointsHasBeenSet = true; m_endPoints.push_back(value); return *this; }
78 
83  inline CreateRealtimeLogConfig2020_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 CreateRealtimeLogConfig2020_05_31Request& WithFields(const Aws::Vector<Aws::String>& value) { SetFields(value); return *this;}
130 
138  inline CreateRealtimeLogConfig2020_05_31Request& WithFields(Aws::Vector<Aws::String>&& value) { SetFields(std::move(value)); return *this;}
139 
147  inline CreateRealtimeLogConfig2020_05_31Request& AddFields(const Aws::String& value) { m_fieldsHasBeenSet = true; m_fields.push_back(value); return *this; }
148 
156  inline CreateRealtimeLogConfig2020_05_31Request& AddFields(Aws::String&& value) { m_fieldsHasBeenSet = true; m_fields.push_back(std::move(value)); return *this; }
157 
165  inline CreateRealtimeLogConfig2020_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 CreateRealtimeLogConfig2020_05_31Request& WithName(const Aws::String& value) { SetName(value); return *this;}
197 
201  inline CreateRealtimeLogConfig2020_05_31Request& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
202 
206  inline CreateRealtimeLogConfig2020_05_31Request& WithName(const char* value) { SetName(value); return *this;}
207 
208 
215  inline long long GetSamplingRate() const{ return m_samplingRate; }
216 
223  inline bool SamplingRateHasBeenSet() const { return m_samplingRateHasBeenSet; }
224 
231  inline void SetSamplingRate(long long value) { m_samplingRateHasBeenSet = true; m_samplingRate = value; }
232 
239  inline CreateRealtimeLogConfig2020_05_31Request& WithSamplingRate(long long value) { SetSamplingRate(value); return *this;}
240 
241  private:
242 
243  Aws::Vector<EndPoint> m_endPoints;
244  bool m_endPointsHasBeenSet;
245 
246  Aws::Vector<Aws::String> m_fields;
247  bool m_fieldsHasBeenSet;
248 
249  Aws::String m_name;
250  bool m_nameHasBeenSet;
251 
252  long long m_samplingRate;
253  bool m_samplingRateHasBeenSet;
254  };
255 
256 } // namespace Model
257 } // namespace CloudFront
258 } // namespace Aws
Aws::CloudFront::Model::CreateRealtimeLogConfig2020_05_31Request::WithName
CreateRealtimeLogConfig2020_05_31Request & WithName(Aws::String &&value)
Definition: CreateRealtimeLogConfig2020_05_31Request.h:201
Aws::CloudFront::Model::CreateRealtimeLogConfig2020_05_31Request::SetName
void SetName(const char *value)
Definition: CreateRealtimeLogConfig2020_05_31Request.h:191
Aws::CloudFront::Model::CreateRealtimeLogConfig2020_05_31Request
Definition: CreateRealtimeLogConfig2020_05_31Request.h:24
Aws::CloudFront::Model::CreateRealtimeLogConfig2020_05_31Request::GetName
const Aws::String & GetName() const
Definition: CreateRealtimeLogConfig2020_05_31Request.h:171
CloudFrontRequest.h
Aws::CloudFront::Model::CreateRealtimeLogConfig2020_05_31Request::NameHasBeenSet
bool NameHasBeenSet() const
Definition: CreateRealtimeLogConfig2020_05_31Request.h:176
Aws::CloudFront::Model::CreateRealtimeLogConfig2020_05_31Request::WithFields
CreateRealtimeLogConfig2020_05_31Request & WithFields(const Aws::Vector< Aws::String > &value)
Definition: CreateRealtimeLogConfig2020_05_31Request.h:129
EndPoint.h
Aws::CloudFront::Model::CreateRealtimeLogConfig2020_05_31Request::SamplingRateHasBeenSet
bool SamplingRateHasBeenSet() const
Definition: CreateRealtimeLogConfig2020_05_31Request.h:223
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::CloudFront::Model::CreateRealtimeLogConfig2020_05_31Request::GetFields
const Aws::Vector< Aws::String > & GetFields() const
Definition: CreateRealtimeLogConfig2020_05_31Request.h:93
Aws::CloudFront::Model::CreateRealtimeLogConfig2020_05_31Request::GetSamplingRate
long long GetSamplingRate() const
Definition: CreateRealtimeLogConfig2020_05_31Request.h:215
Aws::CloudFront::Model::CreateRealtimeLogConfig2020_05_31Request::AddFields
CreateRealtimeLogConfig2020_05_31Request & AddFields(Aws::String &&value)
Definition: CreateRealtimeLogConfig2020_05_31Request.h:156
Aws::CloudFront::Model::EndPoint
Definition: EndPoint.h:34
Aws::CloudFront::Model::CreateRealtimeLogConfig2020_05_31Request::AddFields
CreateRealtimeLogConfig2020_05_31Request & AddFields(const Aws::String &value)
Definition: CreateRealtimeLogConfig2020_05_31Request.h:147
Aws::CloudFront::Model::CreateRealtimeLogConfig2020_05_31Request::WithEndPoints
CreateRealtimeLogConfig2020_05_31Request & WithEndPoints(Aws::Vector< EndPoint > &&value)
Definition: CreateRealtimeLogConfig2020_05_31Request.h:71
AWSVector.h
Aws::CloudFront::Model::CreateRealtimeLogConfig2020_05_31Request::WithFields
CreateRealtimeLogConfig2020_05_31Request & WithFields(Aws::Vector< Aws::String > &&value)
Definition: CreateRealtimeLogConfig2020_05_31Request.h:138
Aws::CloudFront::Model::CreateRealtimeLogConfig2020_05_31Request::WithEndPoints
CreateRealtimeLogConfig2020_05_31Request & WithEndPoints(const Aws::Vector< EndPoint > &value)
Definition: CreateRealtimeLogConfig2020_05_31Request.h:65
Aws::CloudFront::Model::CreateRealtimeLogConfig2020_05_31Request::SetSamplingRate
void SetSamplingRate(long long value)
Definition: CreateRealtimeLogConfig2020_05_31Request.h:231
Aws::CloudFront::Model::CreateRealtimeLogConfig2020_05_31Request::WithSamplingRate
CreateRealtimeLogConfig2020_05_31Request & WithSamplingRate(long long value)
Definition: CreateRealtimeLogConfig2020_05_31Request.h:239
Aws::CloudFront::Model::CreateRealtimeLogConfig2020_05_31Request::SerializePayload
Aws::String SerializePayload() const override
Aws::CloudFront::Model::CreateRealtimeLogConfig2020_05_31Request::WithName
CreateRealtimeLogConfig2020_05_31Request & WithName(const Aws::String &value)
Definition: CreateRealtimeLogConfig2020_05_31Request.h:196
AWSString.h
Aws::CloudFront::CloudFrontRequest
Definition: CloudFrontRequest.h:17
Aws::CloudFront::Model::CreateRealtimeLogConfig2020_05_31Request::GetEndPoints
const Aws::Vector< EndPoint > & GetEndPoints() const
Definition: CreateRealtimeLogConfig2020_05_31Request.h:41
Aws::CloudFront::Model::CreateRealtimeLogConfig2020_05_31Request::EndPointsHasBeenSet
bool EndPointsHasBeenSet() const
Definition: CreateRealtimeLogConfig2020_05_31Request.h:47
Aws::CloudFront::Model::CreateRealtimeLogConfig2020_05_31Request::CreateRealtimeLogConfig2020_05_31Request
CreateRealtimeLogConfig2020_05_31Request()
Aws::CloudFront::Model::CreateRealtimeLogConfig2020_05_31Request::SetName
void SetName(Aws::String &&value)
Definition: CreateRealtimeLogConfig2020_05_31Request.h:186
AWS_CLOUDFRONT_API
#define AWS_CLOUDFRONT_API
Definition: CloudFront_EXPORTS.h:28
Aws::CloudFront::Model::CreateRealtimeLogConfig2020_05_31Request::AddFields
CreateRealtimeLogConfig2020_05_31Request & AddFields(const char *value)
Definition: CreateRealtimeLogConfig2020_05_31Request.h:165
Aws::CloudFront::Model::CreateRealtimeLogConfig2020_05_31Request::FieldsHasBeenSet
bool FieldsHasBeenSet() const
Definition: CreateRealtimeLogConfig2020_05_31Request.h:102
CloudFront_EXPORTS.h
Aws::CloudFront::Model::CreateRealtimeLogConfig2020_05_31Request::AddEndPoints
CreateRealtimeLogConfig2020_05_31Request & AddEndPoints(const EndPoint &value)
Definition: CreateRealtimeLogConfig2020_05_31Request.h:77
Aws::CloudFront::Model::CreateRealtimeLogConfig2020_05_31Request::AddEndPoints
CreateRealtimeLogConfig2020_05_31Request & AddEndPoints(EndPoint &&value)
Definition: CreateRealtimeLogConfig2020_05_31Request.h:83
Aws
Definition: AccessManagementClient.h:15
Aws::CloudFront::Model::CreateRealtimeLogConfig2020_05_31Request::SetEndPoints
void SetEndPoints(Aws::Vector< EndPoint > &&value)
Definition: CreateRealtimeLogConfig2020_05_31Request.h:59
Aws::CloudFront::Model::CreateRealtimeLogConfig2020_05_31Request::WithName
CreateRealtimeLogConfig2020_05_31Request & WithName(const char *value)
Definition: CreateRealtimeLogConfig2020_05_31Request.h:206
Aws::CloudFront::Model::CreateRealtimeLogConfig2020_05_31Request::SetName
void SetName(const Aws::String &value)
Definition: CreateRealtimeLogConfig2020_05_31Request.h:181
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CloudFront::Model::CreateRealtimeLogConfig2020_05_31Request::SetFields
void SetFields(Aws::Vector< Aws::String > &&value)
Definition: CreateRealtimeLogConfig2020_05_31Request.h:120
Aws::CloudFront::Model::CreateRealtimeLogConfig2020_05_31Request::SetEndPoints
void SetEndPoints(const Aws::Vector< EndPoint > &value)
Definition: CreateRealtimeLogConfig2020_05_31Request.h:53
Aws::CloudFront::Model::CreateRealtimeLogConfig2020_05_31Request::SetFields
void SetFields(const Aws::Vector< Aws::String > &value)
Definition: CreateRealtimeLogConfig2020_05_31Request.h:111
Aws::CloudFront::Model::CreateRealtimeLogConfig2020_05_31Request::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateRealtimeLogConfig2020_05_31Request.h:32