AWS SDK for C++  0.14.3
AWS SDK for C++
DescribeEventsRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
16 #include <aws/rds/RDS_EXPORTS.h>
17 #include <aws/rds/RDSRequest.h>
22 #include <aws/rds/model/Filter.h>
23 
24 namespace Aws
25 {
26 namespace RDS
27 {
28 namespace Model
29 {
30 
35  {
36  public:
38  Aws::String SerializePayload() const override;
39 
54  inline const Aws::String& GetSourceIdentifier() const{ return m_sourceIdentifier; }
55 
70  inline void SetSourceIdentifier(const Aws::String& value) { m_sourceIdentifierHasBeenSet = true; m_sourceIdentifier = value; }
71 
86  inline void SetSourceIdentifier(Aws::String&& value) { m_sourceIdentifierHasBeenSet = true; m_sourceIdentifier = value; }
87 
102  inline void SetSourceIdentifier(const char* value) { m_sourceIdentifierHasBeenSet = true; m_sourceIdentifier.assign(value); }
103 
118  inline DescribeEventsRequest& WithSourceIdentifier(const Aws::String& value) { SetSourceIdentifier(value); return *this;}
119 
134  inline DescribeEventsRequest& WithSourceIdentifier(Aws::String&& value) { SetSourceIdentifier(value); return *this;}
135 
150  inline DescribeEventsRequest& WithSourceIdentifier(const char* value) { SetSourceIdentifier(value); return *this;}
151 
156  inline const SourceType& GetSourceType() const{ return m_sourceType; }
157 
162  inline void SetSourceType(const SourceType& value) { m_sourceTypeHasBeenSet = true; m_sourceType = value; }
163 
168  inline void SetSourceType(SourceType&& value) { m_sourceTypeHasBeenSet = true; m_sourceType = value; }
169 
174  inline DescribeEventsRequest& WithSourceType(const SourceType& value) { SetSourceType(value); return *this;}
175 
180  inline DescribeEventsRequest& WithSourceType(SourceType&& value) { SetSourceType(value); return *this;}
181 
188  inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
189 
196  inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
197 
204  inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
205 
212  inline DescribeEventsRequest& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
213 
220  inline DescribeEventsRequest& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(value); return *this;}
221 
228  inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
229 
236  inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
237 
244  inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
245 
252  inline DescribeEventsRequest& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
253 
260  inline DescribeEventsRequest& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(value); return *this;}
261 
265  inline int GetDuration() const{ return m_duration; }
266 
270  inline void SetDuration(int value) { m_durationHasBeenSet = true; m_duration = value; }
271 
275  inline DescribeEventsRequest& WithDuration(int value) { SetDuration(value); return *this;}
276 
281  inline const Aws::Vector<Aws::String>& GetEventCategories() const{ return m_eventCategories; }
282 
287  inline void SetEventCategories(const Aws::Vector<Aws::String>& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories = value; }
288 
293  inline void SetEventCategories(Aws::Vector<Aws::String>&& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories = value; }
294 
299  inline DescribeEventsRequest& WithEventCategories(const Aws::Vector<Aws::String>& value) { SetEventCategories(value); return *this;}
300 
305  inline DescribeEventsRequest& WithEventCategories(Aws::Vector<Aws::String>&& value) { SetEventCategories(value); return *this;}
306 
311  inline DescribeEventsRequest& AddEventCategories(const Aws::String& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(value); return *this; }
312 
317  inline DescribeEventsRequest& AddEventCategories(Aws::String&& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(value); return *this; }
318 
323  inline DescribeEventsRequest& AddEventCategories(const char* value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(value); return *this; }
324 
328  inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
329 
333  inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
334 
338  inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = value; }
339 
343  inline DescribeEventsRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
344 
348  inline DescribeEventsRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(value); return *this;}
349 
353  inline DescribeEventsRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
354 
358  inline DescribeEventsRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
359 
366  inline int GetMaxRecords() const{ return m_maxRecords; }
367 
374  inline void SetMaxRecords(int value) { m_maxRecordsHasBeenSet = true; m_maxRecords = value; }
375 
382  inline DescribeEventsRequest& WithMaxRecords(int value) { SetMaxRecords(value); return *this;}
383 
389  inline const Aws::String& GetMarker() const{ return m_marker; }
390 
396  inline void SetMarker(const Aws::String& value) { m_markerHasBeenSet = true; m_marker = value; }
397 
403  inline void SetMarker(Aws::String&& value) { m_markerHasBeenSet = true; m_marker = value; }
404 
410  inline void SetMarker(const char* value) { m_markerHasBeenSet = true; m_marker.assign(value); }
411 
417  inline DescribeEventsRequest& WithMarker(const Aws::String& value) { SetMarker(value); return *this;}
418 
424  inline DescribeEventsRequest& WithMarker(Aws::String&& value) { SetMarker(value); return *this;}
425 
431  inline DescribeEventsRequest& WithMarker(const char* value) { SetMarker(value); return *this;}
432 
433  private:
434  Aws::String m_sourceIdentifier;
435  bool m_sourceIdentifierHasBeenSet;
436  SourceType m_sourceType;
437  bool m_sourceTypeHasBeenSet;
438  Aws::Utils::DateTime m_startTime;
439  bool m_startTimeHasBeenSet;
440  Aws::Utils::DateTime m_endTime;
441  bool m_endTimeHasBeenSet;
442  int m_duration;
443  bool m_durationHasBeenSet;
444  Aws::Vector<Aws::String> m_eventCategories;
445  bool m_eventCategoriesHasBeenSet;
446  Aws::Vector<Filter> m_filters;
447  bool m_filtersHasBeenSet;
448  int m_maxRecords;
449  bool m_maxRecordsHasBeenSet;
450  Aws::String m_marker;
451  bool m_markerHasBeenSet;
452  };
453 
454 } // namespace Model
455 } // namespace RDS
456 } // namespace Aws
DescribeEventsRequest & WithStartTime(const Aws::Utils::DateTime &value)
DescribeEventsRequest & WithEventCategories(Aws::Vector< Aws::String > &&value)
DescribeEventsRequest & WithMaxRecords(int value)
DescribeEventsRequest & WithMarker(const Aws::String &value)
DescribeEventsRequest & AddFilters(const Filter &value)
void SetStartTime(Aws::Utils::DateTime &&value)
void SetSourceType(const SourceType &value)
const Aws::String & GetSourceIdentifier() const
DescribeEventsRequest & WithMarker(Aws::String &&value)
DescribeEventsRequest & WithSourceType(SourceType &&value)
#define AWS_RDS_API
Definition: RDS_EXPORTS.h:37
DescribeEventsRequest & WithFilters(Aws::Vector< Filter > &&value)
DescribeEventsRequest & AddFilters(Filter &&value)
DescribeEventsRequest & WithSourceIdentifier(Aws::String &&value)
const Aws::Vector< Filter > & GetFilters() const
DescribeEventsRequest & WithEventCategories(const Aws::Vector< Aws::String > &value)
void SetSourceIdentifier(const Aws::String &value)
void SetEventCategories(Aws::Vector< Aws::String > &&value)
DescribeEventsRequest & AddEventCategories(const Aws::String &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
DescribeEventsRequest & WithStartTime(Aws::Utils::DateTime &&value)
void SetEndTime(Aws::Utils::DateTime &&value)
DescribeEventsRequest & WithEndTime(Aws::Utils::DateTime &&value)
DescribeEventsRequest & WithSourceIdentifier(const char *value)
void SetMarker(const Aws::String &value)
const Aws::Vector< Aws::String > & GetEventCategories() const
void SetSourceIdentifier(Aws::String &&value)
const Aws::Utils::DateTime & GetEndTime() const
DescribeEventsRequest & WithSourceType(const SourceType &value)
DescribeEventsRequest & WithDuration(int value)
DescribeEventsRequest & AddEventCategories(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetFilters(Aws::Vector< Filter > &&value)
DescribeEventsRequest & WithMarker(const char *value)
DescribeEventsRequest & WithEndTime(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetStartTime() const
void SetFilters(const Aws::Vector< Filter > &value)
void SetEndTime(const Aws::Utils::DateTime &value)
DescribeEventsRequest & AddEventCategories(const char *value)
void SetStartTime(const Aws::Utils::DateTime &value)
DescribeEventsRequest & WithFilters(const Aws::Vector< Filter > &value)
void SetEventCategories(const Aws::Vector< Aws::String > &value)
JSON (JavaScript Object Notation).
DescribeEventsRequest & WithSourceIdentifier(const Aws::String &value)