AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAfterTimestamp(const Aws::Utils::DateTime& value) { m_afterTimestampHasBeenSet = true; m_afterTimestamp = value; }
52 inline void SetAfterTimestamp(Aws::Utils::DateTime&& value) { m_afterTimestampHasBeenSet = true; m_afterTimestamp = std::move(value); }
54 inline ListNotificationsRequest& WithAfterTimestamp(Aws::Utils::DateTime&& value) { SetAfterTimestamp(std::move(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 inline void SetBeforeTimestamp(const Aws::Utils::DateTime& value) { m_beforeTimestampHasBeenSet = true; m_beforeTimestamp = value; }
64 inline void SetBeforeTimestamp(Aws::Utils::DateTime&& value) { m_beforeTimestampHasBeenSet = true; m_beforeTimestamp = std::move(value); }
66 inline ListNotificationsRequest& WithBeforeTimestamp(Aws::Utils::DateTime&& value) { SetBeforeTimestamp(std::move(value)); return *this;}
68
70
73 inline const Aws::String& GetDomainIdentifier() const{ return m_domainIdentifier; }
74 inline bool DomainIdentifierHasBeenSet() const { return m_domainIdentifierHasBeenSet; }
75 inline void SetDomainIdentifier(const Aws::String& value) { m_domainIdentifierHasBeenSet = true; m_domainIdentifier = value; }
76 inline void SetDomainIdentifier(Aws::String&& value) { m_domainIdentifierHasBeenSet = true; m_domainIdentifier = std::move(value); }
77 inline void SetDomainIdentifier(const char* value) { m_domainIdentifierHasBeenSet = true; m_domainIdentifier.assign(value); }
79 inline ListNotificationsRequest& WithDomainIdentifier(Aws::String&& value) { SetDomainIdentifier(std::move(value)); return *this;}
80 inline ListNotificationsRequest& WithDomainIdentifier(const char* value) { SetDomainIdentifier(value); return *this;}
82
84
91 inline int GetMaxResults() const{ return m_maxResults; }
92 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
93 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
94 inline ListNotificationsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
96
98
106 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
107 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
108 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
109 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
110 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
111 inline ListNotificationsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
112 inline ListNotificationsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
113 inline ListNotificationsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
115
117
120 inline const Aws::Vector<Aws::String>& GetSubjects() const{ return m_subjects; }
121 inline bool SubjectsHasBeenSet() const { return m_subjectsHasBeenSet; }
122 inline void SetSubjects(const Aws::Vector<Aws::String>& value) { m_subjectsHasBeenSet = true; m_subjects = value; }
123 inline void SetSubjects(Aws::Vector<Aws::String>&& value) { m_subjectsHasBeenSet = true; m_subjects = std::move(value); }
124 inline ListNotificationsRequest& WithSubjects(const Aws::Vector<Aws::String>& value) { SetSubjects(value); return *this;}
125 inline ListNotificationsRequest& WithSubjects(Aws::Vector<Aws::String>&& value) { SetSubjects(std::move(value)); return *this;}
126 inline ListNotificationsRequest& AddSubjects(const Aws::String& value) { m_subjectsHasBeenSet = true; m_subjects.push_back(value); return *this; }
127 inline ListNotificationsRequest& AddSubjects(Aws::String&& value) { m_subjectsHasBeenSet = true; m_subjects.push_back(std::move(value)); return *this; }
128 inline ListNotificationsRequest& AddSubjects(const char* value) { m_subjectsHasBeenSet = true; m_subjects.push_back(value); return *this; }
130
132
135 inline const TaskStatus& GetTaskStatus() const{ return m_taskStatus; }
136 inline bool TaskStatusHasBeenSet() const { return m_taskStatusHasBeenSet; }
137 inline void SetTaskStatus(const TaskStatus& value) { m_taskStatusHasBeenSet = true; m_taskStatus = value; }
138 inline void SetTaskStatus(TaskStatus&& value) { m_taskStatusHasBeenSet = true; m_taskStatus = std::move(value); }
139 inline ListNotificationsRequest& WithTaskStatus(const TaskStatus& value) { SetTaskStatus(value); return *this;}
140 inline ListNotificationsRequest& WithTaskStatus(TaskStatus&& value) { SetTaskStatus(std::move(value)); return *this;}
142
144
147 inline const NotificationType& GetType() const{ return m_type; }
148 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
149 inline void SetType(const NotificationType& value) { m_typeHasBeenSet = true; m_type = value; }
150 inline void SetType(NotificationType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
151 inline ListNotificationsRequest& WithType(const NotificationType& value) { SetType(value); return *this;}
152 inline ListNotificationsRequest& WithType(NotificationType&& value) { SetType(std::move(value)); return *this;}
154 private:
155
156 Aws::Utils::DateTime m_afterTimestamp;
157 bool m_afterTimestampHasBeenSet = false;
158
159 Aws::Utils::DateTime m_beforeTimestamp;
160 bool m_beforeTimestampHasBeenSet = false;
161
162 Aws::String m_domainIdentifier;
163 bool m_domainIdentifierHasBeenSet = false;
164
165 int m_maxResults;
166 bool m_maxResultsHasBeenSet = false;
167
168 Aws::String m_nextToken;
169 bool m_nextTokenHasBeenSet = false;
170
171 Aws::Vector<Aws::String> m_subjects;
172 bool m_subjectsHasBeenSet = false;
173
174 TaskStatus m_taskStatus;
175 bool m_taskStatusHasBeenSet = false;
176
177 NotificationType m_type;
178 bool m_typeHasBeenSet = false;
179 };
180
181} // namespace Model
182} // namespace DataZone
183} // namespace Aws
ListNotificationsRequest & WithMaxResults(int value)
ListNotificationsRequest & WithTaskStatus(const TaskStatus &value)
const Aws::Vector< Aws::String > & GetSubjects() const
void SetAfterTimestamp(const Aws::Utils::DateTime &value)
ListNotificationsRequest & WithType(const NotificationType &value)
AWS_DATAZONE_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
ListNotificationsRequest & WithNextToken(const Aws::String &value)
void SetBeforeTimestamp(const Aws::Utils::DateTime &value)
ListNotificationsRequest & WithDomainIdentifier(const Aws::String &value)
ListNotificationsRequest & WithType(NotificationType &&value)
const Aws::Utils::DateTime & GetBeforeTimestamp() const
ListNotificationsRequest & WithNextToken(const char *value)
const Aws::Utils::DateTime & GetAfterTimestamp() const
void SetSubjects(Aws::Vector< Aws::String > &&value)
ListNotificationsRequest & AddSubjects(Aws::String &&value)
ListNotificationsRequest & WithSubjects(Aws::Vector< Aws::String > &&value)
ListNotificationsRequest & AddSubjects(const Aws::String &value)
AWS_DATAZONE_API Aws::String SerializePayload() const override
ListNotificationsRequest & WithNextToken(Aws::String &&value)
ListNotificationsRequest & WithTaskStatus(TaskStatus &&value)
ListNotificationsRequest & WithBeforeTimestamp(Aws::Utils::DateTime &&value)
void SetSubjects(const Aws::Vector< Aws::String > &value)
ListNotificationsRequest & WithSubjects(const Aws::Vector< Aws::String > &value)
void SetAfterTimestamp(Aws::Utils::DateTime &&value)
ListNotificationsRequest & WithDomainIdentifier(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
ListNotificationsRequest & WithAfterTimestamp(const Aws::Utils::DateTime &value)
ListNotificationsRequest & WithDomainIdentifier(const char *value)
void SetBeforeTimestamp(Aws::Utils::DateTime &&value)
ListNotificationsRequest & WithBeforeTimestamp(const Aws::Utils::DateTime &value)
ListNotificationsRequest & WithAfterTimestamp(Aws::Utils::DateTime &&value)
ListNotificationsRequest & AddSubjects(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector