AWS SDK for C++  1.9.1
AWS SDK for C++
StartRestoreJobRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Backup
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "StartRestoreJob"; }
32 
33  Aws::String SerializePayload() const override;
34 
35 
40  inline const Aws::String& GetRecoveryPointArn() const{ return m_recoveryPointArn; }
41 
46  inline bool RecoveryPointArnHasBeenSet() const { return m_recoveryPointArnHasBeenSet; }
47 
52  inline void SetRecoveryPointArn(const Aws::String& value) { m_recoveryPointArnHasBeenSet = true; m_recoveryPointArn = value; }
53 
58  inline void SetRecoveryPointArn(Aws::String&& value) { m_recoveryPointArnHasBeenSet = true; m_recoveryPointArn = std::move(value); }
59 
64  inline void SetRecoveryPointArn(const char* value) { m_recoveryPointArnHasBeenSet = true; m_recoveryPointArn.assign(value); }
65 
70  inline StartRestoreJobRequest& WithRecoveryPointArn(const Aws::String& value) { SetRecoveryPointArn(value); return *this;}
71 
76  inline StartRestoreJobRequest& WithRecoveryPointArn(Aws::String&& value) { SetRecoveryPointArn(std::move(value)); return *this;}
77 
82  inline StartRestoreJobRequest& WithRecoveryPointArn(const char* value) { SetRecoveryPointArn(value); return *this;}
83 
84 
113  inline const Aws::Map<Aws::String, Aws::String>& GetMetadata() const{ return m_metadata; }
114 
143  inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; }
144 
173  inline void SetMetadata(const Aws::Map<Aws::String, Aws::String>& value) { m_metadataHasBeenSet = true; m_metadata = value; }
174 
203  inline void SetMetadata(Aws::Map<Aws::String, Aws::String>&& value) { m_metadataHasBeenSet = true; m_metadata = std::move(value); }
204 
233  inline StartRestoreJobRequest& WithMetadata(const Aws::Map<Aws::String, Aws::String>& value) { SetMetadata(value); return *this;}
234 
263  inline StartRestoreJobRequest& WithMetadata(Aws::Map<Aws::String, Aws::String>&& value) { SetMetadata(std::move(value)); return *this;}
264 
293  inline StartRestoreJobRequest& AddMetadata(const Aws::String& key, const Aws::String& value) { m_metadataHasBeenSet = true; m_metadata.emplace(key, value); return *this; }
294 
323  inline StartRestoreJobRequest& AddMetadata(Aws::String&& key, const Aws::String& value) { m_metadataHasBeenSet = true; m_metadata.emplace(std::move(key), value); return *this; }
324 
353  inline StartRestoreJobRequest& AddMetadata(const Aws::String& key, Aws::String&& value) { m_metadataHasBeenSet = true; m_metadata.emplace(key, std::move(value)); return *this; }
354 
383  inline StartRestoreJobRequest& AddMetadata(Aws::String&& key, Aws::String&& value) { m_metadataHasBeenSet = true; m_metadata.emplace(std::move(key), std::move(value)); return *this; }
384 
413  inline StartRestoreJobRequest& AddMetadata(const char* key, Aws::String&& value) { m_metadataHasBeenSet = true; m_metadata.emplace(key, std::move(value)); return *this; }
414 
443  inline StartRestoreJobRequest& AddMetadata(Aws::String&& key, const char* value) { m_metadataHasBeenSet = true; m_metadata.emplace(std::move(key), value); return *this; }
444 
473  inline StartRestoreJobRequest& AddMetadata(const char* key, const char* value) { m_metadataHasBeenSet = true; m_metadata.emplace(key, value); return *this; }
474 
475 
481  inline const Aws::String& GetIamRoleArn() const{ return m_iamRoleArn; }
482 
488  inline bool IamRoleArnHasBeenSet() const { return m_iamRoleArnHasBeenSet; }
489 
495  inline void SetIamRoleArn(const Aws::String& value) { m_iamRoleArnHasBeenSet = true; m_iamRoleArn = value; }
496 
502  inline void SetIamRoleArn(Aws::String&& value) { m_iamRoleArnHasBeenSet = true; m_iamRoleArn = std::move(value); }
503 
509  inline void SetIamRoleArn(const char* value) { m_iamRoleArnHasBeenSet = true; m_iamRoleArn.assign(value); }
510 
516  inline StartRestoreJobRequest& WithIamRoleArn(const Aws::String& value) { SetIamRoleArn(value); return *this;}
517 
523  inline StartRestoreJobRequest& WithIamRoleArn(Aws::String&& value) { SetIamRoleArn(std::move(value)); return *this;}
524 
530  inline StartRestoreJobRequest& WithIamRoleArn(const char* value) { SetIamRoleArn(value); return *this;}
531 
532 
537  inline const Aws::String& GetIdempotencyToken() const{ return m_idempotencyToken; }
538 
543  inline bool IdempotencyTokenHasBeenSet() const { return m_idempotencyTokenHasBeenSet; }
544 
549  inline void SetIdempotencyToken(const Aws::String& value) { m_idempotencyTokenHasBeenSet = true; m_idempotencyToken = value; }
550 
555  inline void SetIdempotencyToken(Aws::String&& value) { m_idempotencyTokenHasBeenSet = true; m_idempotencyToken = std::move(value); }
556 
561  inline void SetIdempotencyToken(const char* value) { m_idempotencyTokenHasBeenSet = true; m_idempotencyToken.assign(value); }
562 
567  inline StartRestoreJobRequest& WithIdempotencyToken(const Aws::String& value) { SetIdempotencyToken(value); return *this;}
568 
573  inline StartRestoreJobRequest& WithIdempotencyToken(Aws::String&& value) { SetIdempotencyToken(std::move(value)); return *this;}
574 
579  inline StartRestoreJobRequest& WithIdempotencyToken(const char* value) { SetIdempotencyToken(value); return *this;}
580 
581 
592  inline const Aws::String& GetResourceType() const{ return m_resourceType; }
593 
604  inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
605 
616  inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
617 
628  inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
629 
640  inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); }
641 
652  inline StartRestoreJobRequest& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;}
653 
664  inline StartRestoreJobRequest& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;}
665 
676  inline StartRestoreJobRequest& WithResourceType(const char* value) { SetResourceType(value); return *this;}
677 
678  private:
679 
680  Aws::String m_recoveryPointArn;
681  bool m_recoveryPointArnHasBeenSet;
682 
684  bool m_metadataHasBeenSet;
685 
686  Aws::String m_iamRoleArn;
687  bool m_iamRoleArnHasBeenSet;
688 
689  Aws::String m_idempotencyToken;
690  bool m_idempotencyTokenHasBeenSet;
691 
692  Aws::String m_resourceType;
693  bool m_resourceTypeHasBeenSet;
694  };
695 
696 } // namespace Model
697 } // namespace Backup
698 } // namespace Aws
Aws::Backup::Model::StartRestoreJobRequest::ResourceTypeHasBeenSet
bool ResourceTypeHasBeenSet() const
Definition: StartRestoreJobRequest.h:604
Aws::Backup::Model::StartRestoreJobRequest::WithMetadata
StartRestoreJobRequest & WithMetadata(Aws::Map< Aws::String, Aws::String > &&value)
Definition: StartRestoreJobRequest.h:263
Aws::Backup::Model::StartRestoreJobRequest::GetIdempotencyToken
const Aws::String & GetIdempotencyToken() const
Definition: StartRestoreJobRequest.h:537
Aws::Backup::Model::StartRestoreJobRequest::RecoveryPointArnHasBeenSet
bool RecoveryPointArnHasBeenSet() const
Definition: StartRestoreJobRequest.h:46
Aws::Backup::Model::StartRestoreJobRequest::WithResourceType
StartRestoreJobRequest & WithResourceType(const Aws::String &value)
Definition: StartRestoreJobRequest.h:652
Aws::Backup::Model::StartRestoreJobRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: StartRestoreJobRequest.h:31
Aws::Backup::Model::StartRestoreJobRequest::WithRecoveryPointArn
StartRestoreJobRequest & WithRecoveryPointArn(const char *value)
Definition: StartRestoreJobRequest.h:82
Aws::Backup::Model::StartRestoreJobRequest::SetResourceType
void SetResourceType(Aws::String &&value)
Definition: StartRestoreJobRequest.h:628
Aws::Backup::Model::StartRestoreJobRequest::SetMetadata
void SetMetadata(Aws::Map< Aws::String, Aws::String > &&value)
Definition: StartRestoreJobRequest.h:203
AWS_BACKUP_API
#define AWS_BACKUP_API
Definition: Backup_EXPORTS.h:28
Aws::Backup::Model::StartRestoreJobRequest::SetIdempotencyToken
void SetIdempotencyToken(const char *value)
Definition: StartRestoreJobRequest.h:561
Aws::Backup::Model::StartRestoreJobRequest::AddMetadata
StartRestoreJobRequest & AddMetadata(const Aws::String &key, const Aws::String &value)
Definition: StartRestoreJobRequest.h:293
Aws::Backup::Model::StartRestoreJobRequest::GetResourceType
const Aws::String & GetResourceType() const
Definition: StartRestoreJobRequest.h:592
Aws::Backup::Model::StartRestoreJobRequest::WithResourceType
StartRestoreJobRequest & WithResourceType(Aws::String &&value)
Definition: StartRestoreJobRequest.h:664
Aws::Backup::Model::StartRestoreJobRequest::WithIdempotencyToken
StartRestoreJobRequest & WithIdempotencyToken(const Aws::String &value)
Definition: StartRestoreJobRequest.h:567
Aws::Backup::Model::StartRestoreJobRequest::MetadataHasBeenSet
bool MetadataHasBeenSet() const
Definition: StartRestoreJobRequest.h:143
Aws::Backup::Model::StartRestoreJobRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Backup::Model::StartRestoreJobRequest::AddMetadata
StartRestoreJobRequest & AddMetadata(Aws::String &&key, Aws::String &&value)
Definition: StartRestoreJobRequest.h:383
Aws::Backup::Model::StartRestoreJobRequest::StartRestoreJobRequest
StartRestoreJobRequest()
BackupRequest.h
Aws::Backup::Model::StartRestoreJobRequest::SetIamRoleArn
void SetIamRoleArn(const Aws::String &value)
Definition: StartRestoreJobRequest.h:495
Aws::Backup::Model::StartRestoreJobRequest::WithIamRoleArn
StartRestoreJobRequest & WithIamRoleArn(Aws::String &&value)
Definition: StartRestoreJobRequest.h:523
Aws::Backup::Model::StartRestoreJobRequest::SetResourceType
void SetResourceType(const char *value)
Definition: StartRestoreJobRequest.h:640
Aws::Backup::Model::StartRestoreJobRequest::GetMetadata
const Aws::Map< Aws::String, Aws::String > & GetMetadata() const
Definition: StartRestoreJobRequest.h:113
Aws::Backup::Model::StartRestoreJobRequest::SetResourceType
void SetResourceType(const Aws::String &value)
Definition: StartRestoreJobRequest.h:616
Aws::Backup::Model::StartRestoreJobRequest::WithIamRoleArn
StartRestoreJobRequest & WithIamRoleArn(const char *value)
Definition: StartRestoreJobRequest.h:530
Aws::Backup::Model::StartRestoreJobRequest::SetRecoveryPointArn
void SetRecoveryPointArn(const Aws::String &value)
Definition: StartRestoreJobRequest.h:52
Aws::Backup::Model::StartRestoreJobRequest::GetIamRoleArn
const Aws::String & GetIamRoleArn() const
Definition: StartRestoreJobRequest.h:481
Aws::Backup::Model::StartRestoreJobRequest::AddMetadata
StartRestoreJobRequest & AddMetadata(const char *key, Aws::String &&value)
Definition: StartRestoreJobRequest.h:413
Aws::Backup::Model::StartRestoreJobRequest::WithIdempotencyToken
StartRestoreJobRequest & WithIdempotencyToken(Aws::String &&value)
Definition: StartRestoreJobRequest.h:573
Aws::Backup::BackupRequest
Definition: BackupRequest.h:17
Aws::Backup::Model::StartRestoreJobRequest::SetIdempotencyToken
void SetIdempotencyToken(const Aws::String &value)
Definition: StartRestoreJobRequest.h:549
AWSString.h
Aws::Backup::Model::StartRestoreJobRequest::AddMetadata
StartRestoreJobRequest & AddMetadata(Aws::String &&key, const char *value)
Definition: StartRestoreJobRequest.h:443
Aws::Backup::Model::StartRestoreJobRequest::WithIamRoleArn
StartRestoreJobRequest & WithIamRoleArn(const Aws::String &value)
Definition: StartRestoreJobRequest.h:516
Aws::Backup::Model::StartRestoreJobRequest::WithMetadata
StartRestoreJobRequest & WithMetadata(const Aws::Map< Aws::String, Aws::String > &value)
Definition: StartRestoreJobRequest.h:233
Aws::Backup::Model::StartRestoreJobRequest::SetRecoveryPointArn
void SetRecoveryPointArn(Aws::String &&value)
Definition: StartRestoreJobRequest.h:58
Aws::Backup::Model::StartRestoreJobRequest::WithRecoveryPointArn
StartRestoreJobRequest & WithRecoveryPointArn(const Aws::String &value)
Definition: StartRestoreJobRequest.h:70
Aws::Backup::Model::StartRestoreJobRequest::IamRoleArnHasBeenSet
bool IamRoleArnHasBeenSet() const
Definition: StartRestoreJobRequest.h:488
Aws::Backup::Model::StartRestoreJobRequest
Definition: StartRestoreJobRequest.h:23
Aws::Backup::Model::StartRestoreJobRequest::GetRecoveryPointArn
const Aws::String & GetRecoveryPointArn() const
Definition: StartRestoreJobRequest.h:40
Backup_EXPORTS.h
Aws::Backup::Model::StartRestoreJobRequest::IdempotencyTokenHasBeenSet
bool IdempotencyTokenHasBeenSet() const
Definition: StartRestoreJobRequest.h:543
Aws::Backup::Model::StartRestoreJobRequest::SetIamRoleArn
void SetIamRoleArn(Aws::String &&value)
Definition: StartRestoreJobRequest.h:502
Aws
Definition: AccessManagementClient.h:15
Aws::Backup::Model::StartRestoreJobRequest::WithIdempotencyToken
StartRestoreJobRequest & WithIdempotencyToken(const char *value)
Definition: StartRestoreJobRequest.h:579
Aws::Backup::Model::StartRestoreJobRequest::AddMetadata
StartRestoreJobRequest & AddMetadata(const char *key, const char *value)
Definition: StartRestoreJobRequest.h:473
Aws::Backup::Model::StartRestoreJobRequest::AddMetadata
StartRestoreJobRequest & AddMetadata(Aws::String &&key, const Aws::String &value)
Definition: StartRestoreJobRequest.h:323
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Backup::Model::StartRestoreJobRequest::SetMetadata
void SetMetadata(const Aws::Map< Aws::String, Aws::String > &value)
Definition: StartRestoreJobRequest.h:173
Aws::Backup::Model::StartRestoreJobRequest::SetIdempotencyToken
void SetIdempotencyToken(Aws::String &&value)
Definition: StartRestoreJobRequest.h:555
Aws::Backup::Model::StartRestoreJobRequest::WithRecoveryPointArn
StartRestoreJobRequest & WithRecoveryPointArn(Aws::String &&value)
Definition: StartRestoreJobRequest.h:76
Aws::Backup::Model::StartRestoreJobRequest::SetIamRoleArn
void SetIamRoleArn(const char *value)
Definition: StartRestoreJobRequest.h:509
Aws::Backup::Model::StartRestoreJobRequest::AddMetadata
StartRestoreJobRequest & AddMetadata(const Aws::String &key, Aws::String &&value)
Definition: StartRestoreJobRequest.h:353
AWSMap.h
Aws::Backup::Model::StartRestoreJobRequest::WithResourceType
StartRestoreJobRequest & WithResourceType(const char *value)
Definition: StartRestoreJobRequest.h:676
Aws::Backup::Model::StartRestoreJobRequest::SetRecoveryPointArn
void SetRecoveryPointArn(const char *value)
Definition: StartRestoreJobRequest.h:64
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19