AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Schedule.h
1
6#pragma once
7#include <aws/dlm/DLM_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/dlm/model/CreateRule.h>
11#include <aws/dlm/model/RetainRule.h>
12#include <aws/dlm/model/FastRestoreRule.h>
13#include <aws/dlm/model/DeprecateRule.h>
14#include <aws/dlm/model/ArchiveRule.h>
15#include <aws/dlm/model/Tag.h>
16#include <aws/dlm/model/CrossRegionCopyRule.h>
17#include <aws/dlm/model/ShareRule.h>
18#include <utility>
19
20namespace Aws
21{
22namespace Utils
23{
24namespace Json
25{
26 class JsonValue;
27 class JsonView;
28} // namespace Json
29} // namespace Utils
30namespace DLM
31{
32namespace Model
33{
34
42 {
43 public:
44 AWS_DLM_API Schedule();
45 AWS_DLM_API Schedule(Aws::Utils::Json::JsonView jsonValue);
48
49
51
54 inline const Aws::String& GetName() const{ return m_name; }
55 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
56 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
57 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
58 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
59 inline Schedule& WithName(const Aws::String& value) { SetName(value); return *this;}
60 inline Schedule& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
61 inline Schedule& WithName(const char* value) { SetName(value); return *this;}
63
65
69 inline bool GetCopyTags() const{ return m_copyTags; }
70 inline bool CopyTagsHasBeenSet() const { return m_copyTagsHasBeenSet; }
71 inline void SetCopyTags(bool value) { m_copyTagsHasBeenSet = true; m_copyTags = value; }
72 inline Schedule& WithCopyTags(bool value) { SetCopyTags(value); return *this;}
74
76
80 inline const Aws::Vector<Tag>& GetTagsToAdd() const{ return m_tagsToAdd; }
81 inline bool TagsToAddHasBeenSet() const { return m_tagsToAddHasBeenSet; }
82 inline void SetTagsToAdd(const Aws::Vector<Tag>& value) { m_tagsToAddHasBeenSet = true; m_tagsToAdd = value; }
83 inline void SetTagsToAdd(Aws::Vector<Tag>&& value) { m_tagsToAddHasBeenSet = true; m_tagsToAdd = std::move(value); }
84 inline Schedule& WithTagsToAdd(const Aws::Vector<Tag>& value) { SetTagsToAdd(value); return *this;}
85 inline Schedule& WithTagsToAdd(Aws::Vector<Tag>&& value) { SetTagsToAdd(std::move(value)); return *this;}
86 inline Schedule& AddTagsToAdd(const Tag& value) { m_tagsToAddHasBeenSet = true; m_tagsToAdd.push_back(value); return *this; }
87 inline Schedule& AddTagsToAdd(Tag&& value) { m_tagsToAddHasBeenSet = true; m_tagsToAdd.push_back(std::move(value)); return *this; }
89
91
99 inline const Aws::Vector<Tag>& GetVariableTags() const{ return m_variableTags; }
100 inline bool VariableTagsHasBeenSet() const { return m_variableTagsHasBeenSet; }
101 inline void SetVariableTags(const Aws::Vector<Tag>& value) { m_variableTagsHasBeenSet = true; m_variableTags = value; }
102 inline void SetVariableTags(Aws::Vector<Tag>&& value) { m_variableTagsHasBeenSet = true; m_variableTags = std::move(value); }
103 inline Schedule& WithVariableTags(const Aws::Vector<Tag>& value) { SetVariableTags(value); return *this;}
104 inline Schedule& WithVariableTags(Aws::Vector<Tag>&& value) { SetVariableTags(std::move(value)); return *this;}
105 inline Schedule& AddVariableTags(const Tag& value) { m_variableTagsHasBeenSet = true; m_variableTags.push_back(value); return *this; }
106 inline Schedule& AddVariableTags(Tag&& value) { m_variableTagsHasBeenSet = true; m_variableTags.push_back(std::move(value)); return *this; }
108
110
113 inline const CreateRule& GetCreateRule() const{ return m_createRule; }
114 inline bool CreateRuleHasBeenSet() const { return m_createRuleHasBeenSet; }
115 inline void SetCreateRule(const CreateRule& value) { m_createRuleHasBeenSet = true; m_createRule = value; }
116 inline void SetCreateRule(CreateRule&& value) { m_createRuleHasBeenSet = true; m_createRule = std::move(value); }
117 inline Schedule& WithCreateRule(const CreateRule& value) { SetCreateRule(value); return *this;}
118 inline Schedule& WithCreateRule(CreateRule&& value) { SetCreateRule(std::move(value)); return *this;}
120
122
125 inline const RetainRule& GetRetainRule() const{ return m_retainRule; }
126 inline bool RetainRuleHasBeenSet() const { return m_retainRuleHasBeenSet; }
127 inline void SetRetainRule(const RetainRule& value) { m_retainRuleHasBeenSet = true; m_retainRule = value; }
128 inline void SetRetainRule(RetainRule&& value) { m_retainRuleHasBeenSet = true; m_retainRule = std::move(value); }
129 inline Schedule& WithRetainRule(const RetainRule& value) { SetRetainRule(value); return *this;}
130 inline Schedule& WithRetainRule(RetainRule&& value) { SetRetainRule(std::move(value)); return *this;}
132
134
138 inline const FastRestoreRule& GetFastRestoreRule() const{ return m_fastRestoreRule; }
139 inline bool FastRestoreRuleHasBeenSet() const { return m_fastRestoreRuleHasBeenSet; }
140 inline void SetFastRestoreRule(const FastRestoreRule& value) { m_fastRestoreRuleHasBeenSet = true; m_fastRestoreRule = value; }
141 inline void SetFastRestoreRule(FastRestoreRule&& value) { m_fastRestoreRuleHasBeenSet = true; m_fastRestoreRule = std::move(value); }
142 inline Schedule& WithFastRestoreRule(const FastRestoreRule& value) { SetFastRestoreRule(value); return *this;}
143 inline Schedule& WithFastRestoreRule(FastRestoreRule&& value) { SetFastRestoreRule(std::move(value)); return *this;}
145
147
153 inline const Aws::Vector<CrossRegionCopyRule>& GetCrossRegionCopyRules() const{ return m_crossRegionCopyRules; }
154 inline bool CrossRegionCopyRulesHasBeenSet() const { return m_crossRegionCopyRulesHasBeenSet; }
155 inline void SetCrossRegionCopyRules(const Aws::Vector<CrossRegionCopyRule>& value) { m_crossRegionCopyRulesHasBeenSet = true; m_crossRegionCopyRules = value; }
156 inline void SetCrossRegionCopyRules(Aws::Vector<CrossRegionCopyRule>&& value) { m_crossRegionCopyRulesHasBeenSet = true; m_crossRegionCopyRules = std::move(value); }
159 inline Schedule& AddCrossRegionCopyRules(const CrossRegionCopyRule& value) { m_crossRegionCopyRulesHasBeenSet = true; m_crossRegionCopyRules.push_back(value); return *this; }
160 inline Schedule& AddCrossRegionCopyRules(CrossRegionCopyRule&& value) { m_crossRegionCopyRulesHasBeenSet = true; m_crossRegionCopyRules.push_back(std::move(value)); return *this; }
162
164
168 inline const Aws::Vector<ShareRule>& GetShareRules() const{ return m_shareRules; }
169 inline bool ShareRulesHasBeenSet() const { return m_shareRulesHasBeenSet; }
170 inline void SetShareRules(const Aws::Vector<ShareRule>& value) { m_shareRulesHasBeenSet = true; m_shareRules = value; }
171 inline void SetShareRules(Aws::Vector<ShareRule>&& value) { m_shareRulesHasBeenSet = true; m_shareRules = std::move(value); }
172 inline Schedule& WithShareRules(const Aws::Vector<ShareRule>& value) { SetShareRules(value); return *this;}
173 inline Schedule& WithShareRules(Aws::Vector<ShareRule>&& value) { SetShareRules(std::move(value)); return *this;}
174 inline Schedule& AddShareRules(const ShareRule& value) { m_shareRulesHasBeenSet = true; m_shareRules.push_back(value); return *this; }
175 inline Schedule& AddShareRules(ShareRule&& value) { m_shareRulesHasBeenSet = true; m_shareRules.push_back(std::move(value)); return *this; }
177
179
183 inline const DeprecateRule& GetDeprecateRule() const{ return m_deprecateRule; }
184 inline bool DeprecateRuleHasBeenSet() const { return m_deprecateRuleHasBeenSet; }
185 inline void SetDeprecateRule(const DeprecateRule& value) { m_deprecateRuleHasBeenSet = true; m_deprecateRule = value; }
186 inline void SetDeprecateRule(DeprecateRule&& value) { m_deprecateRuleHasBeenSet = true; m_deprecateRule = std::move(value); }
187 inline Schedule& WithDeprecateRule(const DeprecateRule& value) { SetDeprecateRule(value); return *this;}
188 inline Schedule& WithDeprecateRule(DeprecateRule&& value) { SetDeprecateRule(std::move(value)); return *this;}
190
192
202 inline const ArchiveRule& GetArchiveRule() const{ return m_archiveRule; }
203 inline bool ArchiveRuleHasBeenSet() const { return m_archiveRuleHasBeenSet; }
204 inline void SetArchiveRule(const ArchiveRule& value) { m_archiveRuleHasBeenSet = true; m_archiveRule = value; }
205 inline void SetArchiveRule(ArchiveRule&& value) { m_archiveRuleHasBeenSet = true; m_archiveRule = std::move(value); }
206 inline Schedule& WithArchiveRule(const ArchiveRule& value) { SetArchiveRule(value); return *this;}
207 inline Schedule& WithArchiveRule(ArchiveRule&& value) { SetArchiveRule(std::move(value)); return *this;}
209 private:
210
211 Aws::String m_name;
212 bool m_nameHasBeenSet = false;
213
214 bool m_copyTags;
215 bool m_copyTagsHasBeenSet = false;
216
217 Aws::Vector<Tag> m_tagsToAdd;
218 bool m_tagsToAddHasBeenSet = false;
219
220 Aws::Vector<Tag> m_variableTags;
221 bool m_variableTagsHasBeenSet = false;
222
223 CreateRule m_createRule;
224 bool m_createRuleHasBeenSet = false;
225
226 RetainRule m_retainRule;
227 bool m_retainRuleHasBeenSet = false;
228
229 FastRestoreRule m_fastRestoreRule;
230 bool m_fastRestoreRuleHasBeenSet = false;
231
232 Aws::Vector<CrossRegionCopyRule> m_crossRegionCopyRules;
233 bool m_crossRegionCopyRulesHasBeenSet = false;
234
235 Aws::Vector<ShareRule> m_shareRules;
236 bool m_shareRulesHasBeenSet = false;
237
238 DeprecateRule m_deprecateRule;
239 bool m_deprecateRuleHasBeenSet = false;
240
241 ArchiveRule m_archiveRule;
242 bool m_archiveRuleHasBeenSet = false;
243 };
244
245} // namespace Model
246} // namespace DLM
247} // namespace Aws
void SetRetainRule(const RetainRule &value)
Definition Schedule.h:127
Schedule & AddCrossRegionCopyRules(CrossRegionCopyRule &&value)
Definition Schedule.h:160
void SetTagsToAdd(const Aws::Vector< Tag > &value)
Definition Schedule.h:82
Schedule & WithName(Aws::String &&value)
Definition Schedule.h:60
void SetArchiveRule(const ArchiveRule &value)
Definition Schedule.h:204
void SetCreateRule(const CreateRule &value)
Definition Schedule.h:115
void SetTagsToAdd(Aws::Vector< Tag > &&value)
Definition Schedule.h:83
bool RetainRuleHasBeenSet() const
Definition Schedule.h:126
Schedule & WithDeprecateRule(const DeprecateRule &value)
Definition Schedule.h:187
const Aws::String & GetName() const
Definition Schedule.h:54
Schedule & WithArchiveRule(const ArchiveRule &value)
Definition Schedule.h:206
const ArchiveRule & GetArchiveRule() const
Definition Schedule.h:202
void SetCrossRegionCopyRules(const Aws::Vector< CrossRegionCopyRule > &value)
Definition Schedule.h:155
Schedule & AddVariableTags(const Tag &value)
Definition Schedule.h:105
void SetFastRestoreRule(FastRestoreRule &&value)
Definition Schedule.h:141
void SetFastRestoreRule(const FastRestoreRule &value)
Definition Schedule.h:140
void SetName(Aws::String &&value)
Definition Schedule.h:57
const CreateRule & GetCreateRule() const
Definition Schedule.h:113
Schedule & AddShareRules(ShareRule &&value)
Definition Schedule.h:175
void SetName(const Aws::String &value)
Definition Schedule.h:56
Schedule & WithCreateRule(CreateRule &&value)
Definition Schedule.h:118
Schedule & AddCrossRegionCopyRules(const CrossRegionCopyRule &value)
Definition Schedule.h:159
const Aws::Vector< Tag > & GetTagsToAdd() const
Definition Schedule.h:80
Schedule & WithCrossRegionCopyRules(Aws::Vector< CrossRegionCopyRule > &&value)
Definition Schedule.h:158
AWS_DLM_API Aws::Utils::Json::JsonValue Jsonize() const
bool FastRestoreRuleHasBeenSet() const
Definition Schedule.h:139
void SetCreateRule(CreateRule &&value)
Definition Schedule.h:116
void SetDeprecateRule(DeprecateRule &&value)
Definition Schedule.h:186
bool GetCopyTags() const
Definition Schedule.h:69
Schedule & WithTagsToAdd(const Aws::Vector< Tag > &value)
Definition Schedule.h:84
void SetShareRules(Aws::Vector< ShareRule > &&value)
Definition Schedule.h:171
void SetVariableTags(Aws::Vector< Tag > &&value)
Definition Schedule.h:102
Schedule & AddTagsToAdd(const Tag &value)
Definition Schedule.h:86
bool NameHasBeenSet() const
Definition Schedule.h:55
Schedule & WithVariableTags(Aws::Vector< Tag > &&value)
Definition Schedule.h:104
Schedule & WithName(const char *value)
Definition Schedule.h:61
void SetArchiveRule(ArchiveRule &&value)
Definition Schedule.h:205
Schedule & WithCrossRegionCopyRules(const Aws::Vector< CrossRegionCopyRule > &value)
Definition Schedule.h:157
Schedule & WithCreateRule(const CreateRule &value)
Definition Schedule.h:117
Schedule & WithDeprecateRule(DeprecateRule &&value)
Definition Schedule.h:188
Schedule & WithRetainRule(RetainRule &&value)
Definition Schedule.h:130
const RetainRule & GetRetainRule() const
Definition Schedule.h:125
bool CreateRuleHasBeenSet() const
Definition Schedule.h:114
AWS_DLM_API Schedule & operator=(Aws::Utils::Json::JsonView jsonValue)
const DeprecateRule & GetDeprecateRule() const
Definition Schedule.h:183
bool ShareRulesHasBeenSet() const
Definition Schedule.h:169
Schedule & WithShareRules(Aws::Vector< ShareRule > &&value)
Definition Schedule.h:173
void SetCrossRegionCopyRules(Aws::Vector< CrossRegionCopyRule > &&value)
Definition Schedule.h:156
Schedule & AddShareRules(const ShareRule &value)
Definition Schedule.h:174
bool ArchiveRuleHasBeenSet() const
Definition Schedule.h:203
Schedule & WithFastRestoreRule(const FastRestoreRule &value)
Definition Schedule.h:142
Schedule & WithName(const Aws::String &value)
Definition Schedule.h:59
void SetCopyTags(bool value)
Definition Schedule.h:71
const Aws::Vector< Tag > & GetVariableTags() const
Definition Schedule.h:99
bool CrossRegionCopyRulesHasBeenSet() const
Definition Schedule.h:154
const Aws::Vector< ShareRule > & GetShareRules() const
Definition Schedule.h:168
void SetShareRules(const Aws::Vector< ShareRule > &value)
Definition Schedule.h:170
const Aws::Vector< CrossRegionCopyRule > & GetCrossRegionCopyRules() const
Definition Schedule.h:153
const FastRestoreRule & GetFastRestoreRule() const
Definition Schedule.h:138
Schedule & WithRetainRule(const RetainRule &value)
Definition Schedule.h:129
Schedule & WithTagsToAdd(Aws::Vector< Tag > &&value)
Definition Schedule.h:85
void SetDeprecateRule(const DeprecateRule &value)
Definition Schedule.h:185
void SetRetainRule(RetainRule &&value)
Definition Schedule.h:128
AWS_DLM_API Schedule(Aws::Utils::Json::JsonView jsonValue)
Schedule & WithFastRestoreRule(FastRestoreRule &&value)
Definition Schedule.h:143
bool VariableTagsHasBeenSet() const
Definition Schedule.h:100
void SetName(const char *value)
Definition Schedule.h:58
Schedule & WithCopyTags(bool value)
Definition Schedule.h:72
Schedule & AddVariableTags(Tag &&value)
Definition Schedule.h:106
Schedule & AddTagsToAdd(Tag &&value)
Definition Schedule.h:87
bool DeprecateRuleHasBeenSet() const
Definition Schedule.h:184
void SetVariableTags(const Aws::Vector< Tag > &value)
Definition Schedule.h:101
bool CopyTagsHasBeenSet() const
Definition Schedule.h:70
bool TagsToAddHasBeenSet() const
Definition Schedule.h:81
Schedule & WithShareRules(const Aws::Vector< ShareRule > &value)
Definition Schedule.h:172
Schedule & WithArchiveRule(ArchiveRule &&value)
Definition Schedule.h:207
Schedule & WithVariableTags(const Aws::Vector< Tag > &value)
Definition Schedule.h:103
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue