AWS SDK for C++  1.9.1
AWS SDK for C++
ListCopyJobsRequest.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 "ListCopyJobs"; }
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 ListCopyJobsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
90 
97  inline ListCopyJobsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
98 
105  inline ListCopyJobsRequest& 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 ListCopyJobsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
127 
128 
133  inline const Aws::String& GetByResourceArn() const{ return m_byResourceArn; }
134 
139  inline bool ByResourceArnHasBeenSet() const { return m_byResourceArnHasBeenSet; }
140 
145  inline void SetByResourceArn(const Aws::String& value) { m_byResourceArnHasBeenSet = true; m_byResourceArn = value; }
146 
151  inline void SetByResourceArn(Aws::String&& value) { m_byResourceArnHasBeenSet = true; m_byResourceArn = std::move(value); }
152 
157  inline void SetByResourceArn(const char* value) { m_byResourceArnHasBeenSet = true; m_byResourceArn.assign(value); }
158 
163  inline ListCopyJobsRequest& WithByResourceArn(const Aws::String& value) { SetByResourceArn(value); return *this;}
164 
169  inline ListCopyJobsRequest& WithByResourceArn(Aws::String&& value) { SetByResourceArn(std::move(value)); return *this;}
170 
175  inline ListCopyJobsRequest& WithByResourceArn(const char* value) { SetByResourceArn(value); return *this;}
176 
177 
181  inline const CopyJobState& GetByState() const{ return m_byState; }
182 
186  inline bool ByStateHasBeenSet() const { return m_byStateHasBeenSet; }
187 
191  inline void SetByState(const CopyJobState& value) { m_byStateHasBeenSet = true; m_byState = value; }
192 
196  inline void SetByState(CopyJobState&& value) { m_byStateHasBeenSet = true; m_byState = std::move(value); }
197 
201  inline ListCopyJobsRequest& WithByState(const CopyJobState& value) { SetByState(value); return *this;}
202 
206  inline ListCopyJobsRequest& WithByState(CopyJobState&& value) { SetByState(std::move(value)); return *this;}
207 
208 
212  inline const Aws::Utils::DateTime& GetByCreatedBefore() const{ return m_byCreatedBefore; }
213 
217  inline bool ByCreatedBeforeHasBeenSet() const { return m_byCreatedBeforeHasBeenSet; }
218 
222  inline void SetByCreatedBefore(const Aws::Utils::DateTime& value) { m_byCreatedBeforeHasBeenSet = true; m_byCreatedBefore = value; }
223 
227  inline void SetByCreatedBefore(Aws::Utils::DateTime&& value) { m_byCreatedBeforeHasBeenSet = true; m_byCreatedBefore = std::move(value); }
228 
232  inline ListCopyJobsRequest& WithByCreatedBefore(const Aws::Utils::DateTime& value) { SetByCreatedBefore(value); return *this;}
233 
237  inline ListCopyJobsRequest& WithByCreatedBefore(Aws::Utils::DateTime&& value) { SetByCreatedBefore(std::move(value)); return *this;}
238 
239 
243  inline const Aws::Utils::DateTime& GetByCreatedAfter() const{ return m_byCreatedAfter; }
244 
248  inline bool ByCreatedAfterHasBeenSet() const { return m_byCreatedAfterHasBeenSet; }
249 
253  inline void SetByCreatedAfter(const Aws::Utils::DateTime& value) { m_byCreatedAfterHasBeenSet = true; m_byCreatedAfter = value; }
254 
258  inline void SetByCreatedAfter(Aws::Utils::DateTime&& value) { m_byCreatedAfterHasBeenSet = true; m_byCreatedAfter = std::move(value); }
259 
263  inline ListCopyJobsRequest& WithByCreatedAfter(const Aws::Utils::DateTime& value) { SetByCreatedAfter(value); return *this;}
264 
268  inline ListCopyJobsRequest& WithByCreatedAfter(Aws::Utils::DateTime&& value) { SetByCreatedAfter(std::move(value)); return *this;}
269 
270 
280  inline const Aws::String& GetByResourceType() const{ return m_byResourceType; }
281 
291  inline bool ByResourceTypeHasBeenSet() const { return m_byResourceTypeHasBeenSet; }
292 
302  inline void SetByResourceType(const Aws::String& value) { m_byResourceTypeHasBeenSet = true; m_byResourceType = value; }
303 
313  inline void SetByResourceType(Aws::String&& value) { m_byResourceTypeHasBeenSet = true; m_byResourceType = std::move(value); }
314 
324  inline void SetByResourceType(const char* value) { m_byResourceTypeHasBeenSet = true; m_byResourceType.assign(value); }
325 
335  inline ListCopyJobsRequest& WithByResourceType(const Aws::String& value) { SetByResourceType(value); return *this;}
336 
346  inline ListCopyJobsRequest& WithByResourceType(Aws::String&& value) { SetByResourceType(std::move(value)); return *this;}
347 
357  inline ListCopyJobsRequest& WithByResourceType(const char* value) { SetByResourceType(value); return *this;}
358 
359 
365  inline const Aws::String& GetByDestinationVaultArn() const{ return m_byDestinationVaultArn; }
366 
372  inline bool ByDestinationVaultArnHasBeenSet() const { return m_byDestinationVaultArnHasBeenSet; }
373 
379  inline void SetByDestinationVaultArn(const Aws::String& value) { m_byDestinationVaultArnHasBeenSet = true; m_byDestinationVaultArn = value; }
380 
386  inline void SetByDestinationVaultArn(Aws::String&& value) { m_byDestinationVaultArnHasBeenSet = true; m_byDestinationVaultArn = std::move(value); }
387 
393  inline void SetByDestinationVaultArn(const char* value) { m_byDestinationVaultArnHasBeenSet = true; m_byDestinationVaultArn.assign(value); }
394 
400  inline ListCopyJobsRequest& WithByDestinationVaultArn(const Aws::String& value) { SetByDestinationVaultArn(value); return *this;}
401 
407  inline ListCopyJobsRequest& WithByDestinationVaultArn(Aws::String&& value) { SetByDestinationVaultArn(std::move(value)); return *this;}
408 
414  inline ListCopyJobsRequest& WithByDestinationVaultArn(const char* value) { SetByDestinationVaultArn(value); return *this;}
415 
416 
421  inline const Aws::String& GetByAccountId() const{ return m_byAccountId; }
422 
427  inline bool ByAccountIdHasBeenSet() const { return m_byAccountIdHasBeenSet; }
428 
433  inline void SetByAccountId(const Aws::String& value) { m_byAccountIdHasBeenSet = true; m_byAccountId = value; }
434 
439  inline void SetByAccountId(Aws::String&& value) { m_byAccountIdHasBeenSet = true; m_byAccountId = std::move(value); }
440 
445  inline void SetByAccountId(const char* value) { m_byAccountIdHasBeenSet = true; m_byAccountId.assign(value); }
446 
451  inline ListCopyJobsRequest& WithByAccountId(const Aws::String& value) { SetByAccountId(value); return *this;}
452 
457  inline ListCopyJobsRequest& WithByAccountId(Aws::String&& value) { SetByAccountId(std::move(value)); return *this;}
458 
463  inline ListCopyJobsRequest& WithByAccountId(const char* value) { SetByAccountId(value); return *this;}
464 
465  private:
466 
467  Aws::String m_nextToken;
468  bool m_nextTokenHasBeenSet;
469 
470  int m_maxResults;
471  bool m_maxResultsHasBeenSet;
472 
473  Aws::String m_byResourceArn;
474  bool m_byResourceArnHasBeenSet;
475 
476  CopyJobState m_byState;
477  bool m_byStateHasBeenSet;
478 
479  Aws::Utils::DateTime m_byCreatedBefore;
480  bool m_byCreatedBeforeHasBeenSet;
481 
482  Aws::Utils::DateTime m_byCreatedAfter;
483  bool m_byCreatedAfterHasBeenSet;
484 
485  Aws::String m_byResourceType;
486  bool m_byResourceTypeHasBeenSet;
487 
488  Aws::String m_byDestinationVaultArn;
489  bool m_byDestinationVaultArnHasBeenSet;
490 
491  Aws::String m_byAccountId;
492  bool m_byAccountIdHasBeenSet;
493  };
494 
495 } // namespace Model
496 } // namespace Backup
497 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::Backup::Model::ListCopyJobsRequest::ByCreatedBeforeHasBeenSet
bool ByCreatedBeforeHasBeenSet() const
Definition: ListCopyJobsRequest.h:217
Aws::Backup::Model::ListCopyJobsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListCopyJobsRequest.h:65
Aws::Backup::Model::ListCopyJobsRequest::WithByResourceType
ListCopyJobsRequest & WithByResourceType(const char *value)
Definition: ListCopyJobsRequest.h:357
Aws::Backup::Model::ListCopyJobsRequest::ByStateHasBeenSet
bool ByStateHasBeenSet() const
Definition: ListCopyJobsRequest.h:186
Aws::Http::URI
Definition: URI.h:32
Aws::Backup::Model::ListCopyJobsRequest::SetByDestinationVaultArn
void SetByDestinationVaultArn(const char *value)
Definition: ListCopyJobsRequest.h:393
Aws::Backup::Model::ListCopyJobsRequest::SetByAccountId
void SetByAccountId(const char *value)
Definition: ListCopyJobsRequest.h:445
Aws::Backup::Model::ListCopyJobsRequest::ListCopyJobsRequest
ListCopyJobsRequest()
Aws::Backup::Model::ListCopyJobsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListCopyJobsRequest.h:49
Aws::Backup::Model::ListCopyJobsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListCopyJobsRequest.h:116
Aws::Backup::Model::ListCopyJobsRequest::WithByCreatedAfter
ListCopyJobsRequest & WithByCreatedAfter(const Aws::Utils::DateTime &value)
Definition: ListCopyJobsRequest.h:263
Aws::Backup::Model::ListCopyJobsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Backup::Model::ListCopyJobsRequest::WithByDestinationVaultArn
ListCopyJobsRequest & WithByDestinationVaultArn(const Aws::String &value)
Definition: ListCopyJobsRequest.h:400
Aws::Backup::Model::ListCopyJobsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListCopyJobsRequest.h:73
Aws::Backup::Model::ListCopyJobsRequest::WithByState
ListCopyJobsRequest & WithByState(const CopyJobState &value)
Definition: ListCopyJobsRequest.h:201
Aws::Backup::Model::ListCopyJobsRequest::SetByState
void SetByState(const CopyJobState &value)
Definition: ListCopyJobsRequest.h:191
AWS_BACKUP_API
#define AWS_BACKUP_API
Definition: Backup_EXPORTS.h:28
DateTime.h
Aws::Backup::Model::ListCopyJobsRequest::SetByAccountId
void SetByAccountId(Aws::String &&value)
Definition: ListCopyJobsRequest.h:439
Aws::Backup::Model::ListCopyJobsRequest::SetByCreatedAfter
void SetByCreatedAfter(Aws::Utils::DateTime &&value)
Definition: ListCopyJobsRequest.h:258
Aws::Backup::Model::ListCopyJobsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListCopyJobsRequest.h:57
Aws::Backup::Model::ListCopyJobsRequest::WithByAccountId
ListCopyJobsRequest & WithByAccountId(const char *value)
Definition: ListCopyJobsRequest.h:463
Aws::Backup::Model::ListCopyJobsRequest::GetMaxResults
int GetMaxResults() const
Definition: ListCopyJobsRequest.h:111
Aws::Backup::Model::ListCopyJobsRequest::WithByDestinationVaultArn
ListCopyJobsRequest & WithByDestinationVaultArn(const char *value)
Definition: ListCopyJobsRequest.h:414
Aws::Backup::Model::ListCopyJobsRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
CopyJobState.h
Aws::Backup::Model::ListCopyJobsRequest::ByAccountIdHasBeenSet
bool ByAccountIdHasBeenSet() const
Definition: ListCopyJobsRequest.h:427
Aws::Backup::Model::ListCopyJobsRequest::SetByDestinationVaultArn
void SetByDestinationVaultArn(const Aws::String &value)
Definition: ListCopyJobsRequest.h:379
Aws::Backup::Model::ListCopyJobsRequest::WithByResourceType
ListCopyJobsRequest & WithByResourceType(Aws::String &&value)
Definition: ListCopyJobsRequest.h:346
Aws::Backup::Model::ListCopyJobsRequest::WithNextToken
ListCopyJobsRequest & WithNextToken(Aws::String &&value)
Definition: ListCopyJobsRequest.h:97
BackupRequest.h
Aws::Backup::Model::ListCopyJobsRequest::WithByCreatedBefore
ListCopyJobsRequest & WithByCreatedBefore(const Aws::Utils::DateTime &value)
Definition: ListCopyJobsRequest.h:232
Aws::Backup::Model::ListCopyJobsRequest::WithMaxResults
ListCopyJobsRequest & WithMaxResults(int value)
Definition: ListCopyJobsRequest.h:126
Aws::Backup::Model::ListCopyJobsRequest::SetByDestinationVaultArn
void SetByDestinationVaultArn(Aws::String &&value)
Definition: ListCopyJobsRequest.h:386
Aws::Backup::Model::ListCopyJobsRequest::SetByCreatedAfter
void SetByCreatedAfter(const Aws::Utils::DateTime &value)
Definition: ListCopyJobsRequest.h:253
Aws::Backup::Model::ListCopyJobsRequest::GetByResourceType
const Aws::String & GetByResourceType() const
Definition: ListCopyJobsRequest.h:280
Aws::Backup::Model::ListCopyJobsRequest::SetByResourceType
void SetByResourceType(const char *value)
Definition: ListCopyJobsRequest.h:324
Aws::Backup::Model::ListCopyJobsRequest::ByResourceTypeHasBeenSet
bool ByResourceTypeHasBeenSet() const
Definition: ListCopyJobsRequest.h:291
Aws::Backup::Model::ListCopyJobsRequest::ByCreatedAfterHasBeenSet
bool ByCreatedAfterHasBeenSet() const
Definition: ListCopyJobsRequest.h:248
Aws::Backup::Model::ListCopyJobsRequest::ByResourceArnHasBeenSet
bool ByResourceArnHasBeenSet() const
Definition: ListCopyJobsRequest.h:139
Aws::Backup::Model::ListCopyJobsRequest::ByDestinationVaultArnHasBeenSet
bool ByDestinationVaultArnHasBeenSet() const
Definition: ListCopyJobsRequest.h:372
Aws::Backup::Model::ListCopyJobsRequest::GetByResourceArn
const Aws::String & GetByResourceArn() const
Definition: ListCopyJobsRequest.h:133
Aws::Backup::BackupRequest
Definition: BackupRequest.h:17
Aws::Backup::Model::ListCopyJobsRequest::WithByState
ListCopyJobsRequest & WithByState(CopyJobState &&value)
Definition: ListCopyJobsRequest.h:206
Aws::Backup::Model::ListCopyJobsRequest::WithNextToken
ListCopyJobsRequest & WithNextToken(const char *value)
Definition: ListCopyJobsRequest.h:105
Aws::Backup::Model::ListCopyJobsRequest::GetByDestinationVaultArn
const Aws::String & GetByDestinationVaultArn() const
Definition: ListCopyJobsRequest.h:365
AWSString.h
Aws::Backup::Model::ListCopyJobsRequest::WithByResourceArn
ListCopyJobsRequest & WithByResourceArn(const char *value)
Definition: ListCopyJobsRequest.h:175
Aws::Backup::Model::ListCopyJobsRequest::SetByResourceArn
void SetByResourceArn(const char *value)
Definition: ListCopyJobsRequest.h:157
Aws::Backup::Model::ListCopyJobsRequest::WithByResourceType
ListCopyJobsRequest & WithByResourceType(const Aws::String &value)
Definition: ListCopyJobsRequest.h:335
Aws::Backup::Model::ListCopyJobsRequest::GetByState
const CopyJobState & GetByState() const
Definition: ListCopyJobsRequest.h:181
Aws::Backup::Model::ListCopyJobsRequest::SetByAccountId
void SetByAccountId(const Aws::String &value)
Definition: ListCopyJobsRequest.h:433
Aws::Backup::Model::ListCopyJobsRequest
Definition: ListCopyJobsRequest.h:28
Aws::Backup::Model::ListCopyJobsRequest::WithByAccountId
ListCopyJobsRequest & WithByAccountId(Aws::String &&value)
Definition: ListCopyJobsRequest.h:457
Aws::Backup::Model::ListCopyJobsRequest::WithByCreatedBefore
ListCopyJobsRequest & WithByCreatedBefore(Aws::Utils::DateTime &&value)
Definition: ListCopyJobsRequest.h:237
Backup_EXPORTS.h
Aws::Backup::Model::ListCopyJobsRequest::SetByCreatedBefore
void SetByCreatedBefore(const Aws::Utils::DateTime &value)
Definition: ListCopyJobsRequest.h:222
Aws::Backup::Model::ListCopyJobsRequest::GetByCreatedAfter
const Aws::Utils::DateTime & GetByCreatedAfter() const
Definition: ListCopyJobsRequest.h:243
Aws
Definition: AccessManagementClient.h:15
Aws::Backup::Model::ListCopyJobsRequest::SetByResourceArn
void SetByResourceArn(const Aws::String &value)
Definition: ListCopyJobsRequest.h:145
Aws::Backup::Model::ListCopyJobsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListCopyJobsRequest.h:36
Aws::Backup::Model::ListCopyJobsRequest::WithByCreatedAfter
ListCopyJobsRequest & WithByCreatedAfter(Aws::Utils::DateTime &&value)
Definition: ListCopyJobsRequest.h:268
Aws::Backup::Model::ListCopyJobsRequest::WithByAccountId
ListCopyJobsRequest & WithByAccountId(const Aws::String &value)
Definition: ListCopyJobsRequest.h:451
Aws::Backup::Model::ListCopyJobsRequest::SetByCreatedBefore
void SetByCreatedBefore(Aws::Utils::DateTime &&value)
Definition: ListCopyJobsRequest.h:227
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Backup::Model::ListCopyJobsRequest::WithByResourceArn
ListCopyJobsRequest & WithByResourceArn(Aws::String &&value)
Definition: ListCopyJobsRequest.h:169
Aws::Backup::Model::ListCopyJobsRequest::WithByDestinationVaultArn
ListCopyJobsRequest & WithByDestinationVaultArn(Aws::String &&value)
Definition: ListCopyJobsRequest.h:407
Aws::Backup::Model::CopyJobState
CopyJobState
Definition: CopyJobState.h:17
Aws::Backup::Model::ListCopyJobsRequest::SetByState
void SetByState(CopyJobState &&value)
Definition: ListCopyJobsRequest.h:196
Aws::Backup::Model::ListCopyJobsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListCopyJobsRequest.h:81
Aws::Backup::Model::ListCopyJobsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListCopyJobsRequest.h:121
Aws::Backup::Model::ListCopyJobsRequest::SetByResourceType
void SetByResourceType(const Aws::String &value)
Definition: ListCopyJobsRequest.h:302
Aws::Backup::Model::ListCopyJobsRequest::GetByCreatedBefore
const Aws::Utils::DateTime & GetByCreatedBefore() const
Definition: ListCopyJobsRequest.h:212
Aws::Backup::Model::ListCopyJobsRequest::GetByAccountId
const Aws::String & GetByAccountId() const
Definition: ListCopyJobsRequest.h:421
Aws::Backup::Model::ListCopyJobsRequest::WithNextToken
ListCopyJobsRequest & WithNextToken(const Aws::String &value)
Definition: ListCopyJobsRequest.h:89
Aws::Backup::Model::ListCopyJobsRequest::SetByResourceType
void SetByResourceType(Aws::String &&value)
Definition: ListCopyJobsRequest.h:313
Aws::Backup::Model::ListCopyJobsRequest::WithByResourceArn
ListCopyJobsRequest & WithByResourceArn(const Aws::String &value)
Definition: ListCopyJobsRequest.h:163
Aws::Backup::Model::ListCopyJobsRequest::SetByResourceArn
void SetByResourceArn(Aws::String &&value)
Definition: ListCopyJobsRequest.h:151