AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
BackupRuleInput.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 BackupRuleInput();
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 BackupRuleInput& WithRuleName(const Aws::String& value) { SetRuleName(value); return *this;}
56 inline BackupRuleInput& WithRuleName(Aws::String&& value) { SetRuleName(std::move(value)); return *this;}
57 inline BackupRuleInput& 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); }
72 inline BackupRuleInput& WithTargetBackupVaultName(Aws::String&& value) { SetTargetBackupVaultName(std::move(value)); return *this;}
73 inline BackupRuleInput& WithTargetBackupVaultName(const char* value) { SetTargetBackupVaultName(value); return *this;}
75
77
80 inline const Aws::String& GetScheduleExpression() const{ return m_scheduleExpression; }
81 inline bool ScheduleExpressionHasBeenSet() const { return m_scheduleExpressionHasBeenSet; }
82 inline void SetScheduleExpression(const Aws::String& value) { m_scheduleExpressionHasBeenSet = true; m_scheduleExpression = value; }
83 inline void SetScheduleExpression(Aws::String&& value) { m_scheduleExpressionHasBeenSet = true; m_scheduleExpression = std::move(value); }
84 inline void SetScheduleExpression(const char* value) { m_scheduleExpressionHasBeenSet = true; m_scheduleExpression.assign(value); }
85 inline BackupRuleInput& WithScheduleExpression(const Aws::String& value) { SetScheduleExpression(value); return *this;}
86 inline BackupRuleInput& WithScheduleExpression(Aws::String&& value) { SetScheduleExpression(std::move(value)); return *this;}
87 inline BackupRuleInput& WithScheduleExpression(const char* value) { SetScheduleExpression(value); return *this;}
89
91
104 inline long long GetStartWindowMinutes() const{ return m_startWindowMinutes; }
105 inline bool StartWindowMinutesHasBeenSet() const { return m_startWindowMinutesHasBeenSet; }
106 inline void SetStartWindowMinutes(long long value) { m_startWindowMinutesHasBeenSet = true; m_startWindowMinutes = value; }
107 inline BackupRuleInput& WithStartWindowMinutes(long long value) { SetStartWindowMinutes(value); return *this;}
109
111
115 inline long long GetCompletionWindowMinutes() const{ return m_completionWindowMinutes; }
116 inline bool CompletionWindowMinutesHasBeenSet() const { return m_completionWindowMinutesHasBeenSet; }
117 inline void SetCompletionWindowMinutes(long long value) { m_completionWindowMinutesHasBeenSet = true; m_completionWindowMinutes = value; }
118 inline BackupRuleInput& WithCompletionWindowMinutes(long long value) { SetCompletionWindowMinutes(value); return *this;}
120
122
137 inline const Lifecycle& GetLifecycle() const{ return m_lifecycle; }
138 inline bool LifecycleHasBeenSet() const { return m_lifecycleHasBeenSet; }
139 inline void SetLifecycle(const Lifecycle& value) { m_lifecycleHasBeenSet = true; m_lifecycle = value; }
140 inline void SetLifecycle(Lifecycle&& value) { m_lifecycleHasBeenSet = true; m_lifecycle = std::move(value); }
141 inline BackupRuleInput& WithLifecycle(const Lifecycle& value) { SetLifecycle(value); return *this;}
142 inline BackupRuleInput& WithLifecycle(Lifecycle&& value) { SetLifecycle(std::move(value)); return *this;}
144
146
149 inline const Aws::Map<Aws::String, Aws::String>& GetRecoveryPointTags() const{ return m_recoveryPointTags; }
150 inline bool RecoveryPointTagsHasBeenSet() const { return m_recoveryPointTagsHasBeenSet; }
151 inline void SetRecoveryPointTags(const Aws::Map<Aws::String, Aws::String>& value) { m_recoveryPointTagsHasBeenSet = true; m_recoveryPointTags = value; }
152 inline void SetRecoveryPointTags(Aws::Map<Aws::String, Aws::String>&& value) { m_recoveryPointTagsHasBeenSet = true; m_recoveryPointTags = std::move(value); }
155 inline BackupRuleInput& AddRecoveryPointTags(const Aws::String& key, const Aws::String& value) { m_recoveryPointTagsHasBeenSet = true; m_recoveryPointTags.emplace(key, value); return *this; }
156 inline BackupRuleInput& AddRecoveryPointTags(Aws::String&& key, const Aws::String& value) { m_recoveryPointTagsHasBeenSet = true; m_recoveryPointTags.emplace(std::move(key), value); return *this; }
157 inline BackupRuleInput& AddRecoveryPointTags(const Aws::String& key, Aws::String&& value) { m_recoveryPointTagsHasBeenSet = true; m_recoveryPointTags.emplace(key, std::move(value)); return *this; }
158 inline BackupRuleInput& AddRecoveryPointTags(Aws::String&& key, Aws::String&& value) { m_recoveryPointTagsHasBeenSet = true; m_recoveryPointTags.emplace(std::move(key), std::move(value)); return *this; }
159 inline BackupRuleInput& AddRecoveryPointTags(const char* key, Aws::String&& value) { m_recoveryPointTagsHasBeenSet = true; m_recoveryPointTags.emplace(key, std::move(value)); return *this; }
160 inline BackupRuleInput& AddRecoveryPointTags(Aws::String&& key, const char* value) { m_recoveryPointTagsHasBeenSet = true; m_recoveryPointTags.emplace(std::move(key), value); return *this; }
161 inline BackupRuleInput& AddRecoveryPointTags(const char* key, const char* value) { m_recoveryPointTagsHasBeenSet = true; m_recoveryPointTags.emplace(key, value); return *this; }
163
165
169 inline const Aws::Vector<CopyAction>& GetCopyActions() const{ return m_copyActions; }
170 inline bool CopyActionsHasBeenSet() const { return m_copyActionsHasBeenSet; }
171 inline void SetCopyActions(const Aws::Vector<CopyAction>& value) { m_copyActionsHasBeenSet = true; m_copyActions = value; }
172 inline void SetCopyActions(Aws::Vector<CopyAction>&& value) { m_copyActionsHasBeenSet = true; m_copyActions = std::move(value); }
173 inline BackupRuleInput& WithCopyActions(const Aws::Vector<CopyAction>& value) { SetCopyActions(value); return *this;}
174 inline BackupRuleInput& WithCopyActions(Aws::Vector<CopyAction>&& value) { SetCopyActions(std::move(value)); return *this;}
175 inline BackupRuleInput& AddCopyActions(const CopyAction& value) { m_copyActionsHasBeenSet = true; m_copyActions.push_back(value); return *this; }
176 inline BackupRuleInput& AddCopyActions(CopyAction&& value) { m_copyActionsHasBeenSet = true; m_copyActions.push_back(std::move(value)); return *this; }
178
180
185 inline bool GetEnableContinuousBackup() const{ return m_enableContinuousBackup; }
186 inline bool EnableContinuousBackupHasBeenSet() const { return m_enableContinuousBackupHasBeenSet; }
187 inline void SetEnableContinuousBackup(bool value) { m_enableContinuousBackupHasBeenSet = true; m_enableContinuousBackup = value; }
188 inline BackupRuleInput& WithEnableContinuousBackup(bool value) { SetEnableContinuousBackup(value); return *this;}
190
192
196 inline const Aws::String& GetScheduleExpressionTimezone() const{ return m_scheduleExpressionTimezone; }
197 inline bool ScheduleExpressionTimezoneHasBeenSet() const { return m_scheduleExpressionTimezoneHasBeenSet; }
198 inline void SetScheduleExpressionTimezone(const Aws::String& value) { m_scheduleExpressionTimezoneHasBeenSet = true; m_scheduleExpressionTimezone = value; }
199 inline void SetScheduleExpressionTimezone(Aws::String&& value) { m_scheduleExpressionTimezoneHasBeenSet = true; m_scheduleExpressionTimezone = std::move(value); }
200 inline void SetScheduleExpressionTimezone(const char* value) { m_scheduleExpressionTimezoneHasBeenSet = true; m_scheduleExpressionTimezone.assign(value); }
203 inline BackupRuleInput& WithScheduleExpressionTimezone(const char* value) { SetScheduleExpressionTimezone(value); return *this;}
205 private:
206
207 Aws::String m_ruleName;
208 bool m_ruleNameHasBeenSet = false;
209
210 Aws::String m_targetBackupVaultName;
211 bool m_targetBackupVaultNameHasBeenSet = false;
212
213 Aws::String m_scheduleExpression;
214 bool m_scheduleExpressionHasBeenSet = false;
215
216 long long m_startWindowMinutes;
217 bool m_startWindowMinutesHasBeenSet = false;
218
219 long long m_completionWindowMinutes;
220 bool m_completionWindowMinutesHasBeenSet = false;
221
222 Lifecycle m_lifecycle;
223 bool m_lifecycleHasBeenSet = false;
224
225 Aws::Map<Aws::String, Aws::String> m_recoveryPointTags;
226 bool m_recoveryPointTagsHasBeenSet = false;
227
228 Aws::Vector<CopyAction> m_copyActions;
229 bool m_copyActionsHasBeenSet = false;
230
231 bool m_enableContinuousBackup;
232 bool m_enableContinuousBackupHasBeenSet = false;
233
234 Aws::String m_scheduleExpressionTimezone;
235 bool m_scheduleExpressionTimezoneHasBeenSet = false;
236 };
237
238} // namespace Model
239} // namespace Backup
240} // namespace Aws
BackupRuleInput & WithRuleName(Aws::String &&value)
void SetTargetBackupVaultName(const Aws::String &value)
void SetScheduleExpressionTimezone(const char *value)
BackupRuleInput & AddRecoveryPointTags(const char *key, const char *value)
BackupRuleInput & WithEnableContinuousBackup(bool value)
BackupRuleInput & AddCopyActions(CopyAction &&value)
void SetStartWindowMinutes(long long value)
void SetScheduleExpression(const char *value)
void SetRuleName(const char *value)
void SetScheduleExpressionTimezone(Aws::String &&value)
BackupRuleInput & AddRecoveryPointTags(Aws::String &&key, Aws::String &&value)
AWS_BACKUP_API BackupRuleInput & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BACKUP_API Aws::Utils::Json::JsonValue Jsonize() const
void SetRecoveryPointTags(const Aws::Map< Aws::String, Aws::String > &value)
AWS_BACKUP_API BackupRuleInput(Aws::Utils::Json::JsonView jsonValue)
BackupRuleInput & WithRecoveryPointTags(const Aws::Map< Aws::String, Aws::String > &value)
void SetRuleName(Aws::String &&value)
const Aws::String & GetScheduleExpression() const
BackupRuleInput & WithRuleName(const char *value)
BackupRuleInput & WithTargetBackupVaultName(const char *value)
BackupRuleInput & WithScheduleExpression(Aws::String &&value)
void SetLifecycle(const Lifecycle &value)
BackupRuleInput & WithRecoveryPointTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetCopyActions(Aws::Vector< CopyAction > &&value)
BackupRuleInput & AddCopyActions(const CopyAction &value)
void SetRuleName(const Aws::String &value)
void SetCompletionWindowMinutes(long long value)
BackupRuleInput & WithCopyActions(const Aws::Vector< CopyAction > &value)
const Aws::Map< Aws::String, Aws::String > & GetRecoveryPointTags() const
BackupRuleInput & WithTargetBackupVaultName(Aws::String &&value)
BackupRuleInput & WithScheduleExpression(const char *value)
BackupRuleInput & AddRecoveryPointTags(Aws::String &&key, const char *value)
const Aws::String & GetScheduleExpressionTimezone() const
void SetScheduleExpressionTimezone(const Aws::String &value)
void SetTargetBackupVaultName(const char *value)
BackupRuleInput & WithLifecycle(const Lifecycle &value)
const Aws::Vector< CopyAction > & GetCopyActions() const
BackupRuleInput & WithRuleName(const Aws::String &value)
BackupRuleInput & AddRecoveryPointTags(Aws::String &&key, const Aws::String &value)
BackupRuleInput & WithCopyActions(Aws::Vector< CopyAction > &&value)
BackupRuleInput & WithScheduleExpressionTimezone(const char *value)
BackupRuleInput & AddRecoveryPointTags(const char *key, Aws::String &&value)
BackupRuleInput & WithScheduleExpression(const Aws::String &value)
const Aws::String & GetTargetBackupVaultName() const
BackupRuleInput & WithTargetBackupVaultName(const Aws::String &value)
void SetTargetBackupVaultName(Aws::String &&value)
BackupRuleInput & WithScheduleExpressionTimezone(Aws::String &&value)
void SetCopyActions(const Aws::Vector< CopyAction > &value)
const Lifecycle & GetLifecycle() const
BackupRuleInput & WithStartWindowMinutes(long long value)
BackupRuleInput & AddRecoveryPointTags(const Aws::String &key, const Aws::String &value)
BackupRuleInput & AddRecoveryPointTags(const Aws::String &key, Aws::String &&value)
void SetScheduleExpression(const Aws::String &value)
void SetRecoveryPointTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetScheduleExpression(Aws::String &&value)
BackupRuleInput & WithScheduleExpressionTimezone(const Aws::String &value)
BackupRuleInput & WithCompletionWindowMinutes(long long value)
const Aws::String & GetRuleName() const
BackupRuleInput & WithLifecycle(Lifecycle &&value)
void SetLifecycle(Lifecycle &&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
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue