AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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
13namespace Aws
14{
15namespace Backup
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_BACKUP_API StartCopyJobRequest();
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_BACKUP_API Aws::String SerializePayload() const override;
34
35
37
43 inline const Aws::String& GetRecoveryPointArn() const{ return m_recoveryPointArn; }
44 inline bool RecoveryPointArnHasBeenSet() const { return m_recoveryPointArnHasBeenSet; }
45 inline void SetRecoveryPointArn(const Aws::String& value) { m_recoveryPointArnHasBeenSet = true; m_recoveryPointArn = value; }
46 inline void SetRecoveryPointArn(Aws::String&& value) { m_recoveryPointArnHasBeenSet = true; m_recoveryPointArn = std::move(value); }
47 inline void SetRecoveryPointArn(const char* value) { m_recoveryPointArnHasBeenSet = true; m_recoveryPointArn.assign(value); }
48 inline StartCopyJobRequest& WithRecoveryPointArn(const Aws::String& value) { SetRecoveryPointArn(value); return *this;}
49 inline StartCopyJobRequest& WithRecoveryPointArn(Aws::String&& value) { SetRecoveryPointArn(std::move(value)); return *this;}
50 inline StartCopyJobRequest& WithRecoveryPointArn(const char* value) { SetRecoveryPointArn(value); return *this;}
52
54
59 inline const Aws::String& GetSourceBackupVaultName() const{ return m_sourceBackupVaultName; }
60 inline bool SourceBackupVaultNameHasBeenSet() const { return m_sourceBackupVaultNameHasBeenSet; }
61 inline void SetSourceBackupVaultName(const Aws::String& value) { m_sourceBackupVaultNameHasBeenSet = true; m_sourceBackupVaultName = value; }
62 inline void SetSourceBackupVaultName(Aws::String&& value) { m_sourceBackupVaultNameHasBeenSet = true; m_sourceBackupVaultName = std::move(value); }
63 inline void SetSourceBackupVaultName(const char* value) { m_sourceBackupVaultNameHasBeenSet = true; m_sourceBackupVaultName.assign(value); }
65 inline StartCopyJobRequest& WithSourceBackupVaultName(Aws::String&& value) { SetSourceBackupVaultName(std::move(value)); return *this;}
66 inline StartCopyJobRequest& WithSourceBackupVaultName(const char* value) { SetSourceBackupVaultName(value); return *this;}
68
70
75 inline const Aws::String& GetDestinationBackupVaultArn() const{ return m_destinationBackupVaultArn; }
76 inline bool DestinationBackupVaultArnHasBeenSet() const { return m_destinationBackupVaultArnHasBeenSet; }
77 inline void SetDestinationBackupVaultArn(const Aws::String& value) { m_destinationBackupVaultArnHasBeenSet = true; m_destinationBackupVaultArn = value; }
78 inline void SetDestinationBackupVaultArn(Aws::String&& value) { m_destinationBackupVaultArnHasBeenSet = true; m_destinationBackupVaultArn = std::move(value); }
79 inline void SetDestinationBackupVaultArn(const char* value) { m_destinationBackupVaultArnHasBeenSet = true; m_destinationBackupVaultArn.assign(value); }
82 inline StartCopyJobRequest& WithDestinationBackupVaultArn(const char* value) { SetDestinationBackupVaultArn(value); return *this;}
84
86
90 inline const Aws::String& GetIamRoleArn() const{ return m_iamRoleArn; }
91 inline bool IamRoleArnHasBeenSet() const { return m_iamRoleArnHasBeenSet; }
92 inline void SetIamRoleArn(const Aws::String& value) { m_iamRoleArnHasBeenSet = true; m_iamRoleArn = value; }
93 inline void SetIamRoleArn(Aws::String&& value) { m_iamRoleArnHasBeenSet = true; m_iamRoleArn = std::move(value); }
94 inline void SetIamRoleArn(const char* value) { m_iamRoleArnHasBeenSet = true; m_iamRoleArn.assign(value); }
95 inline StartCopyJobRequest& WithIamRoleArn(const Aws::String& value) { SetIamRoleArn(value); return *this;}
96 inline StartCopyJobRequest& WithIamRoleArn(Aws::String&& value) { SetIamRoleArn(std::move(value)); return *this;}
97 inline StartCopyJobRequest& WithIamRoleArn(const char* value) { SetIamRoleArn(value); return *this;}
99
101
107 inline const Aws::String& GetIdempotencyToken() const{ return m_idempotencyToken; }
108 inline bool IdempotencyTokenHasBeenSet() const { return m_idempotencyTokenHasBeenSet; }
109 inline void SetIdempotencyToken(const Aws::String& value) { m_idempotencyTokenHasBeenSet = true; m_idempotencyToken = value; }
110 inline void SetIdempotencyToken(Aws::String&& value) { m_idempotencyTokenHasBeenSet = true; m_idempotencyToken = std::move(value); }
111 inline void SetIdempotencyToken(const char* value) { m_idempotencyTokenHasBeenSet = true; m_idempotencyToken.assign(value); }
112 inline StartCopyJobRequest& WithIdempotencyToken(const Aws::String& value) { SetIdempotencyToken(value); return *this;}
113 inline StartCopyJobRequest& WithIdempotencyToken(Aws::String&& value) { SetIdempotencyToken(std::move(value)); return *this;}
114 inline StartCopyJobRequest& WithIdempotencyToken(const char* value) { SetIdempotencyToken(value); return *this;}
116
118
119 inline const Lifecycle& GetLifecycle() const{ return m_lifecycle; }
120 inline bool LifecycleHasBeenSet() const { return m_lifecycleHasBeenSet; }
121 inline void SetLifecycle(const Lifecycle& value) { m_lifecycleHasBeenSet = true; m_lifecycle = value; }
122 inline void SetLifecycle(Lifecycle&& value) { m_lifecycleHasBeenSet = true; m_lifecycle = std::move(value); }
123 inline StartCopyJobRequest& WithLifecycle(const Lifecycle& value) { SetLifecycle(value); return *this;}
124 inline StartCopyJobRequest& WithLifecycle(Lifecycle&& value) { SetLifecycle(std::move(value)); return *this;}
126 private:
127
128 Aws::String m_recoveryPointArn;
129 bool m_recoveryPointArnHasBeenSet = false;
130
131 Aws::String m_sourceBackupVaultName;
132 bool m_sourceBackupVaultNameHasBeenSet = false;
133
134 Aws::String m_destinationBackupVaultArn;
135 bool m_destinationBackupVaultArnHasBeenSet = false;
136
137 Aws::String m_iamRoleArn;
138 bool m_iamRoleArnHasBeenSet = false;
139
140 Aws::String m_idempotencyToken;
141 bool m_idempotencyTokenHasBeenSet = false;
142
143 Lifecycle m_lifecycle;
144 bool m_lifecycleHasBeenSet = false;
145 };
146
147} // namespace Model
148} // namespace Backup
149} // namespace Aws
StartCopyJobRequest & WithSourceBackupVaultName(const char *value)
const Aws::String & GetDestinationBackupVaultArn() const
StartCopyJobRequest & WithIdempotencyToken(Aws::String &&value)
void SetIdempotencyToken(const Aws::String &value)
const Aws::String & GetSourceBackupVaultName() const
StartCopyJobRequest & WithIamRoleArn(Aws::String &&value)
StartCopyJobRequest & WithDestinationBackupVaultArn(const Aws::String &value)
StartCopyJobRequest & WithLifecycle(Lifecycle &&value)
void SetIamRoleArn(const Aws::String &value)
void SetDestinationBackupVaultArn(Aws::String &&value)
void SetRecoveryPointArn(Aws::String &&value)
const Aws::String & GetIamRoleArn() const
StartCopyJobRequest & WithRecoveryPointArn(Aws::String &&value)
StartCopyJobRequest & WithIdempotencyToken(const Aws::String &value)
AWS_BACKUP_API Aws::String SerializePayload() const override
void SetSourceBackupVaultName(Aws::String &&value)
void SetRecoveryPointArn(const Aws::String &value)
StartCopyJobRequest & WithLifecycle(const Lifecycle &value)
void SetSourceBackupVaultName(const Aws::String &value)
void SetDestinationBackupVaultArn(const Aws::String &value)
StartCopyJobRequest & WithSourceBackupVaultName(Aws::String &&value)
StartCopyJobRequest & WithIdempotencyToken(const char *value)
virtual const char * GetServiceRequestName() const override
StartCopyJobRequest & WithIamRoleArn(const char *value)
const Aws::String & GetIdempotencyToken() const
const Aws::String & GetRecoveryPointArn() const
StartCopyJobRequest & WithSourceBackupVaultName(const Aws::String &value)
void SetLifecycle(const Lifecycle &value)
StartCopyJobRequest & WithDestinationBackupVaultArn(const char *value)
StartCopyJobRequest & WithRecoveryPointArn(const Aws::String &value)
void SetDestinationBackupVaultArn(const char *value)
StartCopyJobRequest & WithIamRoleArn(const Aws::String &value)
StartCopyJobRequest & WithDestinationBackupVaultArn(Aws::String &&value)
StartCopyJobRequest & WithRecoveryPointArn(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String