AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
ListNotificationsRequest.h
1
6#pragma once
7#include <aws/datazone/DataZone_EXPORTS.h>
8#include <aws/datazone/DataZoneRequest.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/datazone/model/TaskStatus.h>
13#include <aws/datazone/model/NotificationType.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Http
19{
20 class URI;
21} //namespace Http
22namespace DataZone
23{
24namespace Model
25{
26
30 {
31 public:
32 AWS_DATAZONE_API ListNotificationsRequest() = default;
33
34 // Service request name is the Operation name which will send this request out,
35 // each operation should has unique request name, so that we can get operation's name from this request.
36 // Note: this is not true for response, multiple operations may have the same response name,
37 // so we can not get operation's name from response.
38 inline virtual const char* GetServiceRequestName() const override { return "ListNotifications"; }
39
40 AWS_DATAZONE_API Aws::String SerializePayload() const override;
41
42 AWS_DATAZONE_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
43
44
46
49 inline const Aws::Utils::DateTime& GetAfterTimestamp() const { return m_afterTimestamp; }
50 inline bool AfterTimestampHasBeenSet() const { return m_afterTimestampHasBeenSet; }
51 template<typename AfterTimestampT = Aws::Utils::DateTime>
52 void SetAfterTimestamp(AfterTimestampT&& value) { m_afterTimestampHasBeenSet = true; m_afterTimestamp = std::forward<AfterTimestampT>(value); }
53 template<typename AfterTimestampT = Aws::Utils::DateTime>
54 ListNotificationsRequest& WithAfterTimestamp(AfterTimestampT&& value) { SetAfterTimestamp(std::forward<AfterTimestampT>(value)); return *this;}
56
58
61 inline const Aws::Utils::DateTime& GetBeforeTimestamp() const { return m_beforeTimestamp; }
62 inline bool BeforeTimestampHasBeenSet() const { return m_beforeTimestampHasBeenSet; }
63 template<typename BeforeTimestampT = Aws::Utils::DateTime>
64 void SetBeforeTimestamp(BeforeTimestampT&& value) { m_beforeTimestampHasBeenSet = true; m_beforeTimestamp = std::forward<BeforeTimestampT>(value); }
65 template<typename BeforeTimestampT = Aws::Utils::DateTime>
66 ListNotificationsRequest& WithBeforeTimestamp(BeforeTimestampT&& value) { SetBeforeTimestamp(std::forward<BeforeTimestampT>(value)); return *this;}
68
70
73 inline const Aws::String& GetDomainIdentifier() const { return m_domainIdentifier; }
74 inline bool DomainIdentifierHasBeenSet() const { return m_domainIdentifierHasBeenSet; }
75 template<typename DomainIdentifierT = Aws::String>
76 void SetDomainIdentifier(DomainIdentifierT&& value) { m_domainIdentifierHasBeenSet = true; m_domainIdentifier = std::forward<DomainIdentifierT>(value); }
77 template<typename DomainIdentifierT = Aws::String>
78 ListNotificationsRequest& WithDomainIdentifier(DomainIdentifierT&& value) { SetDomainIdentifier(std::forward<DomainIdentifierT>(value)); return *this;}
80
82
89 inline int GetMaxResults() const { return m_maxResults; }
90 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
91 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
92 inline ListNotificationsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
94
96
104 inline const Aws::String& GetNextToken() const { return m_nextToken; }
105 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
106 template<typename NextTokenT = Aws::String>
107 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
108 template<typename NextTokenT = Aws::String>
109 ListNotificationsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
111
113
116 inline const Aws::Vector<Aws::String>& GetSubjects() const { return m_subjects; }
117 inline bool SubjectsHasBeenSet() const { return m_subjectsHasBeenSet; }
118 template<typename SubjectsT = Aws::Vector<Aws::String>>
119 void SetSubjects(SubjectsT&& value) { m_subjectsHasBeenSet = true; m_subjects = std::forward<SubjectsT>(value); }
120 template<typename SubjectsT = Aws::Vector<Aws::String>>
121 ListNotificationsRequest& WithSubjects(SubjectsT&& value) { SetSubjects(std::forward<SubjectsT>(value)); return *this;}
122 template<typename SubjectsT = Aws::String>
123 ListNotificationsRequest& AddSubjects(SubjectsT&& value) { m_subjectsHasBeenSet = true; m_subjects.emplace_back(std::forward<SubjectsT>(value)); return *this; }
125
127
130 inline TaskStatus GetTaskStatus() const { return m_taskStatus; }
131 inline bool TaskStatusHasBeenSet() const { return m_taskStatusHasBeenSet; }
132 inline void SetTaskStatus(TaskStatus value) { m_taskStatusHasBeenSet = true; m_taskStatus = value; }
133 inline ListNotificationsRequest& WithTaskStatus(TaskStatus value) { SetTaskStatus(value); return *this;}
135
137
140 inline NotificationType GetType() const { return m_type; }
141 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
142 inline void SetType(NotificationType value) { m_typeHasBeenSet = true; m_type = value; }
143 inline ListNotificationsRequest& WithType(NotificationType value) { SetType(value); return *this;}
145 private:
146
147 Aws::Utils::DateTime m_afterTimestamp{};
148 bool m_afterTimestampHasBeenSet = false;
149
150 Aws::Utils::DateTime m_beforeTimestamp{};
151 bool m_beforeTimestampHasBeenSet = false;
152
153 Aws::String m_domainIdentifier;
154 bool m_domainIdentifierHasBeenSet = false;
155
156 int m_maxResults{0};
157 bool m_maxResultsHasBeenSet = false;
158
159 Aws::String m_nextToken;
160 bool m_nextTokenHasBeenSet = false;
161
162 Aws::Vector<Aws::String> m_subjects;
163 bool m_subjectsHasBeenSet = false;
164
165 TaskStatus m_taskStatus{TaskStatus::NOT_SET};
166 bool m_taskStatusHasBeenSet = false;
167
169 bool m_typeHasBeenSet = false;
170 };
171
172} // namespace Model
173} // namespace DataZone
174} // 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