AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DescribeEventsRequest.h
1
6#pragma once
7#include <aws/elasticache/ElastiCache_EXPORTS.h>
8#include <aws/elasticache/ElastiCacheRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/elasticache/model/SourceType.h>
11#include <aws/core/utils/DateTime.h>
12#include <utility>
13
14namespace Aws
15{
16namespace ElastiCache
17{
18namespace Model
19{
20
28 {
29 public:
30 AWS_ELASTICACHE_API DescribeEventsRequest();
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "DescribeEvents"; }
37
38 AWS_ELASTICACHE_API Aws::String SerializePayload() const override;
39
40 protected:
41 AWS_ELASTICACHE_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
42
43 public:
44
46
50 inline const Aws::String& GetSourceIdentifier() const{ return m_sourceIdentifier; }
51 inline bool SourceIdentifierHasBeenSet() const { return m_sourceIdentifierHasBeenSet; }
52 inline void SetSourceIdentifier(const Aws::String& value) { m_sourceIdentifierHasBeenSet = true; m_sourceIdentifier = value; }
53 inline void SetSourceIdentifier(Aws::String&& value) { m_sourceIdentifierHasBeenSet = true; m_sourceIdentifier = std::move(value); }
54 inline void SetSourceIdentifier(const char* value) { m_sourceIdentifierHasBeenSet = true; m_sourceIdentifier.assign(value); }
55 inline DescribeEventsRequest& WithSourceIdentifier(const Aws::String& value) { SetSourceIdentifier(value); return *this;}
56 inline DescribeEventsRequest& WithSourceIdentifier(Aws::String&& value) { SetSourceIdentifier(std::move(value)); return *this;}
57 inline DescribeEventsRequest& WithSourceIdentifier(const char* value) { SetSourceIdentifier(value); return *this;}
59
61
65 inline const SourceType& GetSourceType() const{ return m_sourceType; }
66 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
67 inline void SetSourceType(const SourceType& value) { m_sourceTypeHasBeenSet = true; m_sourceType = value; }
68 inline void SetSourceType(SourceType&& value) { m_sourceTypeHasBeenSet = true; m_sourceType = std::move(value); }
69 inline DescribeEventsRequest& WithSourceType(const SourceType& value) { SetSourceType(value); return *this;}
70 inline DescribeEventsRequest& WithSourceType(SourceType&& value) { SetSourceType(std::move(value)); return *this;}
72
74
78 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
79 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
80 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
81 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
82 inline DescribeEventsRequest& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
83 inline DescribeEventsRequest& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
85
87
91 inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
92 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
93 inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
94 inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
95 inline DescribeEventsRequest& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
96 inline DescribeEventsRequest& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
98
100
103 inline int GetDuration() const{ return m_duration; }
104 inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
105 inline void SetDuration(int value) { m_durationHasBeenSet = true; m_duration = value; }
106 inline DescribeEventsRequest& WithDuration(int value) { SetDuration(value); return *this;}
108
110
116 inline int GetMaxRecords() const{ return m_maxRecords; }
117 inline bool MaxRecordsHasBeenSet() const { return m_maxRecordsHasBeenSet; }
118 inline void SetMaxRecords(int value) { m_maxRecordsHasBeenSet = true; m_maxRecords = value; }
119 inline DescribeEventsRequest& WithMaxRecords(int value) { SetMaxRecords(value); return *this;}
121
123
129 inline const Aws::String& GetMarker() const{ return m_marker; }
130 inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; }
131 inline void SetMarker(const Aws::String& value) { m_markerHasBeenSet = true; m_marker = value; }
132 inline void SetMarker(Aws::String&& value) { m_markerHasBeenSet = true; m_marker = std::move(value); }
133 inline void SetMarker(const char* value) { m_markerHasBeenSet = true; m_marker.assign(value); }
134 inline DescribeEventsRequest& WithMarker(const Aws::String& value) { SetMarker(value); return *this;}
135 inline DescribeEventsRequest& WithMarker(Aws::String&& value) { SetMarker(std::move(value)); return *this;}
136 inline DescribeEventsRequest& WithMarker(const char* value) { SetMarker(value); return *this;}
138 private:
139
140 Aws::String m_sourceIdentifier;
141 bool m_sourceIdentifierHasBeenSet = false;
142
143 SourceType m_sourceType;
144 bool m_sourceTypeHasBeenSet = false;
145
146 Aws::Utils::DateTime m_startTime;
147 bool m_startTimeHasBeenSet = false;
148
149 Aws::Utils::DateTime m_endTime;
150 bool m_endTimeHasBeenSet = false;
151
152 int m_duration;
153 bool m_durationHasBeenSet = false;
154
155 int m_maxRecords;
156 bool m_maxRecordsHasBeenSet = false;
157
158 Aws::String m_marker;
159 bool m_markerHasBeenSet = false;
160 };
161
162} // namespace Model
163} // namespace ElastiCache
164} // namespace Aws
DescribeEventsRequest & WithSourceIdentifier(const char *value)
void SetStartTime(const Aws::Utils::DateTime &value)
DescribeEventsRequest & WithSourceType(SourceType &&value)
DescribeEventsRequest & WithEndTime(Aws::Utils::DateTime &&value)
DescribeEventsRequest & WithStartTime(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetEndTime() const
DescribeEventsRequest & WithMarker(Aws::String &&value)
DescribeEventsRequest & WithDuration(int value)
AWS_ELASTICACHE_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
AWS_ELASTICACHE_API Aws::String SerializePayload() const override
DescribeEventsRequest & WithMaxRecords(int value)
virtual const char * GetServiceRequestName() const override
DescribeEventsRequest & WithSourceIdentifier(Aws::String &&value)
void SetEndTime(const Aws::Utils::DateTime &value)
DescribeEventsRequest & WithSourceIdentifier(const Aws::String &value)
DescribeEventsRequest & WithMarker(const Aws::String &value)
DescribeEventsRequest & WithStartTime(Aws::Utils::DateTime &&value)
DescribeEventsRequest & WithMarker(const char *value)
const Aws::Utils::DateTime & GetStartTime() const
void SetEndTime(Aws::Utils::DateTime &&value)
DescribeEventsRequest & WithSourceType(const SourceType &value)
DescribeEventsRequest & WithEndTime(const Aws::Utils::DateTime &value)
void SetStartTime(Aws::Utils::DateTime &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String