AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
StartBackupJobRequest.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 <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/backup/model/Index.h>
13#include <utility>
14#include <aws/core/utils/UUID.h>
15
16namespace Aws
17{
18namespace Backup
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_BACKUP_API StartBackupJobRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "StartBackupJob"; }
35
36 AWS_BACKUP_API Aws::String SerializePayload() const override;
37
38
40
45 inline const Aws::String& GetBackupVaultName() const { return m_backupVaultName; }
46 inline bool BackupVaultNameHasBeenSet() const { return m_backupVaultNameHasBeenSet; }
47 template<typename BackupVaultNameT = Aws::String>
48 void SetBackupVaultName(BackupVaultNameT&& value) { m_backupVaultNameHasBeenSet = true; m_backupVaultName = std::forward<BackupVaultNameT>(value); }
49 template<typename BackupVaultNameT = Aws::String>
50 StartBackupJobRequest& WithBackupVaultName(BackupVaultNameT&& value) { SetBackupVaultName(std::forward<BackupVaultNameT>(value)); return *this;}
52
54
58 inline const Aws::String& GetResourceArn() const { return m_resourceArn; }
59 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
60 template<typename ResourceArnT = Aws::String>
61 void SetResourceArn(ResourceArnT&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::forward<ResourceArnT>(value); }
62 template<typename ResourceArnT = Aws::String>
63 StartBackupJobRequest& WithResourceArn(ResourceArnT&& value) { SetResourceArn(std::forward<ResourceArnT>(value)); return *this;}
65
67
71 inline const Aws::String& GetIamRoleArn() const { return m_iamRoleArn; }
72 inline bool IamRoleArnHasBeenSet() const { return m_iamRoleArnHasBeenSet; }
73 template<typename IamRoleArnT = Aws::String>
74 void SetIamRoleArn(IamRoleArnT&& value) { m_iamRoleArnHasBeenSet = true; m_iamRoleArn = std::forward<IamRoleArnT>(value); }
75 template<typename IamRoleArnT = Aws::String>
76 StartBackupJobRequest& WithIamRoleArn(IamRoleArnT&& value) { SetIamRoleArn(std::forward<IamRoleArnT>(value)); return *this;}
78
80
86 inline const Aws::String& GetIdempotencyToken() const { return m_idempotencyToken; }
87 inline bool IdempotencyTokenHasBeenSet() const { return m_idempotencyTokenHasBeenSet; }
88 template<typename IdempotencyTokenT = Aws::String>
89 void SetIdempotencyToken(IdempotencyTokenT&& value) { m_idempotencyTokenHasBeenSet = true; m_idempotencyToken = std::forward<IdempotencyTokenT>(value); }
90 template<typename IdempotencyTokenT = Aws::String>
91 StartBackupJobRequest& WithIdempotencyToken(IdempotencyTokenT&& value) { SetIdempotencyToken(std::forward<IdempotencyTokenT>(value)); return *this;}
93
95
109 inline long long GetStartWindowMinutes() const { return m_startWindowMinutes; }
110 inline bool StartWindowMinutesHasBeenSet() const { return m_startWindowMinutesHasBeenSet; }
111 inline void SetStartWindowMinutes(long long value) { m_startWindowMinutesHasBeenSet = true; m_startWindowMinutes = value; }
112 inline StartBackupJobRequest& WithStartWindowMinutes(long long value) { SetStartWindowMinutes(value); return *this;}
114
116
124 inline long long GetCompleteWindowMinutes() const { return m_completeWindowMinutes; }
125 inline bool CompleteWindowMinutesHasBeenSet() const { return m_completeWindowMinutesHasBeenSet; }
126 inline void SetCompleteWindowMinutes(long long value) { m_completeWindowMinutesHasBeenSet = true; m_completeWindowMinutes = value; }
127 inline StartBackupJobRequest& WithCompleteWindowMinutes(long long value) { SetCompleteWindowMinutes(value); return *this;}
129
131
145 inline const Lifecycle& GetLifecycle() const { return m_lifecycle; }
146 inline bool LifecycleHasBeenSet() const { return m_lifecycleHasBeenSet; }
147 template<typename LifecycleT = Lifecycle>
148 void SetLifecycle(LifecycleT&& value) { m_lifecycleHasBeenSet = true; m_lifecycle = std::forward<LifecycleT>(value); }
149 template<typename LifecycleT = Lifecycle>
150 StartBackupJobRequest& WithLifecycle(LifecycleT&& value) { SetLifecycle(std::forward<LifecycleT>(value)); return *this;}
152
154
157 inline const Aws::Map<Aws::String, Aws::String>& GetRecoveryPointTags() const { return m_recoveryPointTags; }
158 inline bool RecoveryPointTagsHasBeenSet() const { return m_recoveryPointTagsHasBeenSet; }
159 template<typename RecoveryPointTagsT = Aws::Map<Aws::String, Aws::String>>
160 void SetRecoveryPointTags(RecoveryPointTagsT&& value) { m_recoveryPointTagsHasBeenSet = true; m_recoveryPointTags = std::forward<RecoveryPointTagsT>(value); }
161 template<typename RecoveryPointTagsT = Aws::Map<Aws::String, Aws::String>>
162 StartBackupJobRequest& WithRecoveryPointTags(RecoveryPointTagsT&& value) { SetRecoveryPointTags(std::forward<RecoveryPointTagsT>(value)); return *this;}
163 template<typename RecoveryPointTagsKeyT = Aws::String, typename RecoveryPointTagsValueT = Aws::String>
164 StartBackupJobRequest& AddRecoveryPointTags(RecoveryPointTagsKeyT&& key, RecoveryPointTagsValueT&& value) {
165 m_recoveryPointTagsHasBeenSet = true; m_recoveryPointTags.emplace(std::forward<RecoveryPointTagsKeyT>(key), std::forward<RecoveryPointTagsValueT>(value)); return *this;
166 }
168
170
178 inline const Aws::Map<Aws::String, Aws::String>& GetBackupOptions() const { return m_backupOptions; }
179 inline bool BackupOptionsHasBeenSet() const { return m_backupOptionsHasBeenSet; }
180 template<typename BackupOptionsT = Aws::Map<Aws::String, Aws::String>>
181 void SetBackupOptions(BackupOptionsT&& value) { m_backupOptionsHasBeenSet = true; m_backupOptions = std::forward<BackupOptionsT>(value); }
182 template<typename BackupOptionsT = Aws::Map<Aws::String, Aws::String>>
183 StartBackupJobRequest& WithBackupOptions(BackupOptionsT&& value) { SetBackupOptions(std::forward<BackupOptionsT>(value)); return *this;}
184 template<typename BackupOptionsKeyT = Aws::String, typename BackupOptionsValueT = Aws::String>
185 StartBackupJobRequest& AddBackupOptions(BackupOptionsKeyT&& key, BackupOptionsValueT&& value) {
186 m_backupOptionsHasBeenSet = true; m_backupOptions.emplace(std::forward<BackupOptionsKeyT>(key), std::forward<BackupOptionsValueT>(value)); return *this;
187 }
189
191
202 inline Index GetIndex() const { return m_index; }
203 inline bool IndexHasBeenSet() const { return m_indexHasBeenSet; }
204 inline void SetIndex(Index value) { m_indexHasBeenSet = true; m_index = value; }
205 inline StartBackupJobRequest& WithIndex(Index value) { SetIndex(value); return *this;}
207 private:
208
209 Aws::String m_backupVaultName;
210 bool m_backupVaultNameHasBeenSet = false;
211
212 Aws::String m_resourceArn;
213 bool m_resourceArnHasBeenSet = false;
214
215 Aws::String m_iamRoleArn;
216 bool m_iamRoleArnHasBeenSet = false;
217
219 bool m_idempotencyTokenHasBeenSet = true;
220
221 long long m_startWindowMinutes{0};
222 bool m_startWindowMinutesHasBeenSet = false;
223
224 long long m_completeWindowMinutes{0};
225 bool m_completeWindowMinutesHasBeenSet = false;
226
227 Lifecycle m_lifecycle;
228 bool m_lifecycleHasBeenSet = false;
229
230 Aws::Map<Aws::String, Aws::String> m_recoveryPointTags;
231 bool m_recoveryPointTagsHasBeenSet = false;
232
234 bool m_backupOptionsHasBeenSet = false;
235
236 Index m_index{Index::NOT_SET};
237 bool m_indexHasBeenSet = false;
238 };
239
240} // namespace Model
241} // namespace Backup
242} // namespace Aws
StartBackupJobRequest & WithBackupVaultName(BackupVaultNameT &&value)
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)
const Aws::Map< Aws::String, Aws::String > & GetRecoveryPointTags() const
void SetBackupVaultName(BackupVaultNameT &&value)
void SetRecoveryPointTags(RecoveryPointTagsT &&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