AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
53 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
54 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
55 inline ListBackupJobsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
56 inline ListBackupJobsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
57 inline ListBackupJobsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
59
61
64 inline int GetMaxResults() const{ return m_maxResults; }
65 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
66 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
67 inline ListBackupJobsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
69
71
75 inline const Aws::String& GetByResourceArn() const{ return m_byResourceArn; }
76 inline bool ByResourceArnHasBeenSet() const { return m_byResourceArnHasBeenSet; }
77 inline void SetByResourceArn(const Aws::String& value) { m_byResourceArnHasBeenSet = true; m_byResourceArn = value; }
78 inline void SetByResourceArn(Aws::String&& value) { m_byResourceArnHasBeenSet = true; m_byResourceArn = std::move(value); }
79 inline void SetByResourceArn(const char* value) { m_byResourceArnHasBeenSet = true; m_byResourceArn.assign(value); }
80 inline ListBackupJobsRequest& WithByResourceArn(const Aws::String& value) { SetByResourceArn(value); return *this;}
81 inline ListBackupJobsRequest& WithByResourceArn(Aws::String&& value) { SetByResourceArn(std::move(value)); return *this;}
82 inline ListBackupJobsRequest& WithByResourceArn(const char* value) { SetByResourceArn(value); return *this;}
84
86
97 inline const BackupJobState& GetByState() const{ return m_byState; }
98 inline bool ByStateHasBeenSet() const { return m_byStateHasBeenSet; }
99 inline void SetByState(const BackupJobState& value) { m_byStateHasBeenSet = true; m_byState = value; }
100 inline void SetByState(BackupJobState&& value) { m_byStateHasBeenSet = true; m_byState = std::move(value); }
101 inline ListBackupJobsRequest& WithByState(const BackupJobState& value) { SetByState(value); return *this;}
102 inline ListBackupJobsRequest& WithByState(BackupJobState&& value) { SetByState(std::move(value)); return *this;}
104
106
111 inline const Aws::String& GetByBackupVaultName() const{ return m_byBackupVaultName; }
112 inline bool ByBackupVaultNameHasBeenSet() const { return m_byBackupVaultNameHasBeenSet; }
113 inline void SetByBackupVaultName(const Aws::String& value) { m_byBackupVaultNameHasBeenSet = true; m_byBackupVaultName = value; }
114 inline void SetByBackupVaultName(Aws::String&& value) { m_byBackupVaultNameHasBeenSet = true; m_byBackupVaultName = std::move(value); }
115 inline void SetByBackupVaultName(const char* value) { m_byBackupVaultNameHasBeenSet = true; m_byBackupVaultName.assign(value); }
117 inline ListBackupJobsRequest& WithByBackupVaultName(Aws::String&& value) { SetByBackupVaultName(std::move(value)); return *this;}
118 inline ListBackupJobsRequest& WithByBackupVaultName(const char* value) { SetByBackupVaultName(value); return *this;}
120
122
125 inline const Aws::Utils::DateTime& GetByCreatedBefore() const{ return m_byCreatedBefore; }
126 inline bool ByCreatedBeforeHasBeenSet() const { return m_byCreatedBeforeHasBeenSet; }
127 inline void SetByCreatedBefore(const Aws::Utils::DateTime& value) { m_byCreatedBeforeHasBeenSet = true; m_byCreatedBefore = value; }
128 inline void SetByCreatedBefore(Aws::Utils::DateTime&& value) { m_byCreatedBeforeHasBeenSet = true; m_byCreatedBefore = std::move(value); }
130 inline ListBackupJobsRequest& WithByCreatedBefore(Aws::Utils::DateTime&& value) { SetByCreatedBefore(std::move(value)); return *this;}
132
134
137 inline const Aws::Utils::DateTime& GetByCreatedAfter() const{ return m_byCreatedAfter; }
138 inline bool ByCreatedAfterHasBeenSet() const { return m_byCreatedAfterHasBeenSet; }
139 inline void SetByCreatedAfter(const Aws::Utils::DateTime& value) { m_byCreatedAfterHasBeenSet = true; m_byCreatedAfter = value; }
140 inline void SetByCreatedAfter(Aws::Utils::DateTime&& value) { m_byCreatedAfterHasBeenSet = true; m_byCreatedAfter = std::move(value); }
142 inline ListBackupJobsRequest& WithByCreatedAfter(Aws::Utils::DateTime&& value) { SetByCreatedAfter(std::move(value)); return *this;}
144
146
165 inline const Aws::String& GetByResourceType() const{ return m_byResourceType; }
166 inline bool ByResourceTypeHasBeenSet() const { return m_byResourceTypeHasBeenSet; }
167 inline void SetByResourceType(const Aws::String& value) { m_byResourceTypeHasBeenSet = true; m_byResourceType = value; }
168 inline void SetByResourceType(Aws::String&& value) { m_byResourceTypeHasBeenSet = true; m_byResourceType = std::move(value); }
169 inline void SetByResourceType(const char* value) { m_byResourceTypeHasBeenSet = true; m_byResourceType.assign(value); }
170 inline ListBackupJobsRequest& WithByResourceType(const Aws::String& value) { SetByResourceType(value); return *this;}
171 inline ListBackupJobsRequest& WithByResourceType(Aws::String&& value) { SetByResourceType(std::move(value)); return *this;}
172 inline ListBackupJobsRequest& WithByResourceType(const char* value) { SetByResourceType(value); return *this;}
174
176
181 inline const Aws::String& GetByAccountId() const{ return m_byAccountId; }
182 inline bool ByAccountIdHasBeenSet() const { return m_byAccountIdHasBeenSet; }
183 inline void SetByAccountId(const Aws::String& value) { m_byAccountIdHasBeenSet = true; m_byAccountId = value; }
184 inline void SetByAccountId(Aws::String&& value) { m_byAccountIdHasBeenSet = true; m_byAccountId = std::move(value); }
185 inline void SetByAccountId(const char* value) { m_byAccountIdHasBeenSet = true; m_byAccountId.assign(value); }
186 inline ListBackupJobsRequest& WithByAccountId(const Aws::String& value) { SetByAccountId(value); return *this;}
187 inline ListBackupJobsRequest& WithByAccountId(Aws::String&& value) { SetByAccountId(std::move(value)); return *this;}
188 inline ListBackupJobsRequest& WithByAccountId(const char* value) { SetByAccountId(value); return *this;}
190
192
196 inline const Aws::Utils::DateTime& GetByCompleteAfter() const{ return m_byCompleteAfter; }
197 inline bool ByCompleteAfterHasBeenSet() const { return m_byCompleteAfterHasBeenSet; }
198 inline void SetByCompleteAfter(const Aws::Utils::DateTime& value) { m_byCompleteAfterHasBeenSet = true; m_byCompleteAfter = value; }
199 inline void SetByCompleteAfter(Aws::Utils::DateTime&& value) { m_byCompleteAfterHasBeenSet = true; m_byCompleteAfter = std::move(value); }
201 inline ListBackupJobsRequest& WithByCompleteAfter(Aws::Utils::DateTime&& value) { SetByCompleteAfter(std::move(value)); return *this;}
203
205
209 inline const Aws::Utils::DateTime& GetByCompleteBefore() const{ return m_byCompleteBefore; }
210 inline bool ByCompleteBeforeHasBeenSet() const { return m_byCompleteBeforeHasBeenSet; }
211 inline void SetByCompleteBefore(const Aws::Utils::DateTime& value) { m_byCompleteBeforeHasBeenSet = true; m_byCompleteBefore = value; }
212 inline void SetByCompleteBefore(Aws::Utils::DateTime&& value) { m_byCompleteBeforeHasBeenSet = true; m_byCompleteBefore = std::move(value); }
214 inline ListBackupJobsRequest& WithByCompleteBefore(Aws::Utils::DateTime&& value) { SetByCompleteBefore(std::move(value)); return *this;}
216
218
221 inline const Aws::String& GetByParentJobId() const{ return m_byParentJobId; }
222 inline bool ByParentJobIdHasBeenSet() const { return m_byParentJobIdHasBeenSet; }
223 inline void SetByParentJobId(const Aws::String& value) { m_byParentJobIdHasBeenSet = true; m_byParentJobId = value; }
224 inline void SetByParentJobId(Aws::String&& value) { m_byParentJobIdHasBeenSet = true; m_byParentJobId = std::move(value); }
225 inline void SetByParentJobId(const char* value) { m_byParentJobIdHasBeenSet = true; m_byParentJobId.assign(value); }
226 inline ListBackupJobsRequest& WithByParentJobId(const Aws::String& value) { SetByParentJobId(value); return *this;}
227 inline ListBackupJobsRequest& WithByParentJobId(Aws::String&& value) { SetByParentJobId(std::move(value)); return *this;}
228 inline ListBackupJobsRequest& WithByParentJobId(const char* value) { SetByParentJobId(value); return *this;}
230
232
242 inline const Aws::String& GetByMessageCategory() const{ return m_byMessageCategory; }
243 inline bool ByMessageCategoryHasBeenSet() const { return m_byMessageCategoryHasBeenSet; }
244 inline void SetByMessageCategory(const Aws::String& value) { m_byMessageCategoryHasBeenSet = true; m_byMessageCategory = value; }
245 inline void SetByMessageCategory(Aws::String&& value) { m_byMessageCategoryHasBeenSet = true; m_byMessageCategory = std::move(value); }
246 inline void SetByMessageCategory(const char* value) { m_byMessageCategoryHasBeenSet = true; m_byMessageCategory.assign(value); }
248 inline ListBackupJobsRequest& WithByMessageCategory(Aws::String&& value) { SetByMessageCategory(std::move(value)); return *this;}
249 inline ListBackupJobsRequest& WithByMessageCategory(const char* value) { SetByMessageCategory(value); return *this;}
251 private:
252
253 Aws::String m_nextToken;
254 bool m_nextTokenHasBeenSet = false;
255
256 int m_maxResults;
257 bool m_maxResultsHasBeenSet = false;
258
259 Aws::String m_byResourceArn;
260 bool m_byResourceArnHasBeenSet = false;
261
262 BackupJobState m_byState;
263 bool m_byStateHasBeenSet = false;
264
265 Aws::String m_byBackupVaultName;
266 bool m_byBackupVaultNameHasBeenSet = false;
267
268 Aws::Utils::DateTime m_byCreatedBefore;
269 bool m_byCreatedBeforeHasBeenSet = false;
270
271 Aws::Utils::DateTime m_byCreatedAfter;
272 bool m_byCreatedAfterHasBeenSet = false;
273
274 Aws::String m_byResourceType;
275 bool m_byResourceTypeHasBeenSet = false;
276
277 Aws::String m_byAccountId;
278 bool m_byAccountIdHasBeenSet = false;
279
280 Aws::Utils::DateTime m_byCompleteAfter;
281 bool m_byCompleteAfterHasBeenSet = false;
282
283 Aws::Utils::DateTime m_byCompleteBefore;
284 bool m_byCompleteBeforeHasBeenSet = false;
285
286 Aws::String m_byParentJobId;
287 bool m_byParentJobIdHasBeenSet = false;
288
289 Aws::String m_byMessageCategory;
290 bool m_byMessageCategoryHasBeenSet = false;
291 };
292
293} // namespace Model
294} // namespace Backup
295} // namespace Aws
ListBackupJobsRequest & WithByCreatedAfter(const Aws::Utils::DateTime &value)
ListBackupJobsRequest & WithByCreatedBefore(Aws::Utils::DateTime &&value)
ListBackupJobsRequest & WithByCreatedBefore(const Aws::Utils::DateTime &value)
void SetByCompleteBefore(Aws::Utils::DateTime &&value)
void SetByCreatedBefore(Aws::Utils::DateTime &&value)
ListBackupJobsRequest & WithNextToken(const char *value)
ListBackupJobsRequest & WithByBackupVaultName(const Aws::String &value)
ListBackupJobsRequest & WithByResourceType(const Aws::String &value)
void SetByCreatedAfter(const Aws::Utils::DateTime &value)
void SetByResourceType(const Aws::String &value)
const Aws::Utils::DateTime & GetByCreatedBefore() const
void SetNextToken(const Aws::String &value)
ListBackupJobsRequest & WithByResourceType(Aws::String &&value)
void SetByCreatedAfter(Aws::Utils::DateTime &&value)
void SetByResourceArn(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
void SetByCompleteAfter(Aws::Utils::DateTime &&value)
void SetByState(const BackupJobState &value)
AWS_BACKUP_API Aws::String SerializePayload() const override
void SetByParentJobId(const Aws::String &value)
ListBackupJobsRequest & WithByMessageCategory(const char *value)
const Aws::Utils::DateTime & GetByCreatedAfter() const
ListBackupJobsRequest & WithByCreatedAfter(Aws::Utils::DateTime &&value)
ListBackupJobsRequest & WithNextToken(const Aws::String &value)
ListBackupJobsRequest & WithByResourceArn(const char *value)
ListBackupJobsRequest & WithByCompleteBefore(Aws::Utils::DateTime &&value)
void SetByCreatedBefore(const Aws::Utils::DateTime &value)
ListBackupJobsRequest & WithByResourceArn(Aws::String &&value)
AWS_BACKUP_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
ListBackupJobsRequest & WithByAccountId(Aws::String &&value)
void SetByMessageCategory(const Aws::String &value)
ListBackupJobsRequest & WithByCompleteAfter(Aws::Utils::DateTime &&value)
ListBackupJobsRequest & WithByParentJobId(const Aws::String &value)
ListBackupJobsRequest & WithByParentJobId(const char *value)
ListBackupJobsRequest & WithByState(BackupJobState &&value)
ListBackupJobsRequest & WithByResourceType(const char *value)
ListBackupJobsRequest & WithByCompleteAfter(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetByCompleteBefore() const
void SetByCompleteBefore(const Aws::Utils::DateTime &value)
ListBackupJobsRequest & WithNextToken(Aws::String &&value)
const Aws::Utils::DateTime & GetByCompleteAfter() const
ListBackupJobsRequest & WithByResourceArn(const Aws::String &value)
ListBackupJobsRequest & WithByAccountId(const Aws::String &value)
ListBackupJobsRequest & WithByBackupVaultName(Aws::String &&value)
void SetByCompleteAfter(const Aws::Utils::DateTime &value)
ListBackupJobsRequest & WithByMessageCategory(const Aws::String &value)
ListBackupJobsRequest & WithByMessageCategory(Aws::String &&value)
ListBackupJobsRequest & WithByBackupVaultName(const char *value)
ListBackupJobsRequest & WithByState(const BackupJobState &value)
void SetByAccountId(const Aws::String &value)
void SetByBackupVaultName(const Aws::String &value)
ListBackupJobsRequest & WithByAccountId(const char *value)
ListBackupJobsRequest & WithByCompleteBefore(const Aws::Utils::DateTime &value)
ListBackupJobsRequest & WithByParentJobId(Aws::String &&value)
ListBackupJobsRequest & WithMaxResults(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String