AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ListBackupJobsRequest.h
1
6#pragma once
7#include <aws/backup/Backup_EXPORTS.h>
8#include <aws/backup/BackupRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/backup/model/BackupJobState.h>
11#include <aws/core/utils/DateTime.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Http
17{
18 class URI;
19} //namespace Http
20namespace Backup
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_BACKUP_API ListBackupJobsRequest() = 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 "ListBackupJobs"; }
37
38 AWS_BACKUP_API Aws::String SerializePayload() const override;
39
40 AWS_BACKUP_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
41
42
44
50 inline const Aws::String& GetNextToken() const { return m_nextToken; }
51 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
52 template<typename NextTokenT = Aws::String>
53 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
54 template<typename NextTokenT = Aws::String>
55 ListBackupJobsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
57
59
62 inline int GetMaxResults() const { return m_maxResults; }
63 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
64 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
65 inline ListBackupJobsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
67
69
73 inline const Aws::String& GetByResourceArn() const { return m_byResourceArn; }
74 inline bool ByResourceArnHasBeenSet() const { return m_byResourceArnHasBeenSet; }
75 template<typename ByResourceArnT = Aws::String>
76 void SetByResourceArn(ByResourceArnT&& value) { m_byResourceArnHasBeenSet = true; m_byResourceArn = std::forward<ByResourceArnT>(value); }
77 template<typename ByResourceArnT = Aws::String>
78 ListBackupJobsRequest& WithByResourceArn(ByResourceArnT&& value) { SetByResourceArn(std::forward<ByResourceArnT>(value)); return *this;}
80
82
93 inline BackupJobState GetByState() const { return m_byState; }
94 inline bool ByStateHasBeenSet() const { return m_byStateHasBeenSet; }
95 inline void SetByState(BackupJobState value) { m_byStateHasBeenSet = true; m_byState = value; }
96 inline ListBackupJobsRequest& WithByState(BackupJobState value) { SetByState(value); return *this;}
98
100
105 inline const Aws::String& GetByBackupVaultName() const { return m_byBackupVaultName; }
106 inline bool ByBackupVaultNameHasBeenSet() const { return m_byBackupVaultNameHasBeenSet; }
107 template<typename ByBackupVaultNameT = Aws::String>
108 void SetByBackupVaultName(ByBackupVaultNameT&& value) { m_byBackupVaultNameHasBeenSet = true; m_byBackupVaultName = std::forward<ByBackupVaultNameT>(value); }
109 template<typename ByBackupVaultNameT = Aws::String>
110 ListBackupJobsRequest& WithByBackupVaultName(ByBackupVaultNameT&& value) { SetByBackupVaultName(std::forward<ByBackupVaultNameT>(value)); return *this;}
112
114
117 inline const Aws::Utils::DateTime& GetByCreatedBefore() const { return m_byCreatedBefore; }
118 inline bool ByCreatedBeforeHasBeenSet() const { return m_byCreatedBeforeHasBeenSet; }
119 template<typename ByCreatedBeforeT = Aws::Utils::DateTime>
120 void SetByCreatedBefore(ByCreatedBeforeT&& value) { m_byCreatedBeforeHasBeenSet = true; m_byCreatedBefore = std::forward<ByCreatedBeforeT>(value); }
121 template<typename ByCreatedBeforeT = Aws::Utils::DateTime>
122 ListBackupJobsRequest& WithByCreatedBefore(ByCreatedBeforeT&& value) { SetByCreatedBefore(std::forward<ByCreatedBeforeT>(value)); return *this;}
124
126
129 inline const Aws::Utils::DateTime& GetByCreatedAfter() const { return m_byCreatedAfter; }
130 inline bool ByCreatedAfterHasBeenSet() const { return m_byCreatedAfterHasBeenSet; }
131 template<typename ByCreatedAfterT = Aws::Utils::DateTime>
132 void SetByCreatedAfter(ByCreatedAfterT&& value) { m_byCreatedAfterHasBeenSet = true; m_byCreatedAfter = std::forward<ByCreatedAfterT>(value); }
133 template<typename ByCreatedAfterT = Aws::Utils::DateTime>
134 ListBackupJobsRequest& WithByCreatedAfter(ByCreatedAfterT&& value) { SetByCreatedAfter(std::forward<ByCreatedAfterT>(value)); return *this;}
136
138
157 inline const Aws::String& GetByResourceType() const { return m_byResourceType; }
158 inline bool ByResourceTypeHasBeenSet() const { return m_byResourceTypeHasBeenSet; }
159 template<typename ByResourceTypeT = Aws::String>
160 void SetByResourceType(ByResourceTypeT&& value) { m_byResourceTypeHasBeenSet = true; m_byResourceType = std::forward<ByResourceTypeT>(value); }
161 template<typename ByResourceTypeT = Aws::String>
162 ListBackupJobsRequest& WithByResourceType(ByResourceTypeT&& value) { SetByResourceType(std::forward<ByResourceTypeT>(value)); return *this;}
164
166
171 inline const Aws::String& GetByAccountId() const { return m_byAccountId; }
172 inline bool ByAccountIdHasBeenSet() const { return m_byAccountIdHasBeenSet; }
173 template<typename ByAccountIdT = Aws::String>
174 void SetByAccountId(ByAccountIdT&& value) { m_byAccountIdHasBeenSet = true; m_byAccountId = std::forward<ByAccountIdT>(value); }
175 template<typename ByAccountIdT = Aws::String>
176 ListBackupJobsRequest& WithByAccountId(ByAccountIdT&& value) { SetByAccountId(std::forward<ByAccountIdT>(value)); return *this;}
178
180
184 inline const Aws::Utils::DateTime& GetByCompleteAfter() const { return m_byCompleteAfter; }
185 inline bool ByCompleteAfterHasBeenSet() const { return m_byCompleteAfterHasBeenSet; }
186 template<typename ByCompleteAfterT = Aws::Utils::DateTime>
187 void SetByCompleteAfter(ByCompleteAfterT&& value) { m_byCompleteAfterHasBeenSet = true; m_byCompleteAfter = std::forward<ByCompleteAfterT>(value); }
188 template<typename ByCompleteAfterT = Aws::Utils::DateTime>
189 ListBackupJobsRequest& WithByCompleteAfter(ByCompleteAfterT&& value) { SetByCompleteAfter(std::forward<ByCompleteAfterT>(value)); return *this;}
191
193
197 inline const Aws::Utils::DateTime& GetByCompleteBefore() const { return m_byCompleteBefore; }
198 inline bool ByCompleteBeforeHasBeenSet() const { return m_byCompleteBeforeHasBeenSet; }
199 template<typename ByCompleteBeforeT = Aws::Utils::DateTime>
200 void SetByCompleteBefore(ByCompleteBeforeT&& value) { m_byCompleteBeforeHasBeenSet = true; m_byCompleteBefore = std::forward<ByCompleteBeforeT>(value); }
201 template<typename ByCompleteBeforeT = Aws::Utils::DateTime>
202 ListBackupJobsRequest& WithByCompleteBefore(ByCompleteBeforeT&& value) { SetByCompleteBefore(std::forward<ByCompleteBeforeT>(value)); return *this;}
204
206
209 inline const Aws::String& GetByParentJobId() const { return m_byParentJobId; }
210 inline bool ByParentJobIdHasBeenSet() const { return m_byParentJobIdHasBeenSet; }
211 template<typename ByParentJobIdT = Aws::String>
212 void SetByParentJobId(ByParentJobIdT&& value) { m_byParentJobIdHasBeenSet = true; m_byParentJobId = std::forward<ByParentJobIdT>(value); }
213 template<typename ByParentJobIdT = Aws::String>
214 ListBackupJobsRequest& WithByParentJobId(ByParentJobIdT&& value) { SetByParentJobId(std::forward<ByParentJobIdT>(value)); return *this;}
216
218
228 inline const Aws::String& GetByMessageCategory() const { return m_byMessageCategory; }
229 inline bool ByMessageCategoryHasBeenSet() const { return m_byMessageCategoryHasBeenSet; }
230 template<typename ByMessageCategoryT = Aws::String>
231 void SetByMessageCategory(ByMessageCategoryT&& value) { m_byMessageCategoryHasBeenSet = true; m_byMessageCategory = std::forward<ByMessageCategoryT>(value); }
232 template<typename ByMessageCategoryT = Aws::String>
233 ListBackupJobsRequest& WithByMessageCategory(ByMessageCategoryT&& value) { SetByMessageCategory(std::forward<ByMessageCategoryT>(value)); return *this;}
235 private:
236
237 Aws::String m_nextToken;
238 bool m_nextTokenHasBeenSet = false;
239
240 int m_maxResults{0};
241 bool m_maxResultsHasBeenSet = false;
242
243 Aws::String m_byResourceArn;
244 bool m_byResourceArnHasBeenSet = false;
245
247 bool m_byStateHasBeenSet = false;
248
249 Aws::String m_byBackupVaultName;
250 bool m_byBackupVaultNameHasBeenSet = false;
251
252 Aws::Utils::DateTime m_byCreatedBefore{};
253 bool m_byCreatedBeforeHasBeenSet = false;
254
255 Aws::Utils::DateTime m_byCreatedAfter{};
256 bool m_byCreatedAfterHasBeenSet = false;
257
258 Aws::String m_byResourceType;
259 bool m_byResourceTypeHasBeenSet = false;
260
261 Aws::String m_byAccountId;
262 bool m_byAccountIdHasBeenSet = false;
263
264 Aws::Utils::DateTime m_byCompleteAfter{};
265 bool m_byCompleteAfterHasBeenSet = false;
266
267 Aws::Utils::DateTime m_byCompleteBefore{};
268 bool m_byCompleteBeforeHasBeenSet = false;
269
270 Aws::String m_byParentJobId;
271 bool m_byParentJobIdHasBeenSet = false;
272
273 Aws::String m_byMessageCategory;
274 bool m_byMessageCategoryHasBeenSet = false;
275 };
276
277} // namespace Model
278} // namespace Backup
279} // namespace Aws
ListBackupJobsRequest & WithByCreatedAfter(ByCreatedAfterT &&value)
ListBackupJobsRequest & WithByResourceArn(ByResourceArnT &&value)
void SetByBackupVaultName(ByBackupVaultNameT &&value)
const Aws::Utils::DateTime & GetByCreatedBefore() const
ListBackupJobsRequest & WithByParentJobId(ByParentJobIdT &&value)
void SetByCompleteBefore(ByCompleteBeforeT &&value)
virtual const char * GetServiceRequestName() const override
AWS_BACKUP_API Aws::String SerializePayload() const override
const Aws::Utils::DateTime & GetByCreatedAfter() const
ListBackupJobsRequest & WithNextToken(NextTokenT &&value)
void SetByCreatedAfter(ByCreatedAfterT &&value)
AWS_BACKUP_API ListBackupJobsRequest()=default
AWS_BACKUP_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
ListBackupJobsRequest & WithByAccountId(ByAccountIdT &&value)
ListBackupJobsRequest & WithByMessageCategory(ByMessageCategoryT &&value)
ListBackupJobsRequest & WithByCompleteBefore(ByCompleteBeforeT &&value)
const Aws::Utils::DateTime & GetByCompleteBefore() const
void SetByCompleteAfter(ByCompleteAfterT &&value)
const Aws::Utils::DateTime & GetByCompleteAfter() const
void SetByCreatedBefore(ByCreatedBeforeT &&value)
ListBackupJobsRequest & WithByCreatedBefore(ByCreatedBeforeT &&value)
ListBackupJobsRequest & WithByCompleteAfter(ByCompleteAfterT &&value)
ListBackupJobsRequest & WithByState(BackupJobState value)
ListBackupJobsRequest & WithByResourceType(ByResourceTypeT &&value)
ListBackupJobsRequest & WithByBackupVaultName(ByBackupVaultNameT &&value)
void SetByResourceType(ByResourceTypeT &&value)
void SetByMessageCategory(ByMessageCategoryT &&value)
ListBackupJobsRequest & WithMaxResults(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String