AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
StartCopyJobRequest.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/Lifecycle.h>
11#include <utility>
12#include <aws/core/utils/UUID.h>
13
14namespace Aws
15{
16namespace Backup
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_BACKUP_API StartCopyJobRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "StartCopyJob"; }
33
34 AWS_BACKUP_API Aws::String SerializePayload() const override;
35
36
38
44 inline const Aws::String& GetRecoveryPointArn() const { return m_recoveryPointArn; }
45 inline bool RecoveryPointArnHasBeenSet() const { return m_recoveryPointArnHasBeenSet; }
46 template<typename RecoveryPointArnT = Aws::String>
47 void SetRecoveryPointArn(RecoveryPointArnT&& value) { m_recoveryPointArnHasBeenSet = true; m_recoveryPointArn = std::forward<RecoveryPointArnT>(value); }
48 template<typename RecoveryPointArnT = Aws::String>
49 StartCopyJobRequest& WithRecoveryPointArn(RecoveryPointArnT&& value) { SetRecoveryPointArn(std::forward<RecoveryPointArnT>(value)); return *this;}
51
53
58 inline const Aws::String& GetSourceBackupVaultName() const { return m_sourceBackupVaultName; }
59 inline bool SourceBackupVaultNameHasBeenSet() const { return m_sourceBackupVaultNameHasBeenSet; }
60 template<typename SourceBackupVaultNameT = Aws::String>
61 void SetSourceBackupVaultName(SourceBackupVaultNameT&& value) { m_sourceBackupVaultNameHasBeenSet = true; m_sourceBackupVaultName = std::forward<SourceBackupVaultNameT>(value); }
62 template<typename SourceBackupVaultNameT = Aws::String>
63 StartCopyJobRequest& WithSourceBackupVaultName(SourceBackupVaultNameT&& value) { SetSourceBackupVaultName(std::forward<SourceBackupVaultNameT>(value)); return *this;}
65
67
72 inline const Aws::String& GetDestinationBackupVaultArn() const { return m_destinationBackupVaultArn; }
73 inline bool DestinationBackupVaultArnHasBeenSet() const { return m_destinationBackupVaultArnHasBeenSet; }
74 template<typename DestinationBackupVaultArnT = Aws::String>
75 void SetDestinationBackupVaultArn(DestinationBackupVaultArnT&& value) { m_destinationBackupVaultArnHasBeenSet = true; m_destinationBackupVaultArn = std::forward<DestinationBackupVaultArnT>(value); }
76 template<typename DestinationBackupVaultArnT = Aws::String>
77 StartCopyJobRequest& WithDestinationBackupVaultArn(DestinationBackupVaultArnT&& value) { SetDestinationBackupVaultArn(std::forward<DestinationBackupVaultArnT>(value)); return *this;}
79
81
85 inline const Aws::String& GetIamRoleArn() const { return m_iamRoleArn; }
86 inline bool IamRoleArnHasBeenSet() const { return m_iamRoleArnHasBeenSet; }
87 template<typename IamRoleArnT = Aws::String>
88 void SetIamRoleArn(IamRoleArnT&& value) { m_iamRoleArnHasBeenSet = true; m_iamRoleArn = std::forward<IamRoleArnT>(value); }
89 template<typename IamRoleArnT = Aws::String>
90 StartCopyJobRequest& WithIamRoleArn(IamRoleArnT&& value) { SetIamRoleArn(std::forward<IamRoleArnT>(value)); return *this;}
92
94
100 inline const Aws::String& GetIdempotencyToken() const { return m_idempotencyToken; }
101 inline bool IdempotencyTokenHasBeenSet() const { return m_idempotencyTokenHasBeenSet; }
102 template<typename IdempotencyTokenT = Aws::String>
103 void SetIdempotencyToken(IdempotencyTokenT&& value) { m_idempotencyTokenHasBeenSet = true; m_idempotencyToken = std::forward<IdempotencyTokenT>(value); }
104 template<typename IdempotencyTokenT = Aws::String>
105 StartCopyJobRequest& WithIdempotencyToken(IdempotencyTokenT&& value) { SetIdempotencyToken(std::forward<IdempotencyTokenT>(value)); return *this;}
107
109
110 inline const Lifecycle& GetLifecycle() const { return m_lifecycle; }
111 inline bool LifecycleHasBeenSet() const { return m_lifecycleHasBeenSet; }
112 template<typename LifecycleT = Lifecycle>
113 void SetLifecycle(LifecycleT&& value) { m_lifecycleHasBeenSet = true; m_lifecycle = std::forward<LifecycleT>(value); }
114 template<typename LifecycleT = Lifecycle>
115 StartCopyJobRequest& WithLifecycle(LifecycleT&& value) { SetLifecycle(std::forward<LifecycleT>(value)); return *this;}
117 private:
118
119 Aws::String m_recoveryPointArn;
120 bool m_recoveryPointArnHasBeenSet = false;
121
122 Aws::String m_sourceBackupVaultName;
123 bool m_sourceBackupVaultNameHasBeenSet = false;
124
125 Aws::String m_destinationBackupVaultArn;
126 bool m_destinationBackupVaultArnHasBeenSet = false;
127
128 Aws::String m_iamRoleArn;
129 bool m_iamRoleArnHasBeenSet = false;
130
132 bool m_idempotencyTokenHasBeenSet = true;
133
134 Lifecycle m_lifecycle;
135 bool m_lifecycleHasBeenSet = false;
136 };
137
138} // namespace Model
139} // namespace Backup
140} // namespace Aws
void SetDestinationBackupVaultArn(DestinationBackupVaultArnT &&value)
StartCopyJobRequest & WithRecoveryPointArn(RecoveryPointArnT &&value)
StartCopyJobRequest & WithDestinationBackupVaultArn(DestinationBackupVaultArnT &&value)
const Aws::String & GetDestinationBackupVaultArn() const
AWS_BACKUP_API StartCopyJobRequest()=default
void SetIdempotencyToken(IdempotencyTokenT &&value)
const Aws::String & GetSourceBackupVaultName() const
StartCopyJobRequest & WithIamRoleArn(IamRoleArnT &&value)
StartCopyJobRequest & WithIdempotencyToken(IdempotencyTokenT &&value)
const Aws::String & GetIamRoleArn() const
AWS_BACKUP_API Aws::String SerializePayload() const override
StartCopyJobRequest & WithSourceBackupVaultName(SourceBackupVaultNameT &&value)
virtual const char * GetServiceRequestName() const override
StartCopyJobRequest & WithLifecycle(LifecycleT &&value)
void SetRecoveryPointArn(RecoveryPointArnT &&value)
const Aws::String & GetIdempotencyToken() const
const Aws::String & GetRecoveryPointArn() const
void SetSourceBackupVaultName(SourceBackupVaultNameT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String