AWS SDK for C++  1.9.108
AWS SDK for C++
DescribeEventsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/rds/RDS_EXPORTS.h>
8 #include <aws/rds/RDSRequest.h>
13 #include <aws/rds/model/Filter.h>
14 #include <utility>
15 
16 namespace Aws
17 {
18 namespace RDS
19 {
20 namespace Model
21 {
22 
29  {
30  public:
32 
33  // Service request name is the Operation name which will send this request out,
34  // each operation should has unique request name, so that we can get operation's name from this request.
35  // Note: this is not true for response, multiple operations may have the same response name,
36  // so we can not get operation's name from response.
37  inline virtual const char* GetServiceRequestName() const override { return "DescribeEvents"; }
38 
39  Aws::String SerializePayload() const override;
40 
41  protected:
42  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
43 
44  public:
45 
63  inline const Aws::String& GetSourceIdentifier() const{ return m_sourceIdentifier; }
64 
82  inline bool SourceIdentifierHasBeenSet() const { return m_sourceIdentifierHasBeenSet; }
83 
101  inline void SetSourceIdentifier(const Aws::String& value) { m_sourceIdentifierHasBeenSet = true; m_sourceIdentifier = value; }
102 
120  inline void SetSourceIdentifier(Aws::String&& value) { m_sourceIdentifierHasBeenSet = true; m_sourceIdentifier = std::move(value); }
121 
139  inline void SetSourceIdentifier(const char* value) { m_sourceIdentifierHasBeenSet = true; m_sourceIdentifier.assign(value); }
140 
158  inline DescribeEventsRequest& WithSourceIdentifier(const Aws::String& value) { SetSourceIdentifier(value); return *this;}
159 
177  inline DescribeEventsRequest& WithSourceIdentifier(Aws::String&& value) { SetSourceIdentifier(std::move(value)); return *this;}
178 
196  inline DescribeEventsRequest& WithSourceIdentifier(const char* value) { SetSourceIdentifier(value); return *this;}
197 
198 
203  inline const SourceType& GetSourceType() const{ return m_sourceType; }
204 
209  inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
210 
215  inline void SetSourceType(const SourceType& value) { m_sourceTypeHasBeenSet = true; m_sourceType = value; }
216 
221  inline void SetSourceType(SourceType&& value) { m_sourceTypeHasBeenSet = true; m_sourceType = std::move(value); }
222 
227  inline DescribeEventsRequest& WithSourceType(const SourceType& value) { SetSourceType(value); return *this;}
228 
233  inline DescribeEventsRequest& WithSourceType(SourceType&& value) { SetSourceType(std::move(value)); return *this;}
234 
235 
242  inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
243 
250  inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
251 
258  inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
259 
266  inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
267 
274  inline DescribeEventsRequest& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
275 
282  inline DescribeEventsRequest& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
283 
284 
291  inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
292 
299  inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
300 
307  inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
308 
315  inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
316 
323  inline DescribeEventsRequest& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
324 
331  inline DescribeEventsRequest& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
332 
333 
337  inline int GetDuration() const{ return m_duration; }
338 
342  inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
343 
347  inline void SetDuration(int value) { m_durationHasBeenSet = true; m_duration = value; }
348 
352  inline DescribeEventsRequest& WithDuration(int value) { SetDuration(value); return *this;}
353 
354 
359  inline const Aws::Vector<Aws::String>& GetEventCategories() const{ return m_eventCategories; }
360 
365  inline bool EventCategoriesHasBeenSet() const { return m_eventCategoriesHasBeenSet; }
366 
371  inline void SetEventCategories(const Aws::Vector<Aws::String>& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories = value; }
372 
377  inline void SetEventCategories(Aws::Vector<Aws::String>&& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories = std::move(value); }
378 
383  inline DescribeEventsRequest& WithEventCategories(const Aws::Vector<Aws::String>& value) { SetEventCategories(value); return *this;}
384 
389  inline DescribeEventsRequest& WithEventCategories(Aws::Vector<Aws::String>&& value) { SetEventCategories(std::move(value)); return *this;}
390 
395  inline DescribeEventsRequest& AddEventCategories(const Aws::String& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(value); return *this; }
396 
401  inline DescribeEventsRequest& AddEventCategories(Aws::String&& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(std::move(value)); return *this; }
402 
407  inline DescribeEventsRequest& AddEventCategories(const char* value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(value); return *this; }
408 
409 
413  inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
414 
418  inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
419 
423  inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
424 
428  inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
429 
433  inline DescribeEventsRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
434 
438  inline DescribeEventsRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
439 
443  inline DescribeEventsRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
444 
448  inline DescribeEventsRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
449 
450 
458  inline int GetMaxRecords() const{ return m_maxRecords; }
459 
467  inline bool MaxRecordsHasBeenSet() const { return m_maxRecordsHasBeenSet; }
468 
476  inline void SetMaxRecords(int value) { m_maxRecordsHasBeenSet = true; m_maxRecords = value; }
477 
485  inline DescribeEventsRequest& WithMaxRecords(int value) { SetMaxRecords(value); return *this;}
486 
487 
493  inline const Aws::String& GetMarker() const{ return m_marker; }
494 
500  inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; }
501 
507  inline void SetMarker(const Aws::String& value) { m_markerHasBeenSet = true; m_marker = value; }
508 
514  inline void SetMarker(Aws::String&& value) { m_markerHasBeenSet = true; m_marker = std::move(value); }
515 
521  inline void SetMarker(const char* value) { m_markerHasBeenSet = true; m_marker.assign(value); }
522 
528  inline DescribeEventsRequest& WithMarker(const Aws::String& value) { SetMarker(value); return *this;}
529 
535  inline DescribeEventsRequest& WithMarker(Aws::String&& value) { SetMarker(std::move(value)); return *this;}
536 
542  inline DescribeEventsRequest& WithMarker(const char* value) { SetMarker(value); return *this;}
543 
544  private:
545 
546  Aws::String m_sourceIdentifier;
547  bool m_sourceIdentifierHasBeenSet;
548 
549  SourceType m_sourceType;
550  bool m_sourceTypeHasBeenSet;
551 
552  Aws::Utils::DateTime m_startTime;
553  bool m_startTimeHasBeenSet;
554 
555  Aws::Utils::DateTime m_endTime;
556  bool m_endTimeHasBeenSet;
557 
558  int m_duration;
559  bool m_durationHasBeenSet;
560 
561  Aws::Vector<Aws::String> m_eventCategories;
562  bool m_eventCategoriesHasBeenSet;
563 
564  Aws::Vector<Filter> m_filters;
565  bool m_filtersHasBeenSet;
566 
567  int m_maxRecords;
568  bool m_maxRecordsHasBeenSet;
569 
570  Aws::String m_marker;
571  bool m_markerHasBeenSet;
572  };
573 
574 } // namespace Model
575 } // namespace RDS
576 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::RDS::Model::DescribeEventsRequest::GetFilters
const Aws::Vector< Filter > & GetFilters() const
Definition: DescribeEventsRequest.h:413
Aws::RDS::Model::DescribeEventsRequest::WithEventCategories
DescribeEventsRequest & WithEventCategories(Aws::Vector< Aws::String > &&value)
Definition: DescribeEventsRequest.h:389
Aws::RDS::Model::DescribeEventsRequest::GetDuration
int GetDuration() const
Definition: DescribeEventsRequest.h:337
Aws::RDS::Model::DescribeEventsRequest::SetMarker
void SetMarker(const Aws::String &value)
Definition: DescribeEventsRequest.h:507
Aws::Http::URI
Definition: URI.h:32
Aws::RDS::Model::DescribeEventsRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::RDS::Model::DescribeEventsRequest::SetEndTime
void SetEndTime(Aws::Utils::DateTime &&value)
Definition: DescribeEventsRequest.h:315
Aws::RDS::Model::DescribeEventsRequest::SetSourceIdentifier
void SetSourceIdentifier(const char *value)
Definition: DescribeEventsRequest.h:139
Aws::RDS::Model::DescribeEventsRequest::AddFilters
DescribeEventsRequest & AddFilters(Filter &&value)
Definition: DescribeEventsRequest.h:448
Aws::RDS::Model::DescribeEventsRequest::WithStartTime
DescribeEventsRequest & WithStartTime(Aws::Utils::DateTime &&value)
Definition: DescribeEventsRequest.h:282
Aws::RDS::Model::DescribeEventsRequest::SetSourceIdentifier
void SetSourceIdentifier(Aws::String &&value)
Definition: DescribeEventsRequest.h:120
Aws::RDS::Model::DescribeEventsRequest::AddEventCategories
DescribeEventsRequest & AddEventCategories(Aws::String &&value)
Definition: DescribeEventsRequest.h:401
Aws::RDS::Model::DescribeEventsRequest::GetSourceType
const SourceType & GetSourceType() const
Definition: DescribeEventsRequest.h:203
Aws::ApplicationInsights::Model::CloudWatchEventSource::NOT_SET
@ NOT_SET
DateTime.h
Aws::RDS::Model::DescribeEventsRequest::WithSourceIdentifier
DescribeEventsRequest & WithSourceIdentifier(const char *value)
Definition: DescribeEventsRequest.h:196
Aws::RDS::Model::DescribeEventsRequest::SetEventCategories
void SetEventCategories(Aws::Vector< Aws::String > &&value)
Definition: DescribeEventsRequest.h:377
Aws::RDS::Model::DescribeEventsRequest::WithStartTime
DescribeEventsRequest & WithStartTime(const Aws::Utils::DateTime &value)
Definition: DescribeEventsRequest.h:274
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::RDS::Model::DescribeEventsRequest::WithFilters
DescribeEventsRequest & WithFilters(const Aws::Vector< Filter > &value)
Definition: DescribeEventsRequest.h:433
Aws::RDS::Model::DescribeEventsRequest::DurationHasBeenSet
bool DurationHasBeenSet() const
Definition: DescribeEventsRequest.h:342
Aws::RDS::Model::DescribeEventsRequest::WithFilters
DescribeEventsRequest & WithFilters(Aws::Vector< Filter > &&value)
Definition: DescribeEventsRequest.h:438
Aws::RDS::Model::DescribeEventsRequest::SetStartTime
void SetStartTime(Aws::Utils::DateTime &&value)
Definition: DescribeEventsRequest.h:266
AWSVector.h
Aws::RDS::Model::DescribeEventsRequest::WithMarker
DescribeEventsRequest & WithMarker(const char *value)
Definition: DescribeEventsRequest.h:542
Aws::RDS::Model::DescribeEventsRequest::WithDuration
DescribeEventsRequest & WithDuration(int value)
Definition: DescribeEventsRequest.h:352
Aws::RDS::Model::DescribeEventsRequest::WithEventCategories
DescribeEventsRequest & WithEventCategories(const Aws::Vector< Aws::String > &value)
Definition: DescribeEventsRequest.h:383
Aws::RDS::Model::DescribeEventsRequest::WithSourceType
DescribeEventsRequest & WithSourceType(const SourceType &value)
Definition: DescribeEventsRequest.h:227
Aws::RDS::Model::DescribeEventsRequest::SetSourceIdentifier
void SetSourceIdentifier(const Aws::String &value)
Definition: DescribeEventsRequest.h:101
Aws::RDS::Model::DescribeEventsRequest::SetMarker
void SetMarker(Aws::String &&value)
Definition: DescribeEventsRequest.h:514
RDS_EXPORTS.h
Aws::RDS::Model::DescribeEventsRequest::WithMarker
DescribeEventsRequest & WithMarker(const Aws::String &value)
Definition: DescribeEventsRequest.h:528
Aws::RDS::Model::DescribeEventsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeEventsRequest.h:37
Aws::RDS::Model::DescribeEventsRequest::EndTimeHasBeenSet
bool EndTimeHasBeenSet() const
Definition: DescribeEventsRequest.h:299
Aws::RDS::Model::DescribeEventsRequest::FiltersHasBeenSet
bool FiltersHasBeenSet() const
Definition: DescribeEventsRequest.h:418
Aws::RDS::Model::Filter
Definition: Filter.h:43
Aws::RDS::Model::DescribeEventsRequest
Definition: DescribeEventsRequest.h:29
Aws::RDS::Model::DescribeEventsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::RDS::Model::DescribeEventsRequest::GetMarker
const Aws::String & GetMarker() const
Definition: DescribeEventsRequest.h:493
Aws::RDS::Model::DescribeEventsRequest::MarkerHasBeenSet
bool MarkerHasBeenSet() const
Definition: DescribeEventsRequest.h:500
Aws::RDS::Model::DescribeEventsRequest::AddEventCategories
DescribeEventsRequest & AddEventCategories(const Aws::String &value)
Definition: DescribeEventsRequest.h:395
Aws::RDS::Model::DescribeEventsRequest::WithSourceType
DescribeEventsRequest & WithSourceType(SourceType &&value)
Definition: DescribeEventsRequest.h:233
Aws::RDS::Model::DescribeEventsRequest::DescribeEventsRequest
DescribeEventsRequest()
Aws::RDS::Model::DescribeEventsRequest::SetDuration
void SetDuration(int value)
Definition: DescribeEventsRequest.h:347
Aws::RDS::Model::DescribeEventsRequest::StartTimeHasBeenSet
bool StartTimeHasBeenSet() const
Definition: DescribeEventsRequest.h:250
Aws::RDS::Model::DescribeEventsRequest::SetSourceType
void SetSourceType(const SourceType &value)
Definition: DescribeEventsRequest.h:215
SourceType.h
AWSString.h
Aws::RDS::Model::DescribeEventsRequest::SetEndTime
void SetEndTime(const Aws::Utils::DateTime &value)
Definition: DescribeEventsRequest.h:307
Filter.h
Aws::RDS::Model::DescribeEventsRequest::WithEndTime
DescribeEventsRequest & WithEndTime(Aws::Utils::DateTime &&value)
Definition: DescribeEventsRequest.h:331
Aws::RDS::Model::DescribeEventsRequest::GetEndTime
const Aws::Utils::DateTime & GetEndTime() const
Definition: DescribeEventsRequest.h:291
Aws::RDS::Model::DescribeEventsRequest::GetMaxRecords
int GetMaxRecords() const
Definition: DescribeEventsRequest.h:458
Aws::RDS::Model::DescribeEventsRequest::GetStartTime
const Aws::Utils::DateTime & GetStartTime() const
Definition: DescribeEventsRequest.h:242
Aws::RDS::Model::DescribeEventsRequest::SetMarker
void SetMarker(const char *value)
Definition: DescribeEventsRequest.h:521
Aws::RDS::Model::DescribeEventsRequest::GetSourceIdentifier
const Aws::String & GetSourceIdentifier() const
Definition: DescribeEventsRequest.h:63
AWS_RDS_API
#define AWS_RDS_API
Definition: RDS_EXPORTS.h:28
Aws::RDS::Model::DescribeEventsRequest::AddEventCategories
DescribeEventsRequest & AddEventCategories(const char *value)
Definition: DescribeEventsRequest.h:407
Aws::RDS::Model::DescribeEventsRequest::SourceIdentifierHasBeenSet
bool SourceIdentifierHasBeenSet() const
Definition: DescribeEventsRequest.h:82
Aws::RDS::Model::DescribeEventsRequest::MaxRecordsHasBeenSet
bool MaxRecordsHasBeenSet() const
Definition: DescribeEventsRequest.h:467
Aws::RDS::Model::DescribeEventsRequest::SetEventCategories
void SetEventCategories(const Aws::Vector< Aws::String > &value)
Definition: DescribeEventsRequest.h:371
Aws
Definition: AccessManagementClient.h:15
Aws::RDS::Model::DescribeEventsRequest::AddFilters
DescribeEventsRequest & AddFilters(const Filter &value)
Definition: DescribeEventsRequest.h:443
Aws::RDS::Model::DescribeEventsRequest::EventCategoriesHasBeenSet
bool EventCategoriesHasBeenSet() const
Definition: DescribeEventsRequest.h:365
Aws::RDS::Model::DescribeEventsRequest::SetMaxRecords
void SetMaxRecords(int value)
Definition: DescribeEventsRequest.h:476
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::RDS::Model::DescribeEventsRequest::SourceTypeHasBeenSet
bool SourceTypeHasBeenSet() const
Definition: DescribeEventsRequest.h:209
Aws::RDS::Model::DescribeEventsRequest::GetEventCategories
const Aws::Vector< Aws::String > & GetEventCategories() const
Definition: DescribeEventsRequest.h:359
Aws::RDS::Model::DescribeEventsRequest::SetFilters
void SetFilters(Aws::Vector< Filter > &&value)
Definition: DescribeEventsRequest.h:428
RDSRequest.h
Aws::RDS::Model::DescribeEventsRequest::WithEndTime
DescribeEventsRequest & WithEndTime(const Aws::Utils::DateTime &value)
Definition: DescribeEventsRequest.h:323
Aws::RDS::Model::DescribeEventsRequest::SetSourceType
void SetSourceType(SourceType &&value)
Definition: DescribeEventsRequest.h:221
Aws::RDS::Model::DescribeEventsRequest::SetStartTime
void SetStartTime(const Aws::Utils::DateTime &value)
Definition: DescribeEventsRequest.h:258
Aws::RDS::Model::SourceType
SourceType
Definition: SourceType.h:17
Aws::RDS::Model::DescribeEventsRequest::SetFilters
void SetFilters(const Aws::Vector< Filter > &value)
Definition: DescribeEventsRequest.h:423
Aws::RDS::RDSRequest
Definition: RDSRequest.h:17
Aws::RDS::Model::DescribeEventsRequest::WithSourceIdentifier
DescribeEventsRequest & WithSourceIdentifier(Aws::String &&value)
Definition: DescribeEventsRequest.h:177
Aws::RDS::Model::DescribeEventsRequest::WithMaxRecords
DescribeEventsRequest & WithMaxRecords(int value)
Definition: DescribeEventsRequest.h:485
Aws::RDS::Model::DescribeEventsRequest::WithSourceIdentifier
DescribeEventsRequest & WithSourceIdentifier(const Aws::String &value)
Definition: DescribeEventsRequest.h:158
Aws::RDS::Model::DescribeEventsRequest::WithMarker
DescribeEventsRequest & WithMarker(Aws::String &&value)
Definition: DescribeEventsRequest.h:535