AWS SDK for C++  1.9.1
AWS SDK for C++
StartCopyJobRequest.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 "StartCopyJob"; }
32 
33  Aws::String SerializePayload() const override;
34 
35 
42  inline const Aws::String& GetRecoveryPointArn() const{ return m_recoveryPointArn; }
43 
50  inline bool RecoveryPointArnHasBeenSet() const { return m_recoveryPointArnHasBeenSet; }
51 
58  inline void SetRecoveryPointArn(const Aws::String& value) { m_recoveryPointArnHasBeenSet = true; m_recoveryPointArn = value; }
59 
66  inline void SetRecoveryPointArn(Aws::String&& value) { m_recoveryPointArnHasBeenSet = true; m_recoveryPointArn = std::move(value); }
67 
74  inline void SetRecoveryPointArn(const char* value) { m_recoveryPointArnHasBeenSet = true; m_recoveryPointArn.assign(value); }
75 
82  inline StartCopyJobRequest& WithRecoveryPointArn(const Aws::String& value) { SetRecoveryPointArn(value); return *this;}
83 
90  inline StartCopyJobRequest& WithRecoveryPointArn(Aws::String&& value) { SetRecoveryPointArn(std::move(value)); return *this;}
91 
98  inline StartCopyJobRequest& WithRecoveryPointArn(const char* value) { SetRecoveryPointArn(value); return *this;}
99 
100 
107  inline const Aws::String& GetSourceBackupVaultName() const{ return m_sourceBackupVaultName; }
108 
115  inline bool SourceBackupVaultNameHasBeenSet() const { return m_sourceBackupVaultNameHasBeenSet; }
116 
123  inline void SetSourceBackupVaultName(const Aws::String& value) { m_sourceBackupVaultNameHasBeenSet = true; m_sourceBackupVaultName = value; }
124 
131  inline void SetSourceBackupVaultName(Aws::String&& value) { m_sourceBackupVaultNameHasBeenSet = true; m_sourceBackupVaultName = std::move(value); }
132 
139  inline void SetSourceBackupVaultName(const char* value) { m_sourceBackupVaultNameHasBeenSet = true; m_sourceBackupVaultName.assign(value); }
140 
147  inline StartCopyJobRequest& WithSourceBackupVaultName(const Aws::String& value) { SetSourceBackupVaultName(value); return *this;}
148 
155  inline StartCopyJobRequest& WithSourceBackupVaultName(Aws::String&& value) { SetSourceBackupVaultName(std::move(value)); return *this;}
156 
163  inline StartCopyJobRequest& WithSourceBackupVaultName(const char* value) { SetSourceBackupVaultName(value); return *this;}
164 
165 
171  inline const Aws::String& GetDestinationBackupVaultArn() const{ return m_destinationBackupVaultArn; }
172 
178  inline bool DestinationBackupVaultArnHasBeenSet() const { return m_destinationBackupVaultArnHasBeenSet; }
179 
185  inline void SetDestinationBackupVaultArn(const Aws::String& value) { m_destinationBackupVaultArnHasBeenSet = true; m_destinationBackupVaultArn = value; }
186 
192  inline void SetDestinationBackupVaultArn(Aws::String&& value) { m_destinationBackupVaultArnHasBeenSet = true; m_destinationBackupVaultArn = std::move(value); }
193 
199  inline void SetDestinationBackupVaultArn(const char* value) { m_destinationBackupVaultArnHasBeenSet = true; m_destinationBackupVaultArn.assign(value); }
200 
206  inline StartCopyJobRequest& WithDestinationBackupVaultArn(const Aws::String& value) { SetDestinationBackupVaultArn(value); return *this;}
207 
213  inline StartCopyJobRequest& WithDestinationBackupVaultArn(Aws::String&& value) { SetDestinationBackupVaultArn(std::move(value)); return *this;}
214 
220  inline StartCopyJobRequest& WithDestinationBackupVaultArn(const char* value) { SetDestinationBackupVaultArn(value); return *this;}
221 
222 
227  inline const Aws::String& GetIamRoleArn() const{ return m_iamRoleArn; }
228 
233  inline bool IamRoleArnHasBeenSet() const { return m_iamRoleArnHasBeenSet; }
234 
239  inline void SetIamRoleArn(const Aws::String& value) { m_iamRoleArnHasBeenSet = true; m_iamRoleArn = value; }
240 
245  inline void SetIamRoleArn(Aws::String&& value) { m_iamRoleArnHasBeenSet = true; m_iamRoleArn = std::move(value); }
246 
251  inline void SetIamRoleArn(const char* value) { m_iamRoleArnHasBeenSet = true; m_iamRoleArn.assign(value); }
252 
257  inline StartCopyJobRequest& WithIamRoleArn(const Aws::String& value) { SetIamRoleArn(value); return *this;}
258 
263  inline StartCopyJobRequest& WithIamRoleArn(Aws::String&& value) { SetIamRoleArn(std::move(value)); return *this;}
264 
269  inline StartCopyJobRequest& WithIamRoleArn(const char* value) { SetIamRoleArn(value); return *this;}
270 
271 
276  inline const Aws::String& GetIdempotencyToken() const{ return m_idempotencyToken; }
277 
282  inline bool IdempotencyTokenHasBeenSet() const { return m_idempotencyTokenHasBeenSet; }
283 
288  inline void SetIdempotencyToken(const Aws::String& value) { m_idempotencyTokenHasBeenSet = true; m_idempotencyToken = value; }
289 
294  inline void SetIdempotencyToken(Aws::String&& value) { m_idempotencyTokenHasBeenSet = true; m_idempotencyToken = std::move(value); }
295 
300  inline void SetIdempotencyToken(const char* value) { m_idempotencyTokenHasBeenSet = true; m_idempotencyToken.assign(value); }
301 
306  inline StartCopyJobRequest& WithIdempotencyToken(const Aws::String& value) { SetIdempotencyToken(value); return *this;}
307 
312  inline StartCopyJobRequest& WithIdempotencyToken(Aws::String&& value) { SetIdempotencyToken(std::move(value)); return *this;}
313 
318  inline StartCopyJobRequest& WithIdempotencyToken(const char* value) { SetIdempotencyToken(value); return *this;}
319 
320 
321 
322  inline const Lifecycle& GetLifecycle() const{ return m_lifecycle; }
323 
324 
325  inline bool LifecycleHasBeenSet() const { return m_lifecycleHasBeenSet; }
326 
327 
328  inline void SetLifecycle(const Lifecycle& value) { m_lifecycleHasBeenSet = true; m_lifecycle = value; }
329 
330 
331  inline void SetLifecycle(Lifecycle&& value) { m_lifecycleHasBeenSet = true; m_lifecycle = std::move(value); }
332 
333 
334  inline StartCopyJobRequest& WithLifecycle(const Lifecycle& value) { SetLifecycle(value); return *this;}
335 
336 
337  inline StartCopyJobRequest& WithLifecycle(Lifecycle&& value) { SetLifecycle(std::move(value)); return *this;}
338 
339  private:
340 
341  Aws::String m_recoveryPointArn;
342  bool m_recoveryPointArnHasBeenSet;
343 
344  Aws::String m_sourceBackupVaultName;
345  bool m_sourceBackupVaultNameHasBeenSet;
346 
347  Aws::String m_destinationBackupVaultArn;
348  bool m_destinationBackupVaultArnHasBeenSet;
349 
350  Aws::String m_iamRoleArn;
351  bool m_iamRoleArnHasBeenSet;
352 
353  Aws::String m_idempotencyToken;
354  bool m_idempotencyTokenHasBeenSet;
355 
356  Lifecycle m_lifecycle;
357  bool m_lifecycleHasBeenSet;
358  };
359 
360 } // namespace Model
361 } // namespace Backup
362 } // namespace Aws
Aws::Backup::Model::StartCopyJobRequest::StartCopyJobRequest
StartCopyJobRequest()
Aws::Backup::Model::StartCopyJobRequest::WithIamRoleArn
StartCopyJobRequest & WithIamRoleArn(Aws::String &&value)
Definition: StartCopyJobRequest.h:263
Aws::Backup::Model::StartCopyJobRequest::WithIamRoleArn
StartCopyJobRequest & WithIamRoleArn(const char *value)
Definition: StartCopyJobRequest.h:269
Aws::Backup::Model::StartCopyJobRequest::WithIamRoleArn
StartCopyJobRequest & WithIamRoleArn(const Aws::String &value)
Definition: StartCopyJobRequest.h:257
Aws::Backup::Model::StartCopyJobRequest::SetIamRoleArn
void SetIamRoleArn(const char *value)
Definition: StartCopyJobRequest.h:251
Aws::Backup::Model::StartCopyJobRequest::WithSourceBackupVaultName
StartCopyJobRequest & WithSourceBackupVaultName(const Aws::String &value)
Definition: StartCopyJobRequest.h:147
Aws::Backup::Model::StartCopyJobRequest::SetRecoveryPointArn
void SetRecoveryPointArn(const Aws::String &value)
Definition: StartCopyJobRequest.h:58
Aws::Backup::Model::StartCopyJobRequest::WithDestinationBackupVaultArn
StartCopyJobRequest & WithDestinationBackupVaultArn(Aws::String &&value)
Definition: StartCopyJobRequest.h:213
Aws::Backup::Model::StartCopyJobRequest::SetIdempotencyToken
void SetIdempotencyToken(Aws::String &&value)
Definition: StartCopyJobRequest.h:294
Aws::Backup::Model::StartCopyJobRequest::SetRecoveryPointArn
void SetRecoveryPointArn(const char *value)
Definition: StartCopyJobRequest.h:74
Aws::Backup::Model::StartCopyJobRequest::IamRoleArnHasBeenSet
bool IamRoleArnHasBeenSet() const
Definition: StartCopyJobRequest.h:233
AWS_BACKUP_API
#define AWS_BACKUP_API
Definition: Backup_EXPORTS.h:28
Aws::Backup::Model::StartCopyJobRequest::WithRecoveryPointArn
StartCopyJobRequest & WithRecoveryPointArn(const char *value)
Definition: StartCopyJobRequest.h:98
Aws::Backup::Model::StartCopyJobRequest::SetIamRoleArn
void SetIamRoleArn(Aws::String &&value)
Definition: StartCopyJobRequest.h:245
Aws::Backup::Model::StartCopyJobRequest::SetSourceBackupVaultName
void SetSourceBackupVaultName(Aws::String &&value)
Definition: StartCopyJobRequest.h:131
Aws::Backup::Model::StartCopyJobRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Backup::Model::StartCopyJobRequest::SetSourceBackupVaultName
void SetSourceBackupVaultName(const char *value)
Definition: StartCopyJobRequest.h:139
Aws::Backup::Model::StartCopyJobRequest::WithIdempotencyToken
StartCopyJobRequest & WithIdempotencyToken(const Aws::String &value)
Definition: StartCopyJobRequest.h:306
Aws::Backup::Model::StartCopyJobRequest::LifecycleHasBeenSet
bool LifecycleHasBeenSet() const
Definition: StartCopyJobRequest.h:325
Aws::Backup::Model::StartCopyJobRequest::IdempotencyTokenHasBeenSet
bool IdempotencyTokenHasBeenSet() const
Definition: StartCopyJobRequest.h:282
Aws::Backup::Model::StartCopyJobRequest::GetIamRoleArn
const Aws::String & GetIamRoleArn() const
Definition: StartCopyJobRequest.h:227
Aws::Backup::Model::StartCopyJobRequest::GetLifecycle
const Lifecycle & GetLifecycle() const
Definition: StartCopyJobRequest.h:322
BackupRequest.h
Aws::Backup::Model::StartCopyJobRequest::WithRecoveryPointArn
StartCopyJobRequest & WithRecoveryPointArn(Aws::String &&value)
Definition: StartCopyJobRequest.h:90
Aws::Backup::Model::StartCopyJobRequest::RecoveryPointArnHasBeenSet
bool RecoveryPointArnHasBeenSet() const
Definition: StartCopyJobRequest.h:50
Aws::Backup::Model::StartCopyJobRequest::WithDestinationBackupVaultArn
StartCopyJobRequest & WithDestinationBackupVaultArn(const char *value)
Definition: StartCopyJobRequest.h:220
Aws::Backup::Model::StartCopyJobRequest::WithIdempotencyToken
StartCopyJobRequest & WithIdempotencyToken(Aws::String &&value)
Definition: StartCopyJobRequest.h:312
Aws::Backup::Model::StartCopyJobRequest::WithDestinationBackupVaultArn
StartCopyJobRequest & WithDestinationBackupVaultArn(const Aws::String &value)
Definition: StartCopyJobRequest.h:206
Aws::Backup::Model::StartCopyJobRequest::WithLifecycle
StartCopyJobRequest & WithLifecycle(Lifecycle &&value)
Definition: StartCopyJobRequest.h:337
Aws::Backup::Model::Lifecycle
Definition: Lifecycle.h:37
Aws::Backup::Model::StartCopyJobRequest::SourceBackupVaultNameHasBeenSet
bool SourceBackupVaultNameHasBeenSet() const
Definition: StartCopyJobRequest.h:115
Aws::Backup::Model::StartCopyJobRequest::WithRecoveryPointArn
StartCopyJobRequest & WithRecoveryPointArn(const Aws::String &value)
Definition: StartCopyJobRequest.h:82
Aws::Backup::Model::StartCopyJobRequest::GetRecoveryPointArn
const Aws::String & GetRecoveryPointArn() const
Definition: StartCopyJobRequest.h:42
Aws::Backup::BackupRequest
Definition: BackupRequest.h:17
Aws::Backup::Model::StartCopyJobRequest::WithSourceBackupVaultName
StartCopyJobRequest & WithSourceBackupVaultName(Aws::String &&value)
Definition: StartCopyJobRequest.h:155
Aws::Backup::Model::StartCopyJobRequest::GetSourceBackupVaultName
const Aws::String & GetSourceBackupVaultName() const
Definition: StartCopyJobRequest.h:107
Aws::Backup::Model::StartCopyJobRequest::WithSourceBackupVaultName
StartCopyJobRequest & WithSourceBackupVaultName(const char *value)
Definition: StartCopyJobRequest.h:163
Aws::Backup::Model::StartCopyJobRequest::SetLifecycle
void SetLifecycle(Lifecycle &&value)
Definition: StartCopyJobRequest.h:331
Aws::Backup::Model::StartCopyJobRequest::SetDestinationBackupVaultArn
void SetDestinationBackupVaultArn(const char *value)
Definition: StartCopyJobRequest.h:199
Aws::Backup::Model::StartCopyJobRequest::WithIdempotencyToken
StartCopyJobRequest & WithIdempotencyToken(const char *value)
Definition: StartCopyJobRequest.h:318
Aws::Backup::Model::StartCopyJobRequest::SetDestinationBackupVaultArn
void SetDestinationBackupVaultArn(const Aws::String &value)
Definition: StartCopyJobRequest.h:185
AWSString.h
Aws::Backup::Model::StartCopyJobRequest::WithLifecycle
StartCopyJobRequest & WithLifecycle(const Lifecycle &value)
Definition: StartCopyJobRequest.h:334
Aws::Backup::Model::StartCopyJobRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: StartCopyJobRequest.h:31
Aws::Backup::Model::StartCopyJobRequest::SetLifecycle
void SetLifecycle(const Lifecycle &value)
Definition: StartCopyJobRequest.h:328
Lifecycle.h
Backup_EXPORTS.h
Aws::Backup::Model::StartCopyJobRequest::DestinationBackupVaultArnHasBeenSet
bool DestinationBackupVaultArnHasBeenSet() const
Definition: StartCopyJobRequest.h:178
Aws
Definition: AccessManagementClient.h:15
Aws::Backup::Model::StartCopyJobRequest::SetIamRoleArn
void SetIamRoleArn(const Aws::String &value)
Definition: StartCopyJobRequest.h:239
Aws::Backup::Model::StartCopyJobRequest::GetIdempotencyToken
const Aws::String & GetIdempotencyToken() const
Definition: StartCopyJobRequest.h:276
Aws::Backup::Model::StartCopyJobRequest
Definition: StartCopyJobRequest.h:23
Aws::Backup::Model::StartCopyJobRequest::SetRecoveryPointArn
void SetRecoveryPointArn(Aws::String &&value)
Definition: StartCopyJobRequest.h:66
Aws::Backup::Model::StartCopyJobRequest::SetIdempotencyToken
void SetIdempotencyToken(const Aws::String &value)
Definition: StartCopyJobRequest.h:288
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Backup::Model::StartCopyJobRequest::SetSourceBackupVaultName
void SetSourceBackupVaultName(const Aws::String &value)
Definition: StartCopyJobRequest.h:123
Aws::Backup::Model::StartCopyJobRequest::SetDestinationBackupVaultArn
void SetDestinationBackupVaultArn(Aws::String &&value)
Definition: StartCopyJobRequest.h:192
Aws::Backup::Model::StartCopyJobRequest::GetDestinationBackupVaultArn
const Aws::String & GetDestinationBackupVaultArn() const
Definition: StartCopyJobRequest.h:171
Aws::Backup::Model::StartCopyJobRequest::SetIdempotencyToken
void SetIdempotencyToken(const char *value)
Definition: StartCopyJobRequest.h:300