AWS SDK for C++

AWS SDK for C++ Version 1.11.750

Loading...
Searching...
No Matches
StartCopyJobRequest.h
1
6#pragma once
7#include <aws/backup/BackupRequest.h>
8#include <aws/backup/Backup_EXPORTS.h>
9#include <aws/backup/model/Lifecycle.h>
10#include <aws/core/utils/UUID.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Backup {
17namespace Model {
18
22 public:
23 AWS_BACKUP_API StartCopyJobRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "StartCopyJob"; }
30
31 AWS_BACKUP_API Aws::String SerializePayload() const override;
32
34
40 inline const Aws::String& GetRecoveryPointArn() const { return m_recoveryPointArn; }
41 inline bool RecoveryPointArnHasBeenSet() const { return m_recoveryPointArnHasBeenSet; }
42 template <typename RecoveryPointArnT = Aws::String>
43 void SetRecoveryPointArn(RecoveryPointArnT&& value) {
44 m_recoveryPointArnHasBeenSet = true;
45 m_recoveryPointArn = std::forward<RecoveryPointArnT>(value);
46 }
47 template <typename RecoveryPointArnT = Aws::String>
48 StartCopyJobRequest& WithRecoveryPointArn(RecoveryPointArnT&& value) {
49 SetRecoveryPointArn(std::forward<RecoveryPointArnT>(value));
50 return *this;
51 }
53
55
60 inline const Aws::String& GetSourceBackupVaultName() const { return m_sourceBackupVaultName; }
61 inline bool SourceBackupVaultNameHasBeenSet() const { return m_sourceBackupVaultNameHasBeenSet; }
62 template <typename SourceBackupVaultNameT = Aws::String>
63 void SetSourceBackupVaultName(SourceBackupVaultNameT&& value) {
64 m_sourceBackupVaultNameHasBeenSet = true;
65 m_sourceBackupVaultName = std::forward<SourceBackupVaultNameT>(value);
66 }
67 template <typename SourceBackupVaultNameT = Aws::String>
68 StartCopyJobRequest& WithSourceBackupVaultName(SourceBackupVaultNameT&& value) {
69 SetSourceBackupVaultName(std::forward<SourceBackupVaultNameT>(value));
70 return *this;
71 }
73
75
80 inline const Aws::String& GetDestinationBackupVaultArn() const { return m_destinationBackupVaultArn; }
81 inline bool DestinationBackupVaultArnHasBeenSet() const { return m_destinationBackupVaultArnHasBeenSet; }
82 template <typename DestinationBackupVaultArnT = Aws::String>
83 void SetDestinationBackupVaultArn(DestinationBackupVaultArnT&& value) {
84 m_destinationBackupVaultArnHasBeenSet = true;
85 m_destinationBackupVaultArn = std::forward<DestinationBackupVaultArnT>(value);
86 }
87 template <typename DestinationBackupVaultArnT = Aws::String>
88 StartCopyJobRequest& WithDestinationBackupVaultArn(DestinationBackupVaultArnT&& value) {
89 SetDestinationBackupVaultArn(std::forward<DestinationBackupVaultArnT>(value));
90 return *this;
91 }
93
95
99 inline const Aws::String& GetIamRoleArn() const { return m_iamRoleArn; }
100 inline bool IamRoleArnHasBeenSet() const { return m_iamRoleArnHasBeenSet; }
101 template <typename IamRoleArnT = Aws::String>
102 void SetIamRoleArn(IamRoleArnT&& value) {
103 m_iamRoleArnHasBeenSet = true;
104 m_iamRoleArn = std::forward<IamRoleArnT>(value);
105 }
106 template <typename IamRoleArnT = Aws::String>
107 StartCopyJobRequest& WithIamRoleArn(IamRoleArnT&& value) {
108 SetIamRoleArn(std::forward<IamRoleArnT>(value));
109 return *this;
110 }
112
114
120 inline const Aws::String& GetIdempotencyToken() const { return m_idempotencyToken; }
121 inline bool IdempotencyTokenHasBeenSet() const { return m_idempotencyTokenHasBeenSet; }
122 template <typename IdempotencyTokenT = Aws::String>
123 void SetIdempotencyToken(IdempotencyTokenT&& value) {
124 m_idempotencyTokenHasBeenSet = true;
125 m_idempotencyToken = std::forward<IdempotencyTokenT>(value);
126 }
127 template <typename IdempotencyTokenT = Aws::String>
128 StartCopyJobRequest& WithIdempotencyToken(IdempotencyTokenT&& value) {
129 SetIdempotencyToken(std::forward<IdempotencyTokenT>(value));
130 return *this;
131 }
133
135
136 inline const Lifecycle& GetLifecycle() const { return m_lifecycle; }
137 inline bool LifecycleHasBeenSet() const { return m_lifecycleHasBeenSet; }
138 template <typename LifecycleT = Lifecycle>
139 void SetLifecycle(LifecycleT&& value) {
140 m_lifecycleHasBeenSet = true;
141 m_lifecycle = std::forward<LifecycleT>(value);
142 }
143 template <typename LifecycleT = Lifecycle>
144 StartCopyJobRequest& WithLifecycle(LifecycleT&& value) {
145 SetLifecycle(std::forward<LifecycleT>(value));
146 return *this;
147 }
149 private:
150 Aws::String m_recoveryPointArn;
151
152 Aws::String m_sourceBackupVaultName;
153
154 Aws::String m_destinationBackupVaultArn;
155
156 Aws::String m_iamRoleArn;
157
159
160 Lifecycle m_lifecycle;
161 bool m_recoveryPointArnHasBeenSet = false;
162 bool m_sourceBackupVaultNameHasBeenSet = false;
163 bool m_destinationBackupVaultArnHasBeenSet = false;
164 bool m_iamRoleArnHasBeenSet = false;
165 bool m_idempotencyTokenHasBeenSet = true;
166 bool m_lifecycleHasBeenSet = false;
167};
168
169} // namespace Model
170} // namespace Backup
171} // 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