AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename SourceIdentifierT = Aws::String>
53 void SetSourceIdentifier(SourceIdentifierT&& value) { m_sourceIdentifierHasBeenSet = true; m_sourceIdentifier = std::forward<SourceIdentifierT>(value); }
54 template<typename SourceIdentifierT = Aws::String>
55 DescribeEventsRequest& WithSourceIdentifier(SourceIdentifierT&& value) { SetSourceIdentifier(std::forward<SourceIdentifierT>(value)); return *this;}
57
59
63 inline SourceType GetSourceType() const { return m_sourceType; }
64 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
65 inline void SetSourceType(SourceType value) { m_sourceTypeHasBeenSet = true; m_sourceType = value; }
66 inline DescribeEventsRequest& WithSourceType(SourceType value) { SetSourceType(value); return *this;}
68
70
74 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
75 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
76 template<typename StartTimeT = Aws::Utils::DateTime>
77 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
78 template<typename StartTimeT = Aws::Utils::DateTime>
79 DescribeEventsRequest& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
81
83
87 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
88 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
89 template<typename EndTimeT = Aws::Utils::DateTime>
90 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
91 template<typename EndTimeT = Aws::Utils::DateTime>
92 DescribeEventsRequest& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
94
96
99 inline int GetDuration() const { return m_duration; }
100 inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
101 inline void SetDuration(int value) { m_durationHasBeenSet = true; m_duration = value; }
102 inline DescribeEventsRequest& WithDuration(int value) { SetDuration(value); return *this;}
104
106
112 inline int GetMaxRecords() const { return m_maxRecords; }
113 inline bool MaxRecordsHasBeenSet() const { return m_maxRecordsHasBeenSet; }
114 inline void SetMaxRecords(int value) { m_maxRecordsHasBeenSet = true; m_maxRecords = value; }
115 inline DescribeEventsRequest& WithMaxRecords(int value) { SetMaxRecords(value); return *this;}
117
119
125 inline const Aws::String& GetMarker() const { return m_marker; }
126 inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; }
127 template<typename MarkerT = Aws::String>
128 void SetMarker(MarkerT&& value) { m_markerHasBeenSet = true; m_marker = std::forward<MarkerT>(value); }
129 template<typename MarkerT = Aws::String>
130 DescribeEventsRequest& WithMarker(MarkerT&& value) { SetMarker(std::forward<MarkerT>(value)); return *this;}
132 private:
133
134 Aws::String m_sourceIdentifier;
135 bool m_sourceIdentifierHasBeenSet = false;
136
137 SourceType m_sourceType{SourceType::NOT_SET};
138 bool m_sourceTypeHasBeenSet = false;
139
140 Aws::Utils::DateTime m_startTime{};
141 bool m_startTimeHasBeenSet = false;
142
143 Aws::Utils::DateTime m_endTime{};
144 bool m_endTimeHasBeenSet = false;
145
146 int m_duration{0};
147 bool m_durationHasBeenSet = false;
148
149 int m_maxRecords{0};
150 bool m_maxRecordsHasBeenSet = false;
151
152 Aws::String m_marker;
153 bool m_markerHasBeenSet = false;
154 };
155
156} // namespace Model
157} // namespace ElastiCache
158} // namespace Aws
DescribeEventsRequest & WithSourceType(SourceType value)
DescribeEventsRequest & WithEndTime(EndTimeT &&value)
const Aws::Utils::DateTime & GetEndTime() const
void SetSourceIdentifier(SourceIdentifierT &&value)
DescribeEventsRequest & WithSourceIdentifier(SourceIdentifierT &&value)
DescribeEventsRequest & WithDuration(int value)
DescribeEventsRequest & WithMarker(MarkerT &&value)
AWS_ELASTICACHE_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
AWS_ELASTICACHE_API DescribeEventsRequest()=default
AWS_ELASTICACHE_API Aws::String SerializePayload() const override
DescribeEventsRequest & WithStartTime(StartTimeT &&value)
DescribeEventsRequest & WithMaxRecords(int value)
virtual const char * GetServiceRequestName() const override
const Aws::Utils::DateTime & GetStartTime() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String