AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
ListNotificationsRequest.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/datazone/DataZoneRequest.h>
11#include <aws/datazone/DataZone_EXPORTS.h>
12#include <aws/datazone/model/NotificationType.h>
13#include <aws/datazone/model/TaskStatus.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Http {
19class URI;
20} // namespace Http
21namespace DataZone {
22namespace Model {
23
27 public:
28 AWS_DATAZONE_API ListNotificationsRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "ListNotifications"; }
35
36 AWS_DATAZONE_API Aws::String SerializePayload() const override;
37
38 AWS_DATAZONE_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
39
41
44 inline const Aws::String& GetDomainIdentifier() const { return m_domainIdentifier; }
45 inline bool DomainIdentifierHasBeenSet() const { return m_domainIdentifierHasBeenSet; }
46 template <typename DomainIdentifierT = Aws::String>
47 void SetDomainIdentifier(DomainIdentifierT&& value) {
48 m_domainIdentifierHasBeenSet = true;
49 m_domainIdentifier = std::forward<DomainIdentifierT>(value);
50 }
51 template <typename DomainIdentifierT = Aws::String>
52 ListNotificationsRequest& WithDomainIdentifier(DomainIdentifierT&& value) {
53 SetDomainIdentifier(std::forward<DomainIdentifierT>(value));
54 return *this;
55 }
57
59
62 inline NotificationType GetType() const { return m_type; }
63 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
64 inline void SetType(NotificationType value) {
65 m_typeHasBeenSet = true;
66 m_type = value;
67 }
69 SetType(value);
70 return *this;
71 }
73
75
78 inline const Aws::Utils::DateTime& GetAfterTimestamp() const { return m_afterTimestamp; }
79 inline bool AfterTimestampHasBeenSet() const { return m_afterTimestampHasBeenSet; }
80 template <typename AfterTimestampT = Aws::Utils::DateTime>
81 void SetAfterTimestamp(AfterTimestampT&& value) {
82 m_afterTimestampHasBeenSet = true;
83 m_afterTimestamp = std::forward<AfterTimestampT>(value);
84 }
85 template <typename AfterTimestampT = Aws::Utils::DateTime>
86 ListNotificationsRequest& WithAfterTimestamp(AfterTimestampT&& value) {
87 SetAfterTimestamp(std::forward<AfterTimestampT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::Utils::DateTime& GetBeforeTimestamp() const { return m_beforeTimestamp; }
97 inline bool BeforeTimestampHasBeenSet() const { return m_beforeTimestampHasBeenSet; }
98 template <typename BeforeTimestampT = Aws::Utils::DateTime>
99 void SetBeforeTimestamp(BeforeTimestampT&& value) {
100 m_beforeTimestampHasBeenSet = true;
101 m_beforeTimestamp = std::forward<BeforeTimestampT>(value);
102 }
103 template <typename BeforeTimestampT = Aws::Utils::DateTime>
105 SetBeforeTimestamp(std::forward<BeforeTimestampT>(value));
106 return *this;
107 }
109
111
114 inline const Aws::Vector<Aws::String>& GetSubjects() const { return m_subjects; }
115 inline bool SubjectsHasBeenSet() const { return m_subjectsHasBeenSet; }
116 template <typename SubjectsT = Aws::Vector<Aws::String>>
117 void SetSubjects(SubjectsT&& value) {
118 m_subjectsHasBeenSet = true;
119 m_subjects = std::forward<SubjectsT>(value);
120 }
121 template <typename SubjectsT = Aws::Vector<Aws::String>>
123 SetSubjects(std::forward<SubjectsT>(value));
124 return *this;
125 }
126 template <typename SubjectsT = Aws::String>
128 m_subjectsHasBeenSet = true;
129 m_subjects.emplace_back(std::forward<SubjectsT>(value));
130 return *this;
131 }
133
135
138 inline TaskStatus GetTaskStatus() const { return m_taskStatus; }
139 inline bool TaskStatusHasBeenSet() const { return m_taskStatusHasBeenSet; }
140 inline void SetTaskStatus(TaskStatus value) {
141 m_taskStatusHasBeenSet = true;
142 m_taskStatus = value;
143 }
145 SetTaskStatus(value);
146 return *this;
147 }
149
151
158 inline int GetMaxResults() const { return m_maxResults; }
159 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
160 inline void SetMaxResults(int value) {
161 m_maxResultsHasBeenSet = true;
162 m_maxResults = value;
163 }
165 SetMaxResults(value);
166 return *this;
167 }
169
171
179 inline const Aws::String& GetNextToken() const { return m_nextToken; }
180 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
181 template <typename NextTokenT = Aws::String>
182 void SetNextToken(NextTokenT&& value) {
183 m_nextTokenHasBeenSet = true;
184 m_nextToken = std::forward<NextTokenT>(value);
185 }
186 template <typename NextTokenT = Aws::String>
188 SetNextToken(std::forward<NextTokenT>(value));
189 return *this;
190 }
192 private:
193 Aws::String m_domainIdentifier;
194
196
197 Aws::Utils::DateTime m_afterTimestamp{};
198
199 Aws::Utils::DateTime m_beforeTimestamp{};
200
201 Aws::Vector<Aws::String> m_subjects;
202
203 TaskStatus m_taskStatus{TaskStatus::NOT_SET};
204
205 int m_maxResults{0};
206
207 Aws::String m_nextToken;
208 bool m_domainIdentifierHasBeenSet = false;
209 bool m_typeHasBeenSet = false;
210 bool m_afterTimestampHasBeenSet = false;
211 bool m_beforeTimestampHasBeenSet = false;
212 bool m_subjectsHasBeenSet = false;
213 bool m_taskStatusHasBeenSet = false;
214 bool m_maxResultsHasBeenSet = false;
215 bool m_nextTokenHasBeenSet = false;
216};
217
218} // namespace Model
219} // namespace DataZone
220} // namespace Aws
ListNotificationsRequest & WithMaxResults(int value)
ListNotificationsRequest & AddSubjects(SubjectsT &&value)
const Aws::Vector< Aws::String > & GetSubjects() const
ListNotificationsRequest & WithAfterTimestamp(AfterTimestampT &&value)
AWS_DATAZONE_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
ListNotificationsRequest & WithDomainIdentifier(DomainIdentifierT &&value)
ListNotificationsRequest & WithType(NotificationType value)
ListNotificationsRequest & WithBeforeTimestamp(BeforeTimestampT &&value)
const Aws::Utils::DateTime & GetBeforeTimestamp() const
ListNotificationsRequest & WithSubjects(SubjectsT &&value)
const Aws::Utils::DateTime & GetAfterTimestamp() const
AWS_DATAZONE_API Aws::String SerializePayload() const override
AWS_DATAZONE_API ListNotificationsRequest()=default
virtual const char * GetServiceRequestName() const override
ListNotificationsRequest & WithTaskStatus(TaskStatus value)
ListNotificationsRequest & WithNextToken(NextTokenT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector