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
21 
22 namespace Aws
23 {
24 namespace Redshift
25 {
26 namespace Model
27 {
28 
33  {
34  public:
36  Aws::String SerializePayload() const override;
37 
50  inline const Aws::String& GetSourceIdentifier() const{ return m_sourceIdentifier; }
51 
64  inline void SetSourceIdentifier(const Aws::String& value) { m_sourceIdentifierHasBeenSet = true; m_sourceIdentifier = value; }
65 
78  inline void SetSourceIdentifier(Aws::String&& value) { m_sourceIdentifierHasBeenSet = true; m_sourceIdentifier = value; }
79 
92  inline void SetSourceIdentifier(const char* value) { m_sourceIdentifierHasBeenSet = true; m_sourceIdentifier.assign(value); }
93 
106  inline DescribeEventsRequest& WithSourceIdentifier(const Aws::String& value) { SetSourceIdentifier(value); return *this;}
107 
120  inline DescribeEventsRequest& WithSourceIdentifier(Aws::String&& value) { SetSourceIdentifier(value); return *this;}
121 
134  inline DescribeEventsRequest& WithSourceIdentifier(const char* value) { SetSourceIdentifier(value); return *this;}
135 
147  inline const SourceType& GetSourceType() const{ return m_sourceType; }
148 
160  inline void SetSourceType(const SourceType& value) { m_sourceTypeHasBeenSet = true; m_sourceType = value; }
161 
173  inline void SetSourceType(SourceType&& value) { m_sourceTypeHasBeenSet = true; m_sourceType = value; }
174 
186  inline DescribeEventsRequest& WithSourceType(const SourceType& value) { SetSourceType(value); return *this;}
187 
199  inline DescribeEventsRequest& WithSourceType(SourceType&& value) { SetSourceType(value); return *this;}
200 
207  inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
208 
215  inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
216 
223  inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
224 
231  inline DescribeEventsRequest& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
232 
239  inline DescribeEventsRequest& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(value); return *this;}
240 
247  inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
248 
255  inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
256 
263  inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
264 
271  inline DescribeEventsRequest& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
272 
279  inline DescribeEventsRequest& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(value); return *this;}
280 
287  inline int GetDuration() const{ return m_duration; }
288 
295  inline void SetDuration(int value) { m_durationHasBeenSet = true; m_duration = value; }
296 
303  inline DescribeEventsRequest& WithDuration(int value) { SetDuration(value); return *this;}
304 
313  inline int GetMaxRecords() const{ return m_maxRecords; }
314 
323  inline void SetMaxRecords(int value) { m_maxRecordsHasBeenSet = true; m_maxRecords = value; }
324 
333  inline DescribeEventsRequest& WithMaxRecords(int value) { SetMaxRecords(value); return *this;}
334 
343  inline const Aws::String& GetMarker() const{ return m_marker; }
344 
353  inline void SetMarker(const Aws::String& value) { m_markerHasBeenSet = true; m_marker = value; }
354 
363  inline void SetMarker(Aws::String&& value) { m_markerHasBeenSet = true; m_marker = value; }
364 
373  inline void SetMarker(const char* value) { m_markerHasBeenSet = true; m_marker.assign(value); }
374 
383  inline DescribeEventsRequest& WithMarker(const Aws::String& value) { SetMarker(value); return *this;}
384 
393  inline DescribeEventsRequest& WithMarker(Aws::String&& value) { SetMarker(value); return *this;}
394 
403  inline DescribeEventsRequest& WithMarker(const char* value) { SetMarker(value); return *this;}
404 
405  private:
406  Aws::String m_sourceIdentifier;
407  bool m_sourceIdentifierHasBeenSet;
408  SourceType m_sourceType;
409  bool m_sourceTypeHasBeenSet;
410  Aws::Utils::DateTime m_startTime;
411  bool m_startTimeHasBeenSet;
412  Aws::Utils::DateTime m_endTime;
413  bool m_endTimeHasBeenSet;
414  int m_duration;
415  bool m_durationHasBeenSet;
416  int m_maxRecords;
417  bool m_maxRecordsHasBeenSet;
418  Aws::String m_marker;
419  bool m_markerHasBeenSet;
420  };
421 
422 } // namespace Model
423 } // namespace Redshift
424 } // namespace Aws
DescribeEventsRequest & WithEndTime(const Aws::Utils::DateTime &value)
DescribeEventsRequest & WithSourceIdentifier(const char *value)
const Aws::Utils::DateTime & GetEndTime() const
DescribeEventsRequest & WithStartTime(Aws::Utils::DateTime &&value)
DescribeEventsRequest & WithSourceIdentifier(Aws::String &&value)
DescribeEventsRequest & WithDuration(int value)
DescribeEventsRequest & WithMarker(const Aws::String &value)
void SetEndTime(const Aws::Utils::DateTime &value)
void SetStartTime(const Aws::Utils::DateTime &value)
#define AWS_REDSHIFT_API
DescribeEventsRequest & WithSourceType(const SourceType &value)
void SetEndTime(Aws::Utils::DateTime &&value)
DescribeEventsRequest & WithEndTime(Aws::Utils::DateTime &&value)
void SetSourceIdentifier(const Aws::String &value)
DescribeEventsRequest & WithSourceIdentifier(const Aws::String &value)
DescribeEventsRequest & WithStartTime(const Aws::Utils::DateTime &value)
void SetStartTime(Aws::Utils::DateTime &&value)
DescribeEventsRequest & WithMarker(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
DescribeEventsRequest & WithMarker(const char *value)
const Aws::Utils::DateTime & GetStartTime() const
const Aws::String & GetSourceIdentifier() const
DescribeEventsRequest & WithSourceType(SourceType &&value)
DescribeEventsRequest & WithMaxRecords(int value)
JSON (JavaScript Object Notation).