AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AwsBackupBackupPlanRuleDetails.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/securityhub/model/AwsBackupBackupPlanLifecycleDetails.h>
11#include <aws/securityhub/model/AwsBackupBackupPlanRuleCopyActionsDetails.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace SecurityHub
25{
26namespace Model
27{
28
37 {
38 public:
39 AWS_SECURITYHUB_API AwsBackupBackupPlanRuleDetails() = default;
42 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
52 inline const Aws::String& GetTargetBackupVault() const { return m_targetBackupVault; }
53 inline bool TargetBackupVaultHasBeenSet() const { return m_targetBackupVaultHasBeenSet; }
54 template<typename TargetBackupVaultT = Aws::String>
55 void SetTargetBackupVault(TargetBackupVaultT&& value) { m_targetBackupVaultHasBeenSet = true; m_targetBackupVault = std::forward<TargetBackupVaultT>(value); }
56 template<typename TargetBackupVaultT = Aws::String>
57 AwsBackupBackupPlanRuleDetails& WithTargetBackupVault(TargetBackupVaultT&& value) { SetTargetBackupVault(std::forward<TargetBackupVaultT>(value)); return *this;}
59
61
65 inline long long GetStartWindowMinutes() const { return m_startWindowMinutes; }
66 inline bool StartWindowMinutesHasBeenSet() const { return m_startWindowMinutesHasBeenSet; }
67 inline void SetStartWindowMinutes(long long value) { m_startWindowMinutesHasBeenSet = true; m_startWindowMinutes = value; }
68 inline AwsBackupBackupPlanRuleDetails& WithStartWindowMinutes(long long value) { SetStartWindowMinutes(value); return *this;}
70
72
75 inline const Aws::String& GetScheduleExpression() const { return m_scheduleExpression; }
76 inline bool ScheduleExpressionHasBeenSet() const { return m_scheduleExpressionHasBeenSet; }
77 template<typename ScheduleExpressionT = Aws::String>
78 void SetScheduleExpression(ScheduleExpressionT&& value) { m_scheduleExpressionHasBeenSet = true; m_scheduleExpression = std::forward<ScheduleExpressionT>(value); }
79 template<typename ScheduleExpressionT = Aws::String>
80 AwsBackupBackupPlanRuleDetails& WithScheduleExpression(ScheduleExpressionT&& value) { SetScheduleExpression(std::forward<ScheduleExpressionT>(value)); return *this;}
82
84
88 inline const Aws::String& GetRuleName() const { return m_ruleName; }
89 inline bool RuleNameHasBeenSet() const { return m_ruleNameHasBeenSet; }
90 template<typename RuleNameT = Aws::String>
91 void SetRuleName(RuleNameT&& value) { m_ruleNameHasBeenSet = true; m_ruleName = std::forward<RuleNameT>(value); }
92 template<typename RuleNameT = Aws::String>
93 AwsBackupBackupPlanRuleDetails& WithRuleName(RuleNameT&& value) { SetRuleName(std::forward<RuleNameT>(value)); return *this;}
95
97
101 inline const Aws::String& GetRuleId() const { return m_ruleId; }
102 inline bool RuleIdHasBeenSet() const { return m_ruleIdHasBeenSet; }
103 template<typename RuleIdT = Aws::String>
104 void SetRuleId(RuleIdT&& value) { m_ruleIdHasBeenSet = true; m_ruleId = std::forward<RuleIdT>(value); }
105 template<typename RuleIdT = Aws::String>
106 AwsBackupBackupPlanRuleDetails& WithRuleId(RuleIdT&& value) { SetRuleId(std::forward<RuleIdT>(value)); return *this;}
108
110
114 inline bool GetEnableContinuousBackup() const { return m_enableContinuousBackup; }
115 inline bool EnableContinuousBackupHasBeenSet() const { return m_enableContinuousBackupHasBeenSet; }
116 inline void SetEnableContinuousBackup(bool value) { m_enableContinuousBackupHasBeenSet = true; m_enableContinuousBackup = value; }
119
121
125 inline long long GetCompletionWindowMinutes() const { return m_completionWindowMinutes; }
126 inline bool CompletionWindowMinutesHasBeenSet() const { return m_completionWindowMinutesHasBeenSet; }
127 inline void SetCompletionWindowMinutes(long long value) { m_completionWindowMinutesHasBeenSet = true; m_completionWindowMinutes = value; }
130
132
136 inline const Aws::Vector<AwsBackupBackupPlanRuleCopyActionsDetails>& GetCopyActions() const { return m_copyActions; }
137 inline bool CopyActionsHasBeenSet() const { return m_copyActionsHasBeenSet; }
138 template<typename CopyActionsT = Aws::Vector<AwsBackupBackupPlanRuleCopyActionsDetails>>
139 void SetCopyActions(CopyActionsT&& value) { m_copyActionsHasBeenSet = true; m_copyActions = std::forward<CopyActionsT>(value); }
140 template<typename CopyActionsT = Aws::Vector<AwsBackupBackupPlanRuleCopyActionsDetails>>
141 AwsBackupBackupPlanRuleDetails& WithCopyActions(CopyActionsT&& value) { SetCopyActions(std::forward<CopyActionsT>(value)); return *this;}
142 template<typename CopyActionsT = AwsBackupBackupPlanRuleCopyActionsDetails>
143 AwsBackupBackupPlanRuleDetails& AddCopyActions(CopyActionsT&& value) { m_copyActionsHasBeenSet = true; m_copyActions.emplace_back(std::forward<CopyActionsT>(value)); return *this; }
145
147
155 inline const AwsBackupBackupPlanLifecycleDetails& GetLifecycle() const { return m_lifecycle; }
156 inline bool LifecycleHasBeenSet() const { return m_lifecycleHasBeenSet; }
157 template<typename LifecycleT = AwsBackupBackupPlanLifecycleDetails>
158 void SetLifecycle(LifecycleT&& value) { m_lifecycleHasBeenSet = true; m_lifecycle = std::forward<LifecycleT>(value); }
159 template<typename LifecycleT = AwsBackupBackupPlanLifecycleDetails>
160 AwsBackupBackupPlanRuleDetails& WithLifecycle(LifecycleT&& value) { SetLifecycle(std::forward<LifecycleT>(value)); return *this;}
162 private:
163
164 Aws::String m_targetBackupVault;
165 bool m_targetBackupVaultHasBeenSet = false;
166
167 long long m_startWindowMinutes{0};
168 bool m_startWindowMinutesHasBeenSet = false;
169
170 Aws::String m_scheduleExpression;
171 bool m_scheduleExpressionHasBeenSet = false;
172
173 Aws::String m_ruleName;
174 bool m_ruleNameHasBeenSet = false;
175
176 Aws::String m_ruleId;
177 bool m_ruleIdHasBeenSet = false;
178
179 bool m_enableContinuousBackup{false};
180 bool m_enableContinuousBackupHasBeenSet = false;
181
182 long long m_completionWindowMinutes{0};
183 bool m_completionWindowMinutesHasBeenSet = false;
184
186 bool m_copyActionsHasBeenSet = false;
187
188 AwsBackupBackupPlanLifecycleDetails m_lifecycle;
189 bool m_lifecycleHasBeenSet = false;
190 };
191
192} // namespace Model
193} // namespace SecurityHub
194} // namespace Aws
AwsBackupBackupPlanRuleDetails & WithRuleId(RuleIdT &&value)
AwsBackupBackupPlanRuleDetails & WithTargetBackupVault(TargetBackupVaultT &&value)
AwsBackupBackupPlanRuleDetails & WithScheduleExpression(ScheduleExpressionT &&value)
const AwsBackupBackupPlanLifecycleDetails & GetLifecycle() const
AWS_SECURITYHUB_API AwsBackupBackupPlanRuleDetails(Aws::Utils::Json::JsonView jsonValue)
AwsBackupBackupPlanRuleDetails & WithRuleName(RuleNameT &&value)
AwsBackupBackupPlanRuleDetails & WithCopyActions(CopyActionsT &&value)
AwsBackupBackupPlanRuleDetails & AddCopyActions(CopyActionsT &&value)
AWS_SECURITYHUB_API AwsBackupBackupPlanRuleDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYHUB_API AwsBackupBackupPlanRuleDetails()=default
AwsBackupBackupPlanRuleDetails & WithStartWindowMinutes(long long value)
AwsBackupBackupPlanRuleDetails & WithCompletionWindowMinutes(long long value)
AwsBackupBackupPlanRuleDetails & WithLifecycle(LifecycleT &&value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< AwsBackupBackupPlanRuleCopyActionsDetails > & GetCopyActions() const
AwsBackupBackupPlanRuleDetails & WithEnableContinuousBackup(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue