AWS SDK for C++

AWS SDK for C++ Version 1.11.750

Loading...
Searching...
No Matches
StartBackupJobRequest.h
1
6#pragma once
7#include <aws/backup/BackupRequest.h>
8#include <aws/backup/Backup_EXPORTS.h>
9#include <aws/backup/model/Index.h>
10#include <aws/backup/model/Lifecycle.h>
11#include <aws/core/utils/UUID.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Backup {
19namespace Model {
20
24 public:
25 AWS_BACKUP_API StartBackupJobRequest() = default;
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 "StartBackupJob"; }
32
33 AWS_BACKUP_API Aws::String SerializePayload() const override;
34
36
41 inline const Aws::String& GetBackupVaultName() const { return m_backupVaultName; }
42 inline bool BackupVaultNameHasBeenSet() const { return m_backupVaultNameHasBeenSet; }
43 template <typename BackupVaultNameT = Aws::String>
44 void SetBackupVaultName(BackupVaultNameT&& value) {
45 m_backupVaultNameHasBeenSet = true;
46 m_backupVaultName = std::forward<BackupVaultNameT>(value);
47 }
48 template <typename BackupVaultNameT = Aws::String>
49 StartBackupJobRequest& WithBackupVaultName(BackupVaultNameT&& value) {
50 SetBackupVaultName(std::forward<BackupVaultNameT>(value));
51 return *this;
52 }
54
56
63 inline const Aws::String& GetLogicallyAirGappedBackupVaultArn() const { return m_logicallyAirGappedBackupVaultArn; }
64 inline bool LogicallyAirGappedBackupVaultArnHasBeenSet() const { return m_logicallyAirGappedBackupVaultArnHasBeenSet; }
65 template <typename LogicallyAirGappedBackupVaultArnT = Aws::String>
66 void SetLogicallyAirGappedBackupVaultArn(LogicallyAirGappedBackupVaultArnT&& value) {
67 m_logicallyAirGappedBackupVaultArnHasBeenSet = true;
68 m_logicallyAirGappedBackupVaultArn = std::forward<LogicallyAirGappedBackupVaultArnT>(value);
69 }
70 template <typename LogicallyAirGappedBackupVaultArnT = Aws::String>
71 StartBackupJobRequest& WithLogicallyAirGappedBackupVaultArn(LogicallyAirGappedBackupVaultArnT&& value) {
72 SetLogicallyAirGappedBackupVaultArn(std::forward<LogicallyAirGappedBackupVaultArnT>(value));
73 return *this;
74 }
76
78
82 inline const Aws::String& GetResourceArn() const { return m_resourceArn; }
83 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
84 template <typename ResourceArnT = Aws::String>
85 void SetResourceArn(ResourceArnT&& value) {
86 m_resourceArnHasBeenSet = true;
87 m_resourceArn = std::forward<ResourceArnT>(value);
88 }
89 template <typename ResourceArnT = Aws::String>
90 StartBackupJobRequest& WithResourceArn(ResourceArnT&& value) {
91 SetResourceArn(std::forward<ResourceArnT>(value));
92 return *this;
93 }
95
97
101 inline const Aws::String& GetIamRoleArn() const { return m_iamRoleArn; }
102 inline bool IamRoleArnHasBeenSet() const { return m_iamRoleArnHasBeenSet; }
103 template <typename IamRoleArnT = Aws::String>
104 void SetIamRoleArn(IamRoleArnT&& value) {
105 m_iamRoleArnHasBeenSet = true;
106 m_iamRoleArn = std::forward<IamRoleArnT>(value);
107 }
108 template <typename IamRoleArnT = Aws::String>
109 StartBackupJobRequest& WithIamRoleArn(IamRoleArnT&& value) {
110 SetIamRoleArn(std::forward<IamRoleArnT>(value));
111 return *this;
112 }
114
116
122 inline const Aws::String& GetIdempotencyToken() const { return m_idempotencyToken; }
123 inline bool IdempotencyTokenHasBeenSet() const { return m_idempotencyTokenHasBeenSet; }
124 template <typename IdempotencyTokenT = Aws::String>
125 void SetIdempotencyToken(IdempotencyTokenT&& value) {
126 m_idempotencyTokenHasBeenSet = true;
127 m_idempotencyToken = std::forward<IdempotencyTokenT>(value);
128 }
129 template <typename IdempotencyTokenT = Aws::String>
130 StartBackupJobRequest& WithIdempotencyToken(IdempotencyTokenT&& value) {
131 SetIdempotencyToken(std::forward<IdempotencyTokenT>(value));
132 return *this;
133 }
135
137
151 inline long long GetStartWindowMinutes() const { return m_startWindowMinutes; }
152 inline bool StartWindowMinutesHasBeenSet() const { return m_startWindowMinutesHasBeenSet; }
153 inline void SetStartWindowMinutes(long long value) {
154 m_startWindowMinutesHasBeenSet = true;
155 m_startWindowMinutes = value;
156 }
159 return *this;
160 }
162
164
172 inline long long GetCompleteWindowMinutes() const { return m_completeWindowMinutes; }
173 inline bool CompleteWindowMinutesHasBeenSet() const { return m_completeWindowMinutesHasBeenSet; }
174 inline void SetCompleteWindowMinutes(long long value) {
175 m_completeWindowMinutesHasBeenSet = true;
176 m_completeWindowMinutes = value;
177 }
180 return *this;
181 }
183
185
199 inline const Lifecycle& GetLifecycle() const { return m_lifecycle; }
200 inline bool LifecycleHasBeenSet() const { return m_lifecycleHasBeenSet; }
201 template <typename LifecycleT = Lifecycle>
202 void SetLifecycle(LifecycleT&& value) {
203 m_lifecycleHasBeenSet = true;
204 m_lifecycle = std::forward<LifecycleT>(value);
205 }
206 template <typename LifecycleT = Lifecycle>
208 SetLifecycle(std::forward<LifecycleT>(value));
209 return *this;
210 }
212
214
217 inline const Aws::Map<Aws::String, Aws::String>& GetRecoveryPointTags() const { return m_recoveryPointTags; }
218 inline bool RecoveryPointTagsHasBeenSet() const { return m_recoveryPointTagsHasBeenSet; }
219 template <typename RecoveryPointTagsT = Aws::Map<Aws::String, Aws::String>>
220 void SetRecoveryPointTags(RecoveryPointTagsT&& value) {
221 m_recoveryPointTagsHasBeenSet = true;
222 m_recoveryPointTags = std::forward<RecoveryPointTagsT>(value);
223 }
224 template <typename RecoveryPointTagsT = Aws::Map<Aws::String, Aws::String>>
225 StartBackupJobRequest& WithRecoveryPointTags(RecoveryPointTagsT&& value) {
226 SetRecoveryPointTags(std::forward<RecoveryPointTagsT>(value));
227 return *this;
228 }
229 template <typename RecoveryPointTagsKeyT = Aws::String, typename RecoveryPointTagsValueT = Aws::String>
230 StartBackupJobRequest& AddRecoveryPointTags(RecoveryPointTagsKeyT&& key, RecoveryPointTagsValueT&& value) {
231 m_recoveryPointTagsHasBeenSet = true;
232 m_recoveryPointTags.emplace(std::forward<RecoveryPointTagsKeyT>(key), std::forward<RecoveryPointTagsValueT>(value));
233 return *this;
234 }
236
238
246 inline const Aws::Map<Aws::String, Aws::String>& GetBackupOptions() const { return m_backupOptions; }
247 inline bool BackupOptionsHasBeenSet() const { return m_backupOptionsHasBeenSet; }
248 template <typename BackupOptionsT = Aws::Map<Aws::String, Aws::String>>
249 void SetBackupOptions(BackupOptionsT&& value) {
250 m_backupOptionsHasBeenSet = true;
251 m_backupOptions = std::forward<BackupOptionsT>(value);
252 }
253 template <typename BackupOptionsT = Aws::Map<Aws::String, Aws::String>>
254 StartBackupJobRequest& WithBackupOptions(BackupOptionsT&& value) {
255 SetBackupOptions(std::forward<BackupOptionsT>(value));
256 return *this;
257 }
258 template <typename BackupOptionsKeyT = Aws::String, typename BackupOptionsValueT = Aws::String>
259 StartBackupJobRequest& AddBackupOptions(BackupOptionsKeyT&& key, BackupOptionsValueT&& value) {
260 m_backupOptionsHasBeenSet = true;
261 m_backupOptions.emplace(std::forward<BackupOptionsKeyT>(key), std::forward<BackupOptionsValueT>(value));
262 return *this;
263 }
265
267
278 inline Index GetIndex() const { return m_index; }
279 inline bool IndexHasBeenSet() const { return m_indexHasBeenSet; }
280 inline void SetIndex(Index value) {
281 m_indexHasBeenSet = true;
282 m_index = value;
283 }
285 SetIndex(value);
286 return *this;
287 }
289 private:
290 Aws::String m_backupVaultName;
291
292 Aws::String m_logicallyAirGappedBackupVaultArn;
293
294 Aws::String m_resourceArn;
295
296 Aws::String m_iamRoleArn;
297
299
300 long long m_startWindowMinutes{0};
301
302 long long m_completeWindowMinutes{0};
303
304 Lifecycle m_lifecycle;
305
306 Aws::Map<Aws::String, Aws::String> m_recoveryPointTags;
307
309
310 Index m_index{Index::NOT_SET};
311 bool m_backupVaultNameHasBeenSet = false;
312 bool m_logicallyAirGappedBackupVaultArnHasBeenSet = false;
313 bool m_resourceArnHasBeenSet = false;
314 bool m_iamRoleArnHasBeenSet = false;
315 bool m_idempotencyTokenHasBeenSet = true;
316 bool m_startWindowMinutesHasBeenSet = false;
317 bool m_completeWindowMinutesHasBeenSet = false;
318 bool m_lifecycleHasBeenSet = false;
319 bool m_recoveryPointTagsHasBeenSet = false;
320 bool m_backupOptionsHasBeenSet = false;
321 bool m_indexHasBeenSet = false;
322};
323
324} // namespace Model
325} // namespace Backup
326} // namespace Aws
StartBackupJobRequest & WithBackupVaultName(BackupVaultNameT &&value)
const Aws::String & GetLogicallyAirGappedBackupVaultArn() const
const Aws::Map< Aws::String, Aws::String > & GetBackupOptions() const
StartBackupJobRequest & WithResourceArn(ResourceArnT &&value)
StartBackupJobRequest & WithIdempotencyToken(IdempotencyTokenT &&value)
StartBackupJobRequest & WithStartWindowMinutes(long long value)
StartBackupJobRequest & WithLifecycle(LifecycleT &&value)
StartBackupJobRequest & AddBackupOptions(BackupOptionsKeyT &&key, BackupOptionsValueT &&value)
StartBackupJobRequest & WithIndex(Index value)
void SetLogicallyAirGappedBackupVaultArn(LogicallyAirGappedBackupVaultArnT &&value)
const Aws::Map< Aws::String, Aws::String > & GetRecoveryPointTags() const
void SetBackupVaultName(BackupVaultNameT &&value)
void SetRecoveryPointTags(RecoveryPointTagsT &&value)
StartBackupJobRequest & WithLogicallyAirGappedBackupVaultArn(LogicallyAirGappedBackupVaultArnT &&value)
StartBackupJobRequest & WithBackupOptions(BackupOptionsT &&value)
StartBackupJobRequest & WithRecoveryPointTags(RecoveryPointTagsT &&value)
void SetIdempotencyToken(IdempotencyTokenT &&value)
StartBackupJobRequest & WithIamRoleArn(IamRoleArnT &&value)
StartBackupJobRequest & AddRecoveryPointTags(RecoveryPointTagsKeyT &&key, RecoveryPointTagsValueT &&value)
virtual const char * GetServiceRequestName() const override
AWS_BACKUP_API StartBackupJobRequest()=default
StartBackupJobRequest & WithCompleteWindowMinutes(long long value)
AWS_BACKUP_API Aws::String SerializePayload() const override
static Aws::Utils::UUID PseudoRandomUUID()
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String