AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
DescribeEventsRequest.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/dax/DAXRequest.h>
10#include <aws/dax/DAX_EXPORTS.h>
11#include <aws/dax/model/SourceType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace DAX {
17namespace Model {
18
22 public:
23 AWS_DAX_API DescribeEventsRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "DescribeEvents"; }
30
31 AWS_DAX_API Aws::String SerializePayload() const override;
32
34
36
40 inline const Aws::String& GetSourceName() const { return m_sourceName; }
41 inline bool SourceNameHasBeenSet() const { return m_sourceNameHasBeenSet; }
42 template <typename SourceNameT = Aws::String>
43 void SetSourceName(SourceNameT&& value) {
44 m_sourceNameHasBeenSet = true;
45 m_sourceName = std::forward<SourceNameT>(value);
46 }
47 template <typename SourceNameT = Aws::String>
48 DescribeEventsRequest& WithSourceName(SourceNameT&& value) {
49 SetSourceName(std::forward<SourceNameT>(value));
50 return *this;
51 }
53
55
59 inline SourceType GetSourceType() const { return m_sourceType; }
60 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
61 inline void SetSourceType(SourceType value) {
62 m_sourceTypeHasBeenSet = true;
63 m_sourceType = value;
64 }
66 SetSourceType(value);
67 return *this;
68 }
70
72
76 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
77 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
78 template <typename StartTimeT = Aws::Utils::DateTime>
79 void SetStartTime(StartTimeT&& value) {
80 m_startTimeHasBeenSet = true;
81 m_startTime = std::forward<StartTimeT>(value);
82 }
83 template <typename StartTimeT = Aws::Utils::DateTime>
84 DescribeEventsRequest& WithStartTime(StartTimeT&& value) {
85 SetStartTime(std::forward<StartTimeT>(value));
86 return *this;
87 }
89
91
95 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
96 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
97 template <typename EndTimeT = Aws::Utils::DateTime>
98 void SetEndTime(EndTimeT&& value) {
99 m_endTimeHasBeenSet = true;
100 m_endTime = std::forward<EndTimeT>(value);
101 }
102 template <typename EndTimeT = Aws::Utils::DateTime>
104 SetEndTime(std::forward<EndTimeT>(value));
105 return *this;
106 }
108
110
113 inline int GetDuration() const { return m_duration; }
114 inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
115 inline void SetDuration(int value) {
116 m_durationHasBeenSet = true;
117 m_duration = value;
118 }
120 SetDuration(value);
121 return *this;
122 }
124
126
132 inline int GetMaxResults() const { return m_maxResults; }
133 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
134 inline void SetMaxResults(int value) {
135 m_maxResultsHasBeenSet = true;
136 m_maxResults = value;
137 }
139 SetMaxResults(value);
140 return *this;
141 }
143
145
151 inline const Aws::String& GetNextToken() const { return m_nextToken; }
152 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
153 template <typename NextTokenT = Aws::String>
154 void SetNextToken(NextTokenT&& value) {
155 m_nextTokenHasBeenSet = true;
156 m_nextToken = std::forward<NextTokenT>(value);
157 }
158 template <typename NextTokenT = Aws::String>
160 SetNextToken(std::forward<NextTokenT>(value));
161 return *this;
162 }
164 private:
165 Aws::String m_sourceName;
166
167 SourceType m_sourceType{SourceType::NOT_SET};
168
169 Aws::Utils::DateTime m_startTime{};
170
171 Aws::Utils::DateTime m_endTime{};
172
173 int m_duration{0};
174
175 int m_maxResults{0};
176
177 Aws::String m_nextToken;
178 bool m_sourceNameHasBeenSet = false;
179 bool m_sourceTypeHasBeenSet = false;
180 bool m_startTimeHasBeenSet = false;
181 bool m_endTimeHasBeenSet = false;
182 bool m_durationHasBeenSet = false;
183 bool m_maxResultsHasBeenSet = false;
184 bool m_nextTokenHasBeenSet = false;
185};
186
187} // namespace Model
188} // namespace DAX
189} // namespace Aws
AWS_DAX_API DescribeEventsRequest()=default
virtual const char * GetServiceRequestName() const override
DescribeEventsRequest & WithSourceType(SourceType value)
const Aws::Utils::DateTime & GetEndTime() const
DescribeEventsRequest & WithStartTime(StartTimeT &&value)
DescribeEventsRequest & WithMaxResults(int value)
DescribeEventsRequest & WithSourceName(SourceNameT &&value)
DescribeEventsRequest & WithDuration(int value)
DescribeEventsRequest & WithEndTime(EndTimeT &&value)
const Aws::Utils::DateTime & GetStartTime() const
DescribeEventsRequest & WithNextToken(NextTokenT &&value)
AWS_DAX_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_DAX_API Aws::String SerializePayload() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String