AWS SDK for C++  1.9.103
AWS SDK for C++
DescribeEventsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Redshift
17 {
18 namespace Model
19 {
20 
27  {
28  public:
30 
31  // Service request name is the Operation name which will send this request out,
32  // each operation should has unique request name, so that we can get operation's name from this request.
33  // Note: this is not true for response, multiple operations may have the same response name,
34  // so we can not get operation's name from response.
35  inline virtual const char* GetServiceRequestName() const override { return "DescribeEvents"; }
36 
37  Aws::String SerializePayload() const override;
38 
39  protected:
40  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
41 
42  public:
43 
57  inline const Aws::String& GetSourceIdentifier() const{ return m_sourceIdentifier; }
58 
72  inline bool SourceIdentifierHasBeenSet() const { return m_sourceIdentifierHasBeenSet; }
73 
87  inline void SetSourceIdentifier(const Aws::String& value) { m_sourceIdentifierHasBeenSet = true; m_sourceIdentifier = value; }
88 
102  inline void SetSourceIdentifier(Aws::String&& value) { m_sourceIdentifierHasBeenSet = true; m_sourceIdentifier = std::move(value); }
103 
117  inline void SetSourceIdentifier(const char* value) { m_sourceIdentifierHasBeenSet = true; m_sourceIdentifier.assign(value); }
118 
132  inline DescribeEventsRequest& WithSourceIdentifier(const Aws::String& value) { SetSourceIdentifier(value); return *this;}
133 
147  inline DescribeEventsRequest& WithSourceIdentifier(Aws::String&& value) { SetSourceIdentifier(std::move(value)); return *this;}
148 
162  inline DescribeEventsRequest& WithSourceIdentifier(const char* value) { SetSourceIdentifier(value); return *this;}
163 
164 
177  inline const SourceType& GetSourceType() const{ return m_sourceType; }
178 
191  inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
192 
205  inline void SetSourceType(const SourceType& value) { m_sourceTypeHasBeenSet = true; m_sourceType = value; }
206 
219  inline void SetSourceType(SourceType&& value) { m_sourceTypeHasBeenSet = true; m_sourceType = std::move(value); }
220 
233  inline DescribeEventsRequest& WithSourceType(const SourceType& value) { SetSourceType(value); return *this;}
234 
247  inline DescribeEventsRequest& WithSourceType(SourceType&& value) { SetSourceType(std::move(value)); return *this;}
248 
249 
256  inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
257 
264  inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
265 
272  inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
273 
280  inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
281 
288  inline DescribeEventsRequest& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
289 
296  inline DescribeEventsRequest& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
297 
298 
305  inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
306 
313  inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
314 
321  inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
322 
329  inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
330 
337  inline DescribeEventsRequest& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
338 
345  inline DescribeEventsRequest& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
346 
347 
354  inline int GetDuration() const{ return m_duration; }
355 
362  inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
363 
370  inline void SetDuration(int value) { m_durationHasBeenSet = true; m_duration = value; }
371 
378  inline DescribeEventsRequest& WithDuration(int value) { SetDuration(value); return *this;}
379 
380 
389  inline int GetMaxRecords() const{ return m_maxRecords; }
390 
399  inline bool MaxRecordsHasBeenSet() const { return m_maxRecordsHasBeenSet; }
400 
409  inline void SetMaxRecords(int value) { m_maxRecordsHasBeenSet = true; m_maxRecords = value; }
410 
419  inline DescribeEventsRequest& WithMaxRecords(int value) { SetMaxRecords(value); return *this;}
420 
421 
430  inline const Aws::String& GetMarker() const{ return m_marker; }
431 
440  inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; }
441 
450  inline void SetMarker(const Aws::String& value) { m_markerHasBeenSet = true; m_marker = value; }
451 
460  inline void SetMarker(Aws::String&& value) { m_markerHasBeenSet = true; m_marker = std::move(value); }
461 
470  inline void SetMarker(const char* value) { m_markerHasBeenSet = true; m_marker.assign(value); }
471 
480  inline DescribeEventsRequest& WithMarker(const Aws::String& value) { SetMarker(value); return *this;}
481 
490  inline DescribeEventsRequest& WithMarker(Aws::String&& value) { SetMarker(std::move(value)); return *this;}
491 
500  inline DescribeEventsRequest& WithMarker(const char* value) { SetMarker(value); return *this;}
501 
502  private:
503 
504  Aws::String m_sourceIdentifier;
505  bool m_sourceIdentifierHasBeenSet;
506 
507  SourceType m_sourceType;
508  bool m_sourceTypeHasBeenSet;
509 
510  Aws::Utils::DateTime m_startTime;
511  bool m_startTimeHasBeenSet;
512 
513  Aws::Utils::DateTime m_endTime;
514  bool m_endTimeHasBeenSet;
515 
516  int m_duration;
517  bool m_durationHasBeenSet;
518 
519  int m_maxRecords;
520  bool m_maxRecordsHasBeenSet;
521 
522  Aws::String m_marker;
523  bool m_markerHasBeenSet;
524  };
525 
526 } // namespace Model
527 } // namespace Redshift
528 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::Redshift::Model::DescribeEventsRequest
Definition: DescribeEventsRequest.h:27
Aws::Http::URI
Definition: URI.h:32
Aws::Redshift::Model::DescribeEventsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeEventsRequest.h:35
Aws::Redshift::Model::SourceType
SourceType
Definition: SourceType.h:17
Aws::Redshift::Model::DescribeEventsRequest::SetEndTime
void SetEndTime(const Aws::Utils::DateTime &value)
Definition: DescribeEventsRequest.h:321
Aws::Redshift::Model::DescribeEventsRequest::WithStartTime
DescribeEventsRequest & WithStartTime(Aws::Utils::DateTime &&value)
Definition: DescribeEventsRequest.h:296
Aws::Redshift::Model::DescribeEventsRequest::GetDuration
int GetDuration() const
Definition: DescribeEventsRequest.h:354
Aws::Redshift::Model::DescribeEventsRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::Redshift::Model::DescribeEventsRequest::SetSourceType
void SetSourceType(SourceType &&value)
Definition: DescribeEventsRequest.h:219
Aws::Redshift::Model::DescribeEventsRequest::WithSourceIdentifier
DescribeEventsRequest & WithSourceIdentifier(const Aws::String &value)
Definition: DescribeEventsRequest.h:132
Aws::Redshift::Model::DescribeEventsRequest::WithMarker
DescribeEventsRequest & WithMarker(const Aws::String &value)
Definition: DescribeEventsRequest.h:480
Aws::Redshift::Model::DescribeEventsRequest::GetStartTime
const Aws::Utils::DateTime & GetStartTime() const
Definition: DescribeEventsRequest.h:256
DateTime.h
Aws::Redshift::Model::DescribeEventsRequest::WithSourceIdentifier
DescribeEventsRequest & WithSourceIdentifier(const char *value)
Definition: DescribeEventsRequest.h:162
Aws::Redshift::Model::DescribeEventsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Redshift::Model::DescribeEventsRequest::GetSourceType
const SourceType & GetSourceType() const
Definition: DescribeEventsRequest.h:177
Aws::Redshift::Model::DescribeEventsRequest::WithEndTime
DescribeEventsRequest & WithEndTime(const Aws::Utils::DateTime &value)
Definition: DescribeEventsRequest.h:337
SourceType.h
RedshiftRequest.h
Aws::Redshift::Model::DescribeEventsRequest::WithMarker
DescribeEventsRequest & WithMarker(const char *value)
Definition: DescribeEventsRequest.h:500
Aws::Redshift::Model::DescribeEventsRequest::SetStartTime
void SetStartTime(const Aws::Utils::DateTime &value)
Definition: DescribeEventsRequest.h:272
Aws::Redshift::Model::DescribeEventsRequest::WithStartTime
DescribeEventsRequest & WithStartTime(const Aws::Utils::DateTime &value)
Definition: DescribeEventsRequest.h:288
Aws::Redshift::Model::DescribeEventsRequest::SetMarker
void SetMarker(const char *value)
Definition: DescribeEventsRequest.h:470
Aws::Redshift::Model::DescribeEventsRequest::DurationHasBeenSet
bool DurationHasBeenSet() const
Definition: DescribeEventsRequest.h:362
Aws::Redshift::Model::DescribeEventsRequest::SetSourceIdentifier
void SetSourceIdentifier(Aws::String &&value)
Definition: DescribeEventsRequest.h:102
Aws::Redshift::Model::DescribeEventsRequest::GetSourceIdentifier
const Aws::String & GetSourceIdentifier() const
Definition: DescribeEventsRequest.h:57
Aws::Redshift::Model::DescribeEventsRequest::SetEndTime
void SetEndTime(Aws::Utils::DateTime &&value)
Definition: DescribeEventsRequest.h:329
Aws::Redshift::Model::DescribeEventsRequest::GetEndTime
const Aws::Utils::DateTime & GetEndTime() const
Definition: DescribeEventsRequest.h:305
Aws::Redshift::Model::DescribeEventsRequest::WithSourceType
DescribeEventsRequest & WithSourceType(SourceType &&value)
Definition: DescribeEventsRequest.h:247
Aws::Redshift::Model::DescribeEventsRequest::SetStartTime
void SetStartTime(Aws::Utils::DateTime &&value)
Definition: DescribeEventsRequest.h:280
AWS_REDSHIFT_API
#define AWS_REDSHIFT_API
Definition: Redshift_EXPORTS.h:28
Aws::Redshift::Model::DescribeEventsRequest::MarkerHasBeenSet
bool MarkerHasBeenSet() const
Definition: DescribeEventsRequest.h:440
Aws::Redshift::RedshiftRequest
Definition: RedshiftRequest.h:17
Aws::Redshift::Model::DescribeEventsRequest::StartTimeHasBeenSet
bool StartTimeHasBeenSet() const
Definition: DescribeEventsRequest.h:264
AWSString.h
Aws::Redshift::Model::DescribeEventsRequest::SetSourceIdentifier
void SetSourceIdentifier(const char *value)
Definition: DescribeEventsRequest.h:117
Aws::Redshift::Model::DescribeEventsRequest::WithSourceType
DescribeEventsRequest & WithSourceType(const SourceType &value)
Definition: DescribeEventsRequest.h:233
Aws::Redshift::Model::DescribeEventsRequest::SetSourceIdentifier
void SetSourceIdentifier(const Aws::String &value)
Definition: DescribeEventsRequest.h:87
Aws::Redshift::Model::DescribeEventsRequest::EndTimeHasBeenSet
bool EndTimeHasBeenSet() const
Definition: DescribeEventsRequest.h:313
Aws::Redshift::Model::DescribeEventsRequest::WithMaxRecords
DescribeEventsRequest & WithMaxRecords(int value)
Definition: DescribeEventsRequest.h:419
Aws::Redshift::Model::DescribeEventsRequest::DescribeEventsRequest
DescribeEventsRequest()
Aws::Redshift::Model::DescribeEventsRequest::WithSourceIdentifier
DescribeEventsRequest & WithSourceIdentifier(Aws::String &&value)
Definition: DescribeEventsRequest.h:147
Aws::Redshift::Model::DescribeEventsRequest::SourceIdentifierHasBeenSet
bool SourceIdentifierHasBeenSet() const
Definition: DescribeEventsRequest.h:72
Aws::Redshift::Model::DescribeEventsRequest::SetDuration
void SetDuration(int value)
Definition: DescribeEventsRequest.h:370
Aws::Redshift::Model::DescribeEventsRequest::MaxRecordsHasBeenSet
bool MaxRecordsHasBeenSet() const
Definition: DescribeEventsRequest.h:399
Aws
Definition: AccessManagementClient.h:15
Aws::Redshift::Model::DescribeEventsRequest::WithMarker
DescribeEventsRequest & WithMarker(Aws::String &&value)
Definition: DescribeEventsRequest.h:490
Aws::Redshift::Model::DescribeEventsRequest::SetMarker
void SetMarker(Aws::String &&value)
Definition: DescribeEventsRequest.h:460
Redshift_EXPORTS.h
Aws::Redshift::Model::DescribeEventsRequest::SetSourceType
void SetSourceType(const SourceType &value)
Definition: DescribeEventsRequest.h:205
Aws::Redshift::Model::DescribeEventsRequest::WithEndTime
DescribeEventsRequest & WithEndTime(Aws::Utils::DateTime &&value)
Definition: DescribeEventsRequest.h:345
Aws::Redshift::Model::DescribeEventsRequest::SourceTypeHasBeenSet
bool SourceTypeHasBeenSet() const
Definition: DescribeEventsRequest.h:191
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Redshift::Model::DescribeEventsRequest::WithDuration
DescribeEventsRequest & WithDuration(int value)
Definition: DescribeEventsRequest.h:378
Aws::Redshift::Model::DescribeEventsRequest::GetMaxRecords
int GetMaxRecords() const
Definition: DescribeEventsRequest.h:389
Aws::Redshift::Model::DescribeEventsRequest::SetMaxRecords
void SetMaxRecords(int value)
Definition: DescribeEventsRequest.h:409
Aws::Redshift::Model::DescribeEventsRequest::GetMarker
const Aws::String & GetMarker() const
Definition: DescribeEventsRequest.h:430
Aws::Redshift::Model::DescribeEventsRequest::SetMarker
void SetMarker(const Aws::String &value)
Definition: DescribeEventsRequest.h:450