AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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 <utility>
13
14namespace Aws
15{
16namespace Backup
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_BACKUP_API StartBackupJobRequest();
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "StartBackupJob"; }
33
34 AWS_BACKUP_API Aws::String SerializePayload() const override;
35
36
38
43 inline const Aws::String& GetBackupVaultName() const{ return m_backupVaultName; }
44 inline bool BackupVaultNameHasBeenSet() const { return m_backupVaultNameHasBeenSet; }
45 inline void SetBackupVaultName(const Aws::String& value) { m_backupVaultNameHasBeenSet = true; m_backupVaultName = value; }
46 inline void SetBackupVaultName(Aws::String&& value) { m_backupVaultNameHasBeenSet = true; m_backupVaultName = std::move(value); }
47 inline void SetBackupVaultName(const char* value) { m_backupVaultNameHasBeenSet = true; m_backupVaultName.assign(value); }
48 inline StartBackupJobRequest& WithBackupVaultName(const Aws::String& value) { SetBackupVaultName(value); return *this;}
49 inline StartBackupJobRequest& WithBackupVaultName(Aws::String&& value) { SetBackupVaultName(std::move(value)); return *this;}
50 inline StartBackupJobRequest& WithBackupVaultName(const char* value) { SetBackupVaultName(value); return *this;}
52
54
58 inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
59 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
60 inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
61 inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
62 inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
63 inline StartBackupJobRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
64 inline StartBackupJobRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
65 inline StartBackupJobRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
67
69
73 inline const Aws::String& GetIamRoleArn() const{ return m_iamRoleArn; }
74 inline bool IamRoleArnHasBeenSet() const { return m_iamRoleArnHasBeenSet; }
75 inline void SetIamRoleArn(const Aws::String& value) { m_iamRoleArnHasBeenSet = true; m_iamRoleArn = value; }
76 inline void SetIamRoleArn(Aws::String&& value) { m_iamRoleArnHasBeenSet = true; m_iamRoleArn = std::move(value); }
77 inline void SetIamRoleArn(const char* value) { m_iamRoleArnHasBeenSet = true; m_iamRoleArn.assign(value); }
78 inline StartBackupJobRequest& WithIamRoleArn(const Aws::String& value) { SetIamRoleArn(value); return *this;}
79 inline StartBackupJobRequest& WithIamRoleArn(Aws::String&& value) { SetIamRoleArn(std::move(value)); return *this;}
80 inline StartBackupJobRequest& WithIamRoleArn(const char* value) { SetIamRoleArn(value); return *this;}
82
84
90 inline const Aws::String& GetIdempotencyToken() const{ return m_idempotencyToken; }
91 inline bool IdempotencyTokenHasBeenSet() const { return m_idempotencyTokenHasBeenSet; }
92 inline void SetIdempotencyToken(const Aws::String& value) { m_idempotencyTokenHasBeenSet = true; m_idempotencyToken = value; }
93 inline void SetIdempotencyToken(Aws::String&& value) { m_idempotencyTokenHasBeenSet = true; m_idempotencyToken = std::move(value); }
94 inline void SetIdempotencyToken(const char* value) { m_idempotencyTokenHasBeenSet = true; m_idempotencyToken.assign(value); }
95 inline StartBackupJobRequest& WithIdempotencyToken(const Aws::String& value) { SetIdempotencyToken(value); return *this;}
96 inline StartBackupJobRequest& WithIdempotencyToken(Aws::String&& value) { SetIdempotencyToken(std::move(value)); return *this;}
97 inline StartBackupJobRequest& WithIdempotencyToken(const char* value) { SetIdempotencyToken(value); return *this;}
99
101
115 inline long long GetStartWindowMinutes() const{ return m_startWindowMinutes; }
116 inline bool StartWindowMinutesHasBeenSet() const { return m_startWindowMinutesHasBeenSet; }
117 inline void SetStartWindowMinutes(long long value) { m_startWindowMinutesHasBeenSet = true; m_startWindowMinutes = value; }
118 inline StartBackupJobRequest& WithStartWindowMinutes(long long value) { SetStartWindowMinutes(value); return *this;}
120
122
130 inline long long GetCompleteWindowMinutes() const{ return m_completeWindowMinutes; }
131 inline bool CompleteWindowMinutesHasBeenSet() const { return m_completeWindowMinutesHasBeenSet; }
132 inline void SetCompleteWindowMinutes(long long value) { m_completeWindowMinutesHasBeenSet = true; m_completeWindowMinutes = value; }
133 inline StartBackupJobRequest& WithCompleteWindowMinutes(long long value) { SetCompleteWindowMinutes(value); return *this;}
135
137
151 inline const Lifecycle& GetLifecycle() const{ return m_lifecycle; }
152 inline bool LifecycleHasBeenSet() const { return m_lifecycleHasBeenSet; }
153 inline void SetLifecycle(const Lifecycle& value) { m_lifecycleHasBeenSet = true; m_lifecycle = value; }
154 inline void SetLifecycle(Lifecycle&& value) { m_lifecycleHasBeenSet = true; m_lifecycle = std::move(value); }
155 inline StartBackupJobRequest& WithLifecycle(const Lifecycle& value) { SetLifecycle(value); return *this;}
156 inline StartBackupJobRequest& WithLifecycle(Lifecycle&& value) { SetLifecycle(std::move(value)); return *this;}
158
160
163 inline const Aws::Map<Aws::String, Aws::String>& GetRecoveryPointTags() const{ return m_recoveryPointTags; }
164 inline bool RecoveryPointTagsHasBeenSet() const { return m_recoveryPointTagsHasBeenSet; }
165 inline void SetRecoveryPointTags(const Aws::Map<Aws::String, Aws::String>& value) { m_recoveryPointTagsHasBeenSet = true; m_recoveryPointTags = value; }
166 inline void SetRecoveryPointTags(Aws::Map<Aws::String, Aws::String>&& value) { m_recoveryPointTagsHasBeenSet = true; m_recoveryPointTags = std::move(value); }
169 inline StartBackupJobRequest& AddRecoveryPointTags(const Aws::String& key, const Aws::String& value) { m_recoveryPointTagsHasBeenSet = true; m_recoveryPointTags.emplace(key, value); return *this; }
170 inline StartBackupJobRequest& AddRecoveryPointTags(Aws::String&& key, const Aws::String& value) { m_recoveryPointTagsHasBeenSet = true; m_recoveryPointTags.emplace(std::move(key), value); return *this; }
171 inline StartBackupJobRequest& AddRecoveryPointTags(const Aws::String& key, Aws::String&& value) { m_recoveryPointTagsHasBeenSet = true; m_recoveryPointTags.emplace(key, std::move(value)); return *this; }
172 inline StartBackupJobRequest& AddRecoveryPointTags(Aws::String&& key, Aws::String&& value) { m_recoveryPointTagsHasBeenSet = true; m_recoveryPointTags.emplace(std::move(key), std::move(value)); return *this; }
173 inline StartBackupJobRequest& AddRecoveryPointTags(const char* key, Aws::String&& value) { m_recoveryPointTagsHasBeenSet = true; m_recoveryPointTags.emplace(key, std::move(value)); return *this; }
174 inline StartBackupJobRequest& AddRecoveryPointTags(Aws::String&& key, const char* value) { m_recoveryPointTagsHasBeenSet = true; m_recoveryPointTags.emplace(std::move(key), value); return *this; }
175 inline StartBackupJobRequest& AddRecoveryPointTags(const char* key, const char* value) { m_recoveryPointTagsHasBeenSet = true; m_recoveryPointTags.emplace(key, value); return *this; }
177
179
187 inline const Aws::Map<Aws::String, Aws::String>& GetBackupOptions() const{ return m_backupOptions; }
188 inline bool BackupOptionsHasBeenSet() const { return m_backupOptionsHasBeenSet; }
189 inline void SetBackupOptions(const Aws::Map<Aws::String, Aws::String>& value) { m_backupOptionsHasBeenSet = true; m_backupOptions = value; }
190 inline void SetBackupOptions(Aws::Map<Aws::String, Aws::String>&& value) { m_backupOptionsHasBeenSet = true; m_backupOptions = std::move(value); }
193 inline StartBackupJobRequest& AddBackupOptions(const Aws::String& key, const Aws::String& value) { m_backupOptionsHasBeenSet = true; m_backupOptions.emplace(key, value); return *this; }
194 inline StartBackupJobRequest& AddBackupOptions(Aws::String&& key, const Aws::String& value) { m_backupOptionsHasBeenSet = true; m_backupOptions.emplace(std::move(key), value); return *this; }
195 inline StartBackupJobRequest& AddBackupOptions(const Aws::String& key, Aws::String&& value) { m_backupOptionsHasBeenSet = true; m_backupOptions.emplace(key, std::move(value)); return *this; }
196 inline StartBackupJobRequest& AddBackupOptions(Aws::String&& key, Aws::String&& value) { m_backupOptionsHasBeenSet = true; m_backupOptions.emplace(std::move(key), std::move(value)); return *this; }
197 inline StartBackupJobRequest& AddBackupOptions(const char* key, Aws::String&& value) { m_backupOptionsHasBeenSet = true; m_backupOptions.emplace(key, std::move(value)); return *this; }
198 inline StartBackupJobRequest& AddBackupOptions(Aws::String&& key, const char* value) { m_backupOptionsHasBeenSet = true; m_backupOptions.emplace(std::move(key), value); return *this; }
199 inline StartBackupJobRequest& AddBackupOptions(const char* key, const char* value) { m_backupOptionsHasBeenSet = true; m_backupOptions.emplace(key, value); return *this; }
201 private:
202
203 Aws::String m_backupVaultName;
204 bool m_backupVaultNameHasBeenSet = false;
205
206 Aws::String m_resourceArn;
207 bool m_resourceArnHasBeenSet = false;
208
209 Aws::String m_iamRoleArn;
210 bool m_iamRoleArnHasBeenSet = false;
211
212 Aws::String m_idempotencyToken;
213 bool m_idempotencyTokenHasBeenSet = false;
214
215 long long m_startWindowMinutes;
216 bool m_startWindowMinutesHasBeenSet = false;
217
218 long long m_completeWindowMinutes;
219 bool m_completeWindowMinutesHasBeenSet = false;
220
221 Lifecycle m_lifecycle;
222 bool m_lifecycleHasBeenSet = false;
223
224 Aws::Map<Aws::String, Aws::String> m_recoveryPointTags;
225 bool m_recoveryPointTagsHasBeenSet = false;
226
228 bool m_backupOptionsHasBeenSet = false;
229 };
230
231} // namespace Model
232} // namespace Backup
233} // namespace Aws
StartBackupJobRequest & WithIdempotencyToken(const char *value)
StartBackupJobRequest & WithBackupVaultName(const Aws::String &value)
const Aws::Map< Aws::String, Aws::String > & GetBackupOptions() const
StartBackupJobRequest & WithLifecycle(Lifecycle &&value)
StartBackupJobRequest & WithResourceArn(Aws::String &&value)
void SetResourceArn(const Aws::String &value)
StartBackupJobRequest & WithIamRoleArn(const Aws::String &value)
StartBackupJobRequest & WithStartWindowMinutes(long long value)
StartBackupJobRequest & AddRecoveryPointTags(const char *key, Aws::String &&value)
void SetRecoveryPointTags(Aws::Map< Aws::String, Aws::String > &&value)
StartBackupJobRequest & AddRecoveryPointTags(const Aws::String &key, Aws::String &&value)
StartBackupJobRequest & WithResourceArn(const Aws::String &value)
StartBackupJobRequest & AddBackupOptions(const Aws::String &key, Aws::String &&value)
StartBackupJobRequest & AddBackupOptions(Aws::String &&key, Aws::String &&value)
StartBackupJobRequest & WithBackupOptions(Aws::Map< Aws::String, Aws::String > &&value)
StartBackupJobRequest & AddRecoveryPointTags(Aws::String &&key, const char *value)
StartBackupJobRequest & WithBackupOptions(const Aws::Map< Aws::String, Aws::String > &value)
const Aws::Map< Aws::String, Aws::String > & GetRecoveryPointTags() const
StartBackupJobRequest & WithBackupVaultName(Aws::String &&value)
StartBackupJobRequest & WithIamRoleArn(const char *value)
StartBackupJobRequest & WithIamRoleArn(Aws::String &&value)
StartBackupJobRequest & WithBackupVaultName(const char *value)
void SetRecoveryPointTags(const Aws::Map< Aws::String, Aws::String > &value)
StartBackupJobRequest & WithRecoveryPointTags(Aws::Map< Aws::String, Aws::String > &&value)
StartBackupJobRequest & AddBackupOptions(const Aws::String &key, const Aws::String &value)
void SetBackupVaultName(const Aws::String &value)
StartBackupJobRequest & AddBackupOptions(Aws::String &&key, const Aws::String &value)
StartBackupJobRequest & AddRecoveryPointTags(const Aws::String &key, const Aws::String &value)
StartBackupJobRequest & AddBackupOptions(Aws::String &&key, const char *value)
StartBackupJobRequest & WithIdempotencyToken(const Aws::String &value)
void SetBackupOptions(const Aws::Map< Aws::String, Aws::String > &value)
StartBackupJobRequest & WithIdempotencyToken(Aws::String &&value)
StartBackupJobRequest & AddRecoveryPointTags(Aws::String &&key, Aws::String &&value)
StartBackupJobRequest & WithRecoveryPointTags(const Aws::Map< Aws::String, Aws::String > &value)
StartBackupJobRequest & WithResourceArn(const char *value)
StartBackupJobRequest & AddRecoveryPointTags(const char *key, const char *value)
void SetIamRoleArn(const Aws::String &value)
StartBackupJobRequest & WithLifecycle(const Lifecycle &value)
StartBackupJobRequest & AddRecoveryPointTags(Aws::String &&key, const Aws::String &value)
void SetIdempotencyToken(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
void SetBackupOptions(Aws::Map< Aws::String, Aws::String > &&value)
StartBackupJobRequest & WithCompleteWindowMinutes(long long value)
StartBackupJobRequest & AddBackupOptions(const char *key, Aws::String &&value)
AWS_BACKUP_API Aws::String SerializePayload() const override
StartBackupJobRequest & AddBackupOptions(const char *key, const char *value)
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