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 ElastiCache
25 {
26 namespace Model
27 {
28 
33  {
34  public:
36  Aws::String SerializePayload() const override;
37 
42  inline const Aws::String& GetSourceIdentifier() const{ return m_sourceIdentifier; }
43 
48  inline void SetSourceIdentifier(const Aws::String& value) { m_sourceIdentifierHasBeenSet = true; m_sourceIdentifier = value; }
49 
54  inline void SetSourceIdentifier(Aws::String&& value) { m_sourceIdentifierHasBeenSet = true; m_sourceIdentifier = value; }
55 
60  inline void SetSourceIdentifier(const char* value) { m_sourceIdentifierHasBeenSet = true; m_sourceIdentifier.assign(value); }
61 
66  inline DescribeEventsRequest& WithSourceIdentifier(const Aws::String& value) { SetSourceIdentifier(value); return *this;}
67 
72  inline DescribeEventsRequest& WithSourceIdentifier(Aws::String&& value) { SetSourceIdentifier(value); return *this;}
73 
78  inline DescribeEventsRequest& WithSourceIdentifier(const char* value) { SetSourceIdentifier(value); return *this;}
79 
86  inline const SourceType& GetSourceType() const{ return m_sourceType; }
87 
94  inline void SetSourceType(const SourceType& value) { m_sourceTypeHasBeenSet = true; m_sourceType = value; }
95 
102  inline void SetSourceType(SourceType&& value) { m_sourceTypeHasBeenSet = true; m_sourceType = value; }
103 
110  inline DescribeEventsRequest& WithSourceType(const SourceType& value) { SetSourceType(value); return *this;}
111 
118  inline DescribeEventsRequest& WithSourceType(SourceType&& value) { SetSourceType(value); return *this;}
119 
124  inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
125 
130  inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
131 
136  inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
137 
142  inline DescribeEventsRequest& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
143 
148  inline DescribeEventsRequest& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(value); return *this;}
149 
154  inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
155 
160  inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
161 
166  inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
167 
172  inline DescribeEventsRequest& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
173 
178  inline DescribeEventsRequest& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(value); return *this;}
179 
183  inline int GetDuration() const{ return m_duration; }
184 
188  inline void SetDuration(int value) { m_durationHasBeenSet = true; m_duration = value; }
189 
193  inline DescribeEventsRequest& WithDuration(int value) { SetDuration(value); return *this;}
194 
201  inline int GetMaxRecords() const{ return m_maxRecords; }
202 
209  inline void SetMaxRecords(int value) { m_maxRecordsHasBeenSet = true; m_maxRecords = value; }
210 
217  inline DescribeEventsRequest& WithMaxRecords(int value) { SetMaxRecords(value); return *this;}
218 
225  inline const Aws::String& GetMarker() const{ return m_marker; }
226 
233  inline void SetMarker(const Aws::String& value) { m_markerHasBeenSet = true; m_marker = value; }
234 
241  inline void SetMarker(Aws::String&& value) { m_markerHasBeenSet = true; m_marker = value; }
242 
249  inline void SetMarker(const char* value) { m_markerHasBeenSet = true; m_marker.assign(value); }
250 
257  inline DescribeEventsRequest& WithMarker(const Aws::String& value) { SetMarker(value); return *this;}
258 
265  inline DescribeEventsRequest& WithMarker(Aws::String&& value) { SetMarker(value); return *this;}
266 
273  inline DescribeEventsRequest& WithMarker(const char* value) { SetMarker(value); return *this;}
274 
275  private:
276  Aws::String m_sourceIdentifier;
277  bool m_sourceIdentifierHasBeenSet;
278  SourceType m_sourceType;
279  bool m_sourceTypeHasBeenSet;
280  Aws::Utils::DateTime m_startTime;
281  bool m_startTimeHasBeenSet;
282  Aws::Utils::DateTime m_endTime;
283  bool m_endTimeHasBeenSet;
284  int m_duration;
285  bool m_durationHasBeenSet;
286  int m_maxRecords;
287  bool m_maxRecordsHasBeenSet;
288  Aws::String m_marker;
289  bool m_markerHasBeenSet;
290  };
291 
292 } // namespace Model
293 } // namespace ElastiCache
294 } // namespace Aws
DescribeEventsRequest & WithSourceIdentifier(const Aws::String &value)
DescribeEventsRequest & WithStartTime(Aws::Utils::DateTime &&value)
DescribeEventsRequest & WithEndTime(Aws::Utils::DateTime &&value)
DescribeEventsRequest & WithMarker(const char *value)
DescribeEventsRequest & WithDuration(int value)
DescribeEventsRequest & WithMarker(const Aws::String &value)
DescribeEventsRequest & WithMaxRecords(int value)
DescribeEventsRequest & WithStartTime(const Aws::Utils::DateTime &value)
DescribeEventsRequest & WithSourceIdentifier(Aws::String &&value)
void SetEndTime(const Aws::Utils::DateTime &value)
DescribeEventsRequest & WithSourceIdentifier(const char *value)
DescribeEventsRequest & WithSourceType(const SourceType &value)
DescribeEventsRequest & WithEndTime(const Aws::Utils::DateTime &value)
DescribeEventsRequest & WithMarker(Aws::String &&value)
void SetStartTime(Aws::Utils::DateTime &&value)
DescribeEventsRequest & WithSourceType(SourceType &&value)
const Aws::Utils::DateTime & GetEndTime() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_ELASTICACHE_API
void SetSourceIdentifier(const Aws::String &value)
void SetStartTime(const Aws::Utils::DateTime &value)
void SetEndTime(Aws::Utils::DateTime &&value)
const Aws::Utils::DateTime & GetStartTime() const
JSON (JavaScript Object Notation).