AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ListNotificationEventsRequest.h
1
6#pragma once
7#include <aws/notifications/Notifications_EXPORTS.h>
8#include <aws/notifications/NotificationsRequest.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/notifications/model/LocaleCode.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Http
17{
18 class URI;
19} //namespace Http
20namespace Notifications
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_NOTIFICATIONS_API ListNotificationEventsRequest() = 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 "ListNotificationEvents"; }
37
38 AWS_NOTIFICATIONS_API Aws::String SerializePayload() const override;
39
40 AWS_NOTIFICATIONS_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
41
42
44
47 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
48 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
49 template<typename StartTimeT = Aws::Utils::DateTime>
50 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
51 template<typename StartTimeT = Aws::Utils::DateTime>
52 ListNotificationEventsRequest& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
54
56
59 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
60 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
61 template<typename EndTimeT = Aws::Utils::DateTime>
62 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
63 template<typename EndTimeT = Aws::Utils::DateTime>
64 ListNotificationEventsRequest& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
66
68
73 inline LocaleCode GetLocale() const { return m_locale; }
74 inline bool LocaleHasBeenSet() const { return m_localeHasBeenSet; }
75 inline void SetLocale(LocaleCode value) { m_localeHasBeenSet = true; m_locale = value; }
76 inline ListNotificationEventsRequest& WithLocale(LocaleCode value) { SetLocale(value); return *this;}
78
80
89 inline const Aws::String& GetSource() const { return m_source; }
90 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
91 template<typename SourceT = Aws::String>
92 void SetSource(SourceT&& value) { m_sourceHasBeenSet = true; m_source = std::forward<SourceT>(value); }
93 template<typename SourceT = Aws::String>
94 ListNotificationEventsRequest& WithSource(SourceT&& value) { SetSource(std::forward<SourceT>(value)); return *this;}
96
98
101 inline bool GetIncludeChildEvents() const { return m_includeChildEvents; }
102 inline bool IncludeChildEventsHasBeenSet() const { return m_includeChildEventsHasBeenSet; }
103 inline void SetIncludeChildEvents(bool value) { m_includeChildEventsHasBeenSet = true; m_includeChildEvents = value; }
106
108
112 inline const Aws::String& GetAggregateNotificationEventArn() const { return m_aggregateNotificationEventArn; }
113 inline bool AggregateNotificationEventArnHasBeenSet() const { return m_aggregateNotificationEventArnHasBeenSet; }
114 template<typename AggregateNotificationEventArnT = Aws::String>
115 void SetAggregateNotificationEventArn(AggregateNotificationEventArnT&& value) { m_aggregateNotificationEventArnHasBeenSet = true; m_aggregateNotificationEventArn = std::forward<AggregateNotificationEventArnT>(value); }
116 template<typename AggregateNotificationEventArnT = Aws::String>
117 ListNotificationEventsRequest& WithAggregateNotificationEventArn(AggregateNotificationEventArnT&& value) { SetAggregateNotificationEventArn(std::forward<AggregateNotificationEventArnT>(value)); return *this;}
119
121
125 inline int GetMaxResults() const { return m_maxResults; }
126 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
127 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
128 inline ListNotificationEventsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
130
132
136 inline const Aws::String& GetNextToken() const { return m_nextToken; }
137 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
138 template<typename NextTokenT = Aws::String>
139 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
140 template<typename NextTokenT = Aws::String>
141 ListNotificationEventsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
143 private:
144
145 Aws::Utils::DateTime m_startTime{};
146 bool m_startTimeHasBeenSet = false;
147
148 Aws::Utils::DateTime m_endTime{};
149 bool m_endTimeHasBeenSet = false;
150
152 bool m_localeHasBeenSet = false;
153
154 Aws::String m_source;
155 bool m_sourceHasBeenSet = false;
156
157 bool m_includeChildEvents{false};
158 bool m_includeChildEventsHasBeenSet = false;
159
160 Aws::String m_aggregateNotificationEventArn;
161 bool m_aggregateNotificationEventArnHasBeenSet = false;
162
163 int m_maxResults{0};
164 bool m_maxResultsHasBeenSet = false;
165
166 Aws::String m_nextToken;
167 bool m_nextTokenHasBeenSet = false;
168 };
169
170} // namespace Model
171} // namespace Notifications
172} // namespace Aws
ListNotificationEventsRequest & WithSource(SourceT &&value)
AWS_NOTIFICATIONS_API Aws::String SerializePayload() const override
AWS_NOTIFICATIONS_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
ListNotificationEventsRequest & WithIncludeChildEvents(bool value)
ListNotificationEventsRequest & WithLocale(LocaleCode value)
void SetAggregateNotificationEventArn(AggregateNotificationEventArnT &&value)
ListNotificationEventsRequest & WithStartTime(StartTimeT &&value)
AWS_NOTIFICATIONS_API ListNotificationEventsRequest()=default
ListNotificationEventsRequest & WithNextToken(NextTokenT &&value)
ListNotificationEventsRequest & WithEndTime(EndTimeT &&value)
ListNotificationEventsRequest & WithAggregateNotificationEventArn(AggregateNotificationEventArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String