AWS SDK for C++  1.9.4
AWS SDK for C++
ListRestoreJobsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Http
17 {
18  class URI;
19 } //namespace Http
20 namespace Backup
21 {
22 namespace Model
23 {
24 
28  {
29  public:
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 "ListRestoreJobs"; }
37 
38  Aws::String SerializePayload() const override;
39 
40  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
41 
42 
49  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
50 
57  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
58 
65  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
66 
73  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
74 
81  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
82 
89  inline ListRestoreJobsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
90 
97  inline ListRestoreJobsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
98 
105  inline ListRestoreJobsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
106 
107 
111  inline int GetMaxResults() const{ return m_maxResults; }
112 
116  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
117 
121  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
122 
126  inline ListRestoreJobsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
127 
128 
133  inline const Aws::String& GetByAccountId() const{ return m_byAccountId; }
134 
139  inline bool ByAccountIdHasBeenSet() const { return m_byAccountIdHasBeenSet; }
140 
145  inline void SetByAccountId(const Aws::String& value) { m_byAccountIdHasBeenSet = true; m_byAccountId = value; }
146 
151  inline void SetByAccountId(Aws::String&& value) { m_byAccountIdHasBeenSet = true; m_byAccountId = std::move(value); }
152 
157  inline void SetByAccountId(const char* value) { m_byAccountIdHasBeenSet = true; m_byAccountId.assign(value); }
158 
163  inline ListRestoreJobsRequest& WithByAccountId(const Aws::String& value) { SetByAccountId(value); return *this;}
164 
169  inline ListRestoreJobsRequest& WithByAccountId(Aws::String&& value) { SetByAccountId(std::move(value)); return *this;}
170 
175  inline ListRestoreJobsRequest& WithByAccountId(const char* value) { SetByAccountId(value); return *this;}
176 
177 
181  inline const Aws::Utils::DateTime& GetByCreatedBefore() const{ return m_byCreatedBefore; }
182 
186  inline bool ByCreatedBeforeHasBeenSet() const { return m_byCreatedBeforeHasBeenSet; }
187 
191  inline void SetByCreatedBefore(const Aws::Utils::DateTime& value) { m_byCreatedBeforeHasBeenSet = true; m_byCreatedBefore = value; }
192 
196  inline void SetByCreatedBefore(Aws::Utils::DateTime&& value) { m_byCreatedBeforeHasBeenSet = true; m_byCreatedBefore = std::move(value); }
197 
201  inline ListRestoreJobsRequest& WithByCreatedBefore(const Aws::Utils::DateTime& value) { SetByCreatedBefore(value); return *this;}
202 
206  inline ListRestoreJobsRequest& WithByCreatedBefore(Aws::Utils::DateTime&& value) { SetByCreatedBefore(std::move(value)); return *this;}
207 
208 
212  inline const Aws::Utils::DateTime& GetByCreatedAfter() const{ return m_byCreatedAfter; }
213 
217  inline bool ByCreatedAfterHasBeenSet() const { return m_byCreatedAfterHasBeenSet; }
218 
222  inline void SetByCreatedAfter(const Aws::Utils::DateTime& value) { m_byCreatedAfterHasBeenSet = true; m_byCreatedAfter = value; }
223 
227  inline void SetByCreatedAfter(Aws::Utils::DateTime&& value) { m_byCreatedAfterHasBeenSet = true; m_byCreatedAfter = std::move(value); }
228 
232  inline ListRestoreJobsRequest& WithByCreatedAfter(const Aws::Utils::DateTime& value) { SetByCreatedAfter(value); return *this;}
233 
237  inline ListRestoreJobsRequest& WithByCreatedAfter(Aws::Utils::DateTime&& value) { SetByCreatedAfter(std::move(value)); return *this;}
238 
239 
243  inline const RestoreJobStatus& GetByStatus() const{ return m_byStatus; }
244 
248  inline bool ByStatusHasBeenSet() const { return m_byStatusHasBeenSet; }
249 
253  inline void SetByStatus(const RestoreJobStatus& value) { m_byStatusHasBeenSet = true; m_byStatus = value; }
254 
258  inline void SetByStatus(RestoreJobStatus&& value) { m_byStatusHasBeenSet = true; m_byStatus = std::move(value); }
259 
263  inline ListRestoreJobsRequest& WithByStatus(const RestoreJobStatus& value) { SetByStatus(value); return *this;}
264 
268  inline ListRestoreJobsRequest& WithByStatus(RestoreJobStatus&& value) { SetByStatus(std::move(value)); return *this;}
269 
270  private:
271 
272  Aws::String m_nextToken;
273  bool m_nextTokenHasBeenSet;
274 
275  int m_maxResults;
276  bool m_maxResultsHasBeenSet;
277 
278  Aws::String m_byAccountId;
279  bool m_byAccountIdHasBeenSet;
280 
281  Aws::Utils::DateTime m_byCreatedBefore;
282  bool m_byCreatedBeforeHasBeenSet;
283 
284  Aws::Utils::DateTime m_byCreatedAfter;
285  bool m_byCreatedAfterHasBeenSet;
286 
287  RestoreJobStatus m_byStatus;
288  bool m_byStatusHasBeenSet;
289  };
290 
291 } // namespace Model
292 } // namespace Backup
293 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::Backup::Model::ListRestoreJobsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListRestoreJobsRequest.h:116
Aws::Http::URI
Definition: URI.h:32
Aws::Backup::Model::ListRestoreJobsRequest::SetByCreatedAfter
void SetByCreatedAfter(Aws::Utils::DateTime &&value)
Definition: ListRestoreJobsRequest.h:227
Aws::Backup::Model::ListRestoreJobsRequest::WithNextToken
ListRestoreJobsRequest & WithNextToken(const char *value)
Definition: ListRestoreJobsRequest.h:105
Aws::Backup::Model::ListRestoreJobsRequest::ByAccountIdHasBeenSet
bool ByAccountIdHasBeenSet() const
Definition: ListRestoreJobsRequest.h:139
Aws::Backup::Model::ListRestoreJobsRequest::SetByAccountId
void SetByAccountId(const char *value)
Definition: ListRestoreJobsRequest.h:157
Aws::Backup::Model::ListRestoreJobsRequest::SetByCreatedBefore
void SetByCreatedBefore(const Aws::Utils::DateTime &value)
Definition: ListRestoreJobsRequest.h:191
AWS_BACKUP_API
#define AWS_BACKUP_API
Definition: Backup_EXPORTS.h:28
DateTime.h
Aws::Backup::Model::ListRestoreJobsRequest::WithNextToken
ListRestoreJobsRequest & WithNextToken(const Aws::String &value)
Definition: ListRestoreJobsRequest.h:89
Aws::Backup::Model::ListRestoreJobsRequest::ByCreatedBeforeHasBeenSet
bool ByCreatedBeforeHasBeenSet() const
Definition: ListRestoreJobsRequest.h:186
Aws::Backup::Model::ListRestoreJobsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Backup::Model::ListRestoreJobsRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::Backup::Model::ListRestoreJobsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListRestoreJobsRequest.h:73
Aws::Backup::Model::RestoreJobStatus
RestoreJobStatus
Definition: RestoreJobStatus.h:17
BackupRequest.h
Aws::Backup::Model::ListRestoreJobsRequest::WithByCreatedAfter
ListRestoreJobsRequest & WithByCreatedAfter(Aws::Utils::DateTime &&value)
Definition: ListRestoreJobsRequest.h:237
Aws::Backup::Model::ListRestoreJobsRequest::ByStatusHasBeenSet
bool ByStatusHasBeenSet() const
Definition: ListRestoreJobsRequest.h:248
Aws::Backup::Model::ListRestoreJobsRequest::GetByCreatedAfter
const Aws::Utils::DateTime & GetByCreatedAfter() const
Definition: ListRestoreJobsRequest.h:212
Aws::Backup::Model::ListRestoreJobsRequest::WithByAccountId
ListRestoreJobsRequest & WithByAccountId(const Aws::String &value)
Definition: ListRestoreJobsRequest.h:163
Aws::Backup::Model::ListRestoreJobsRequest::SetByAccountId
void SetByAccountId(const Aws::String &value)
Definition: ListRestoreJobsRequest.h:145
Aws::Backup::Model::ListRestoreJobsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListRestoreJobsRequest.h:36
Aws::Backup::Model::ListRestoreJobsRequest::SetByStatus
void SetByStatus(RestoreJobStatus &&value)
Definition: ListRestoreJobsRequest.h:258
Aws::Backup::Model::ListRestoreJobsRequest::SetByCreatedBefore
void SetByCreatedBefore(Aws::Utils::DateTime &&value)
Definition: ListRestoreJobsRequest.h:196
Aws::Backup::Model::ListRestoreJobsRequest::WithNextToken
ListRestoreJobsRequest & WithNextToken(Aws::String &&value)
Definition: ListRestoreJobsRequest.h:97
Aws::Backup::Model::ListRestoreJobsRequest::GetMaxResults
int GetMaxResults() const
Definition: ListRestoreJobsRequest.h:111
Aws::Backup::BackupRequest
Definition: BackupRequest.h:17
Aws::Backup::Model::ListRestoreJobsRequest::ByCreatedAfterHasBeenSet
bool ByCreatedAfterHasBeenSet() const
Definition: ListRestoreJobsRequest.h:217
Aws::Backup::Model::ListRestoreJobsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListRestoreJobsRequest.h:121
AWSString.h
Aws::Backup::Model::ListRestoreJobsRequest::GetByCreatedBefore
const Aws::Utils::DateTime & GetByCreatedBefore() const
Definition: ListRestoreJobsRequest.h:181
Aws::Backup::Model::ListRestoreJobsRequest::WithByStatus
ListRestoreJobsRequest & WithByStatus(const RestoreJobStatus &value)
Definition: ListRestoreJobsRequest.h:263
Aws::Backup::Model::ListRestoreJobsRequest::WithByCreatedAfter
ListRestoreJobsRequest & WithByCreatedAfter(const Aws::Utils::DateTime &value)
Definition: ListRestoreJobsRequest.h:232
Aws::Backup::Model::ListRestoreJobsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListRestoreJobsRequest.h:81
Aws::Backup::Model::ListRestoreJobsRequest::SetByAccountId
void SetByAccountId(Aws::String &&value)
Definition: ListRestoreJobsRequest.h:151
RestoreJobStatus.h
Aws::Backup::Model::ListRestoreJobsRequest::WithByCreatedBefore
ListRestoreJobsRequest & WithByCreatedBefore(Aws::Utils::DateTime &&value)
Definition: ListRestoreJobsRequest.h:206
Aws::Backup::Model::ListRestoreJobsRequest::GetByAccountId
const Aws::String & GetByAccountId() const
Definition: ListRestoreJobsRequest.h:133
Backup_EXPORTS.h
Aws::Backup::Model::ListRestoreJobsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListRestoreJobsRequest.h:49
Aws::Backup::Model::ListRestoreJobsRequest::SetByCreatedAfter
void SetByCreatedAfter(const Aws::Utils::DateTime &value)
Definition: ListRestoreJobsRequest.h:222
Aws::Backup::Model::ListRestoreJobsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListRestoreJobsRequest.h:57
Aws
Definition: AccessManagementClient.h:15
Aws::Backup::Model::ListRestoreJobsRequest::SetByStatus
void SetByStatus(const RestoreJobStatus &value)
Definition: ListRestoreJobsRequest.h:253
Aws::Backup::Model::ListRestoreJobsRequest::GetByStatus
const RestoreJobStatus & GetByStatus() const
Definition: ListRestoreJobsRequest.h:243
Aws::Backup::Model::ListRestoreJobsRequest::WithByAccountId
ListRestoreJobsRequest & WithByAccountId(const char *value)
Definition: ListRestoreJobsRequest.h:175
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Backup::Model::ListRestoreJobsRequest::WithByAccountId
ListRestoreJobsRequest & WithByAccountId(Aws::String &&value)
Definition: ListRestoreJobsRequest.h:169
Aws::Backup::Model::ListRestoreJobsRequest::WithByCreatedBefore
ListRestoreJobsRequest & WithByCreatedBefore(const Aws::Utils::DateTime &value)
Definition: ListRestoreJobsRequest.h:201
Aws::Backup::Model::ListRestoreJobsRequest::WithMaxResults
ListRestoreJobsRequest & WithMaxResults(int value)
Definition: ListRestoreJobsRequest.h:126
Aws::Backup::Model::ListRestoreJobsRequest::ListRestoreJobsRequest
ListRestoreJobsRequest()
Aws::Backup::Model::ListRestoreJobsRequest::WithByStatus
ListRestoreJobsRequest & WithByStatus(RestoreJobStatus &&value)
Definition: ListRestoreJobsRequest.h:268
Aws::Backup::Model::ListRestoreJobsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListRestoreJobsRequest.h:65
Aws::Backup::Model::ListRestoreJobsRequest
Definition: ListRestoreJobsRequest.h:28