AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
BackupRule.h
1
6#pragma once
7#include <aws/backup/Backup_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/backup/model/Lifecycle.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/backup/model/CopyAction.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace Backup
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_BACKUP_API BackupRule();
40 AWS_BACKUP_API BackupRule(Aws::Utils::Json::JsonView jsonValue);
42 AWS_BACKUP_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
50 inline const Aws::String& GetRuleName() const{ return m_ruleName; }
51 inline bool RuleNameHasBeenSet() const { return m_ruleNameHasBeenSet; }
52 inline void SetRuleName(const Aws::String& value) { m_ruleNameHasBeenSet = true; m_ruleName = value; }
53 inline void SetRuleName(Aws::String&& value) { m_ruleNameHasBeenSet = true; m_ruleName = std::move(value); }
54 inline void SetRuleName(const char* value) { m_ruleNameHasBeenSet = true; m_ruleName.assign(value); }
55 inline BackupRule& WithRuleName(const Aws::String& value) { SetRuleName(value); return *this;}
56 inline BackupRule& WithRuleName(Aws::String&& value) { SetRuleName(std::move(value)); return *this;}
57 inline BackupRule& WithRuleName(const char* value) { SetRuleName(value); return *this;}
59
61
66 inline const Aws::String& GetTargetBackupVaultName() const{ return m_targetBackupVaultName; }
67 inline bool TargetBackupVaultNameHasBeenSet() const { return m_targetBackupVaultNameHasBeenSet; }
68 inline void SetTargetBackupVaultName(const Aws::String& value) { m_targetBackupVaultNameHasBeenSet = true; m_targetBackupVaultName = value; }
69 inline void SetTargetBackupVaultName(Aws::String&& value) { m_targetBackupVaultNameHasBeenSet = true; m_targetBackupVaultName = std::move(value); }
70 inline void SetTargetBackupVaultName(const char* value) { m_targetBackupVaultNameHasBeenSet = true; m_targetBackupVaultName.assign(value); }
71 inline BackupRule& WithTargetBackupVaultName(const Aws::String& value) { SetTargetBackupVaultName(value); return *this;}
72 inline BackupRule& WithTargetBackupVaultName(Aws::String&& value) { SetTargetBackupVaultName(std::move(value)); return *this;}
73 inline BackupRule& WithTargetBackupVaultName(const char* value) { SetTargetBackupVaultName(value); return *this;}
75
77
87 inline const Aws::String& GetScheduleExpression() const{ return m_scheduleExpression; }
88 inline bool ScheduleExpressionHasBeenSet() const { return m_scheduleExpressionHasBeenSet; }
89 inline void SetScheduleExpression(const Aws::String& value) { m_scheduleExpressionHasBeenSet = true; m_scheduleExpression = value; }
90 inline void SetScheduleExpression(Aws::String&& value) { m_scheduleExpressionHasBeenSet = true; m_scheduleExpression = std::move(value); }
91 inline void SetScheduleExpression(const char* value) { m_scheduleExpressionHasBeenSet = true; m_scheduleExpression.assign(value); }
92 inline BackupRule& WithScheduleExpression(const Aws::String& value) { SetScheduleExpression(value); return *this;}
93 inline BackupRule& WithScheduleExpression(Aws::String&& value) { SetScheduleExpression(std::move(value)); return *this;}
94 inline BackupRule& WithScheduleExpression(const char* value) { SetScheduleExpression(value); return *this;}
96
98
110 inline long long GetStartWindowMinutes() const{ return m_startWindowMinutes; }
111 inline bool StartWindowMinutesHasBeenSet() const { return m_startWindowMinutesHasBeenSet; }
112 inline void SetStartWindowMinutes(long long value) { m_startWindowMinutesHasBeenSet = true; m_startWindowMinutes = value; }
113 inline BackupRule& WithStartWindowMinutes(long long value) { SetStartWindowMinutes(value); return *this;}
115
117
121 inline long long GetCompletionWindowMinutes() const{ return m_completionWindowMinutes; }
122 inline bool CompletionWindowMinutesHasBeenSet() const { return m_completionWindowMinutesHasBeenSet; }
123 inline void SetCompletionWindowMinutes(long long value) { m_completionWindowMinutesHasBeenSet = true; m_completionWindowMinutes = value; }
124 inline BackupRule& WithCompletionWindowMinutes(long long value) { SetCompletionWindowMinutes(value); return *this;}
126
128
141 inline const Lifecycle& GetLifecycle() const{ return m_lifecycle; }
142 inline bool LifecycleHasBeenSet() const { return m_lifecycleHasBeenSet; }
143 inline void SetLifecycle(const Lifecycle& value) { m_lifecycleHasBeenSet = true; m_lifecycle = value; }
144 inline void SetLifecycle(Lifecycle&& value) { m_lifecycleHasBeenSet = true; m_lifecycle = std::move(value); }
145 inline BackupRule& WithLifecycle(const Lifecycle& value) { SetLifecycle(value); return *this;}
146 inline BackupRule& WithLifecycle(Lifecycle&& value) { SetLifecycle(std::move(value)); return *this;}
148
150
154 inline const Aws::Map<Aws::String, Aws::String>& GetRecoveryPointTags() const{ return m_recoveryPointTags; }
155 inline bool RecoveryPointTagsHasBeenSet() const { return m_recoveryPointTagsHasBeenSet; }
156 inline void SetRecoveryPointTags(const Aws::Map<Aws::String, Aws::String>& value) { m_recoveryPointTagsHasBeenSet = true; m_recoveryPointTags = value; }
157 inline void SetRecoveryPointTags(Aws::Map<Aws::String, Aws::String>&& value) { m_recoveryPointTagsHasBeenSet = true; m_recoveryPointTags = std::move(value); }
160 inline BackupRule& AddRecoveryPointTags(const Aws::String& key, const Aws::String& value) { m_recoveryPointTagsHasBeenSet = true; m_recoveryPointTags.emplace(key, value); return *this; }
161 inline BackupRule& AddRecoveryPointTags(Aws::String&& key, const Aws::String& value) { m_recoveryPointTagsHasBeenSet = true; m_recoveryPointTags.emplace(std::move(key), value); return *this; }
162 inline BackupRule& AddRecoveryPointTags(const Aws::String& key, Aws::String&& value) { m_recoveryPointTagsHasBeenSet = true; m_recoveryPointTags.emplace(key, std::move(value)); return *this; }
163 inline BackupRule& AddRecoveryPointTags(Aws::String&& key, Aws::String&& value) { m_recoveryPointTagsHasBeenSet = true; m_recoveryPointTags.emplace(std::move(key), std::move(value)); return *this; }
164 inline BackupRule& AddRecoveryPointTags(const char* key, Aws::String&& value) { m_recoveryPointTagsHasBeenSet = true; m_recoveryPointTags.emplace(key, std::move(value)); return *this; }
165 inline BackupRule& AddRecoveryPointTags(Aws::String&& key, const char* value) { m_recoveryPointTagsHasBeenSet = true; m_recoveryPointTags.emplace(std::move(key), value); return *this; }
166 inline BackupRule& AddRecoveryPointTags(const char* key, const char* value) { m_recoveryPointTagsHasBeenSet = true; m_recoveryPointTags.emplace(key, value); return *this; }
168
170
174 inline const Aws::String& GetRuleId() const{ return m_ruleId; }
175 inline bool RuleIdHasBeenSet() const { return m_ruleIdHasBeenSet; }
176 inline void SetRuleId(const Aws::String& value) { m_ruleIdHasBeenSet = true; m_ruleId = value; }
177 inline void SetRuleId(Aws::String&& value) { m_ruleIdHasBeenSet = true; m_ruleId = std::move(value); }
178 inline void SetRuleId(const char* value) { m_ruleIdHasBeenSet = true; m_ruleId.assign(value); }
179 inline BackupRule& WithRuleId(const Aws::String& value) { SetRuleId(value); return *this;}
180 inline BackupRule& WithRuleId(Aws::String&& value) { SetRuleId(std::move(value)); return *this;}
181 inline BackupRule& WithRuleId(const char* value) { SetRuleId(value); return *this;}
183
185
189 inline const Aws::Vector<CopyAction>& GetCopyActions() const{ return m_copyActions; }
190 inline bool CopyActionsHasBeenSet() const { return m_copyActionsHasBeenSet; }
191 inline void SetCopyActions(const Aws::Vector<CopyAction>& value) { m_copyActionsHasBeenSet = true; m_copyActions = value; }
192 inline void SetCopyActions(Aws::Vector<CopyAction>&& value) { m_copyActionsHasBeenSet = true; m_copyActions = std::move(value); }
193 inline BackupRule& WithCopyActions(const Aws::Vector<CopyAction>& value) { SetCopyActions(value); return *this;}
194 inline BackupRule& WithCopyActions(Aws::Vector<CopyAction>&& value) { SetCopyActions(std::move(value)); return *this;}
195 inline BackupRule& AddCopyActions(const CopyAction& value) { m_copyActionsHasBeenSet = true; m_copyActions.push_back(value); return *this; }
196 inline BackupRule& AddCopyActions(CopyAction&& value) { m_copyActionsHasBeenSet = true; m_copyActions.push_back(std::move(value)); return *this; }
198
200
205 inline bool GetEnableContinuousBackup() const{ return m_enableContinuousBackup; }
206 inline bool EnableContinuousBackupHasBeenSet() const { return m_enableContinuousBackupHasBeenSet; }
207 inline void SetEnableContinuousBackup(bool value) { m_enableContinuousBackupHasBeenSet = true; m_enableContinuousBackup = value; }
208 inline BackupRule& WithEnableContinuousBackup(bool value) { SetEnableContinuousBackup(value); return *this;}
210
212
216 inline const Aws::String& GetScheduleExpressionTimezone() const{ return m_scheduleExpressionTimezone; }
217 inline bool ScheduleExpressionTimezoneHasBeenSet() const { return m_scheduleExpressionTimezoneHasBeenSet; }
218 inline void SetScheduleExpressionTimezone(const Aws::String& value) { m_scheduleExpressionTimezoneHasBeenSet = true; m_scheduleExpressionTimezone = value; }
219 inline void SetScheduleExpressionTimezone(Aws::String&& value) { m_scheduleExpressionTimezoneHasBeenSet = true; m_scheduleExpressionTimezone = std::move(value); }
220 inline void SetScheduleExpressionTimezone(const char* value) { m_scheduleExpressionTimezoneHasBeenSet = true; m_scheduleExpressionTimezone.assign(value); }
222 inline BackupRule& WithScheduleExpressionTimezone(Aws::String&& value) { SetScheduleExpressionTimezone(std::move(value)); return *this;}
223 inline BackupRule& WithScheduleExpressionTimezone(const char* value) { SetScheduleExpressionTimezone(value); return *this;}
225 private:
226
227 Aws::String m_ruleName;
228 bool m_ruleNameHasBeenSet = false;
229
230 Aws::String m_targetBackupVaultName;
231 bool m_targetBackupVaultNameHasBeenSet = false;
232
233 Aws::String m_scheduleExpression;
234 bool m_scheduleExpressionHasBeenSet = false;
235
236 long long m_startWindowMinutes;
237 bool m_startWindowMinutesHasBeenSet = false;
238
239 long long m_completionWindowMinutes;
240 bool m_completionWindowMinutesHasBeenSet = false;
241
242 Lifecycle m_lifecycle;
243 bool m_lifecycleHasBeenSet = false;
244
245 Aws::Map<Aws::String, Aws::String> m_recoveryPointTags;
246 bool m_recoveryPointTagsHasBeenSet = false;
247
248 Aws::String m_ruleId;
249 bool m_ruleIdHasBeenSet = false;
250
251 Aws::Vector<CopyAction> m_copyActions;
252 bool m_copyActionsHasBeenSet = false;
253
254 bool m_enableContinuousBackup;
255 bool m_enableContinuousBackupHasBeenSet = false;
256
257 Aws::String m_scheduleExpressionTimezone;
258 bool m_scheduleExpressionTimezoneHasBeenSet = false;
259 };
260
261} // namespace Model
262} // namespace Backup
263} // namespace Aws
void SetScheduleExpression(Aws::String &&value)
Definition BackupRule.h:90
BackupRule & AddCopyActions(const CopyAction &value)
Definition BackupRule.h:195
BackupRule & WithRuleId(const char *value)
Definition BackupRule.h:181
BackupRule & WithScheduleExpressionTimezone(const Aws::String &value)
Definition BackupRule.h:221
void SetTargetBackupVaultName(const char *value)
Definition BackupRule.h:70
BackupRule & WithScheduleExpressionTimezone(Aws::String &&value)
Definition BackupRule.h:222
BackupRule & WithEnableContinuousBackup(bool value)
Definition BackupRule.h:208
const Aws::String & GetScheduleExpression() const
Definition BackupRule.h:87
void SetTargetBackupVaultName(const Aws::String &value)
Definition BackupRule.h:68
BackupRule & WithRecoveryPointTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition BackupRule.h:159
BackupRule & AddRecoveryPointTags(Aws::String &&key, Aws::String &&value)
Definition BackupRule.h:163
void SetStartWindowMinutes(long long value)
Definition BackupRule.h:112
BackupRule & AddRecoveryPointTags(const Aws::String &key, const Aws::String &value)
Definition BackupRule.h:160
bool CompletionWindowMinutesHasBeenSet() const
Definition BackupRule.h:122
void SetLifecycle(Lifecycle &&value)
Definition BackupRule.h:144
BackupRule & WithCopyActions(Aws::Vector< CopyAction > &&value)
Definition BackupRule.h:194
void SetRuleName(const char *value)
Definition BackupRule.h:54
void SetRuleName(Aws::String &&value)
Definition BackupRule.h:53
bool EnableContinuousBackupHasBeenSet() const
Definition BackupRule.h:206
void SetRuleId(Aws::String &&value)
Definition BackupRule.h:177
void SetScheduleExpression(const char *value)
Definition BackupRule.h:91
void SetTargetBackupVaultName(Aws::String &&value)
Definition BackupRule.h:69
BackupRule & WithRuleName(const char *value)
Definition BackupRule.h:57
BackupRule & WithRuleId(Aws::String &&value)
Definition BackupRule.h:180
void SetRecoveryPointTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition BackupRule.h:157
void SetCompletionWindowMinutes(long long value)
Definition BackupRule.h:123
void SetScheduleExpressionTimezone(Aws::String &&value)
Definition BackupRule.h:219
void SetCopyActions(Aws::Vector< CopyAction > &&value)
Definition BackupRule.h:192
const Lifecycle & GetLifecycle() const
Definition BackupRule.h:141
BackupRule & WithTargetBackupVaultName(const char *value)
Definition BackupRule.h:73
BackupRule & AddCopyActions(CopyAction &&value)
Definition BackupRule.h:196
BackupRule & WithScheduleExpressionTimezone(const char *value)
Definition BackupRule.h:223
BackupRule & WithTargetBackupVaultName(Aws::String &&value)
Definition BackupRule.h:72
BackupRule & WithCopyActions(const Aws::Vector< CopyAction > &value)
Definition BackupRule.h:193
BackupRule & WithRuleId(const Aws::String &value)
Definition BackupRule.h:179
BackupRule & AddRecoveryPointTags(Aws::String &&key, const char *value)
Definition BackupRule.h:165
bool StartWindowMinutesHasBeenSet() const
Definition BackupRule.h:111
void SetScheduleExpression(const Aws::String &value)
Definition BackupRule.h:89
BackupRule & WithScheduleExpression(const Aws::String &value)
Definition BackupRule.h:92
bool GetEnableContinuousBackup() const
Definition BackupRule.h:205
BackupRule & WithRuleName(const Aws::String &value)
Definition BackupRule.h:55
const Aws::Map< Aws::String, Aws::String > & GetRecoveryPointTags() const
Definition BackupRule.h:154
BackupRule & WithLifecycle(Lifecycle &&value)
Definition BackupRule.h:146
bool RecoveryPointTagsHasBeenSet() const
Definition BackupRule.h:155
void SetRuleId(const Aws::String &value)
Definition BackupRule.h:176
BackupRule & WithScheduleExpression(Aws::String &&value)
Definition BackupRule.h:93
BackupRule & WithTargetBackupVaultName(const Aws::String &value)
Definition BackupRule.h:71
BackupRule & AddRecoveryPointTags(const char *key, const char *value)
Definition BackupRule.h:166
BackupRule & WithRecoveryPointTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition BackupRule.h:158
void SetScheduleExpressionTimezone(const Aws::String &value)
Definition BackupRule.h:218
bool ScheduleExpressionTimezoneHasBeenSet() const
Definition BackupRule.h:217
BackupRule & WithScheduleExpression(const char *value)
Definition BackupRule.h:94
void SetLifecycle(const Lifecycle &value)
Definition BackupRule.h:143
AWS_BACKUP_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BACKUP_API BackupRule(Aws::Utils::Json::JsonView jsonValue)
void SetScheduleExpressionTimezone(const char *value)
Definition BackupRule.h:220
BackupRule & WithLifecycle(const Lifecycle &value)
Definition BackupRule.h:145
bool ScheduleExpressionHasBeenSet() const
Definition BackupRule.h:88
long long GetStartWindowMinutes() const
Definition BackupRule.h:110
bool TargetBackupVaultNameHasBeenSet() const
Definition BackupRule.h:67
void SetRuleName(const Aws::String &value)
Definition BackupRule.h:52
const Aws::String & GetRuleName() const
Definition BackupRule.h:50
BackupRule & WithStartWindowMinutes(long long value)
Definition BackupRule.h:113
BackupRule & AddRecoveryPointTags(const Aws::String &key, Aws::String &&value)
Definition BackupRule.h:162
BackupRule & AddRecoveryPointTags(Aws::String &&key, const Aws::String &value)
Definition BackupRule.h:161
void SetRuleId(const char *value)
Definition BackupRule.h:178
void SetRecoveryPointTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition BackupRule.h:156
BackupRule & AddRecoveryPointTags(const char *key, Aws::String &&value)
Definition BackupRule.h:164
const Aws::Vector< CopyAction > & GetCopyActions() const
Definition BackupRule.h:189
long long GetCompletionWindowMinutes() const
Definition BackupRule.h:121
BackupRule & WithCompletionWindowMinutes(long long value)
Definition BackupRule.h:124
void SetCopyActions(const Aws::Vector< CopyAction > &value)
Definition BackupRule.h:191
BackupRule & WithRuleName(Aws::String &&value)
Definition BackupRule.h:56
void SetEnableContinuousBackup(bool value)
Definition BackupRule.h:207
const Aws::String & GetRuleId() const
Definition BackupRule.h:174
AWS_BACKUP_API BackupRule & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetScheduleExpressionTimezone() const
Definition BackupRule.h:216
const Aws::String & GetTargetBackupVaultName() const
Definition BackupRule.h:66
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
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue