AWS SDK for C++  1.8.126
AWS SDK for C++
Schedule.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/dlm/DLM_EXPORTS.h>
13 #include <aws/dlm/model/Tag.h>
16 #include <utility>
17 
18 namespace Aws
19 {
20 namespace Utils
21 {
22 namespace Json
23 {
24  class JsonValue;
25  class JsonView;
26 } // namespace Json
27 } // namespace Utils
28 namespace DLM
29 {
30 namespace Model
31 {
32 
40  {
41  public:
46 
47 
51  inline const Aws::String& GetName() const{ return m_name; }
52 
56  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
57 
61  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
62 
66  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
67 
71  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
72 
76  inline Schedule& WithName(const Aws::String& value) { SetName(value); return *this;}
77 
81  inline Schedule& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
82 
86  inline Schedule& WithName(const char* value) { SetName(value); return *this;}
87 
88 
93  inline bool GetCopyTags() const{ return m_copyTags; }
94 
99  inline bool CopyTagsHasBeenSet() const { return m_copyTagsHasBeenSet; }
100 
105  inline void SetCopyTags(bool value) { m_copyTagsHasBeenSet = true; m_copyTags = value; }
106 
111  inline Schedule& WithCopyTags(bool value) { SetCopyTags(value); return *this;}
112 
113 
118  inline const Aws::Vector<Tag>& GetTagsToAdd() const{ return m_tagsToAdd; }
119 
124  inline bool TagsToAddHasBeenSet() const { return m_tagsToAddHasBeenSet; }
125 
130  inline void SetTagsToAdd(const Aws::Vector<Tag>& value) { m_tagsToAddHasBeenSet = true; m_tagsToAdd = value; }
131 
136  inline void SetTagsToAdd(Aws::Vector<Tag>&& value) { m_tagsToAddHasBeenSet = true; m_tagsToAdd = std::move(value); }
137 
142  inline Schedule& WithTagsToAdd(const Aws::Vector<Tag>& value) { SetTagsToAdd(value); return *this;}
143 
148  inline Schedule& WithTagsToAdd(Aws::Vector<Tag>&& value) { SetTagsToAdd(std::move(value)); return *this;}
149 
154  inline Schedule& AddTagsToAdd(const Tag& value) { m_tagsToAddHasBeenSet = true; m_tagsToAdd.push_back(value); return *this; }
155 
160  inline Schedule& AddTagsToAdd(Tag&& value) { m_tagsToAddHasBeenSet = true; m_tagsToAdd.push_back(std::move(value)); return *this; }
161 
162 
170  inline const Aws::Vector<Tag>& GetVariableTags() const{ return m_variableTags; }
171 
179  inline bool VariableTagsHasBeenSet() const { return m_variableTagsHasBeenSet; }
180 
188  inline void SetVariableTags(const Aws::Vector<Tag>& value) { m_variableTagsHasBeenSet = true; m_variableTags = value; }
189 
197  inline void SetVariableTags(Aws::Vector<Tag>&& value) { m_variableTagsHasBeenSet = true; m_variableTags = std::move(value); }
198 
206  inline Schedule& WithVariableTags(const Aws::Vector<Tag>& value) { SetVariableTags(value); return *this;}
207 
215  inline Schedule& WithVariableTags(Aws::Vector<Tag>&& value) { SetVariableTags(std::move(value)); return *this;}
216 
224  inline Schedule& AddVariableTags(const Tag& value) { m_variableTagsHasBeenSet = true; m_variableTags.push_back(value); return *this; }
225 
233  inline Schedule& AddVariableTags(Tag&& value) { m_variableTagsHasBeenSet = true; m_variableTags.push_back(std::move(value)); return *this; }
234 
235 
239  inline const CreateRule& GetCreateRule() const{ return m_createRule; }
240 
244  inline bool CreateRuleHasBeenSet() const { return m_createRuleHasBeenSet; }
245 
249  inline void SetCreateRule(const CreateRule& value) { m_createRuleHasBeenSet = true; m_createRule = value; }
250 
254  inline void SetCreateRule(CreateRule&& value) { m_createRuleHasBeenSet = true; m_createRule = std::move(value); }
255 
259  inline Schedule& WithCreateRule(const CreateRule& value) { SetCreateRule(value); return *this;}
260 
264  inline Schedule& WithCreateRule(CreateRule&& value) { SetCreateRule(std::move(value)); return *this;}
265 
266 
270  inline const RetainRule& GetRetainRule() const{ return m_retainRule; }
271 
275  inline bool RetainRuleHasBeenSet() const { return m_retainRuleHasBeenSet; }
276 
280  inline void SetRetainRule(const RetainRule& value) { m_retainRuleHasBeenSet = true; m_retainRule = value; }
281 
285  inline void SetRetainRule(RetainRule&& value) { m_retainRuleHasBeenSet = true; m_retainRule = std::move(value); }
286 
290  inline Schedule& WithRetainRule(const RetainRule& value) { SetRetainRule(value); return *this;}
291 
295  inline Schedule& WithRetainRule(RetainRule&& value) { SetRetainRule(std::move(value)); return *this;}
296 
297 
301  inline const FastRestoreRule& GetFastRestoreRule() const{ return m_fastRestoreRule; }
302 
306  inline bool FastRestoreRuleHasBeenSet() const { return m_fastRestoreRuleHasBeenSet; }
307 
311  inline void SetFastRestoreRule(const FastRestoreRule& value) { m_fastRestoreRuleHasBeenSet = true; m_fastRestoreRule = value; }
312 
316  inline void SetFastRestoreRule(FastRestoreRule&& value) { m_fastRestoreRuleHasBeenSet = true; m_fastRestoreRule = std::move(value); }
317 
321  inline Schedule& WithFastRestoreRule(const FastRestoreRule& value) { SetFastRestoreRule(value); return *this;}
322 
326  inline Schedule& WithFastRestoreRule(FastRestoreRule&& value) { SetFastRestoreRule(std::move(value)); return *this;}
327 
328 
332  inline const Aws::Vector<CrossRegionCopyRule>& GetCrossRegionCopyRules() const{ return m_crossRegionCopyRules; }
333 
337  inline bool CrossRegionCopyRulesHasBeenSet() const { return m_crossRegionCopyRulesHasBeenSet; }
338 
342  inline void SetCrossRegionCopyRules(const Aws::Vector<CrossRegionCopyRule>& value) { m_crossRegionCopyRulesHasBeenSet = true; m_crossRegionCopyRules = value; }
343 
347  inline void SetCrossRegionCopyRules(Aws::Vector<CrossRegionCopyRule>&& value) { m_crossRegionCopyRulesHasBeenSet = true; m_crossRegionCopyRules = std::move(value); }
348 
352  inline Schedule& WithCrossRegionCopyRules(const Aws::Vector<CrossRegionCopyRule>& value) { SetCrossRegionCopyRules(value); return *this;}
353 
357  inline Schedule& WithCrossRegionCopyRules(Aws::Vector<CrossRegionCopyRule>&& value) { SetCrossRegionCopyRules(std::move(value)); return *this;}
358 
362  inline Schedule& AddCrossRegionCopyRules(const CrossRegionCopyRule& value) { m_crossRegionCopyRulesHasBeenSet = true; m_crossRegionCopyRules.push_back(value); return *this; }
363 
367  inline Schedule& AddCrossRegionCopyRules(CrossRegionCopyRule&& value) { m_crossRegionCopyRulesHasBeenSet = true; m_crossRegionCopyRules.push_back(std::move(value)); return *this; }
368 
369 
373  inline const Aws::Vector<ShareRule>& GetShareRules() const{ return m_shareRules; }
374 
378  inline bool ShareRulesHasBeenSet() const { return m_shareRulesHasBeenSet; }
379 
383  inline void SetShareRules(const Aws::Vector<ShareRule>& value) { m_shareRulesHasBeenSet = true; m_shareRules = value; }
384 
388  inline void SetShareRules(Aws::Vector<ShareRule>&& value) { m_shareRulesHasBeenSet = true; m_shareRules = std::move(value); }
389 
393  inline Schedule& WithShareRules(const Aws::Vector<ShareRule>& value) { SetShareRules(value); return *this;}
394 
398  inline Schedule& WithShareRules(Aws::Vector<ShareRule>&& value) { SetShareRules(std::move(value)); return *this;}
399 
403  inline Schedule& AddShareRules(const ShareRule& value) { m_shareRulesHasBeenSet = true; m_shareRules.push_back(value); return *this; }
404 
408  inline Schedule& AddShareRules(ShareRule&& value) { m_shareRulesHasBeenSet = true; m_shareRules.push_back(std::move(value)); return *this; }
409 
410  private:
411 
412  Aws::String m_name;
413  bool m_nameHasBeenSet;
414 
415  bool m_copyTags;
416  bool m_copyTagsHasBeenSet;
417 
418  Aws::Vector<Tag> m_tagsToAdd;
419  bool m_tagsToAddHasBeenSet;
420 
421  Aws::Vector<Tag> m_variableTags;
422  bool m_variableTagsHasBeenSet;
423 
424  CreateRule m_createRule;
425  bool m_createRuleHasBeenSet;
426 
427  RetainRule m_retainRule;
428  bool m_retainRuleHasBeenSet;
429 
430  FastRestoreRule m_fastRestoreRule;
431  bool m_fastRestoreRuleHasBeenSet;
432 
433  Aws::Vector<CrossRegionCopyRule> m_crossRegionCopyRules;
434  bool m_crossRegionCopyRulesHasBeenSet;
435 
436  Aws::Vector<ShareRule> m_shareRules;
437  bool m_shareRulesHasBeenSet;
438  };
439 
440 } // namespace Model
441 } // namespace DLM
442 } // namespace Aws
Aws::DLM::Model::Schedule::TagsToAddHasBeenSet
bool TagsToAddHasBeenSet() const
Definition: Schedule.h:124
Aws::DLM::Model::Schedule::VariableTagsHasBeenSet
bool VariableTagsHasBeenSet() const
Definition: Schedule.h:179
FastRestoreRule.h
Aws::DLM::Model::Schedule::AddVariableTags
Schedule & AddVariableTags(const Tag &value)
Definition: Schedule.h:224
Aws::DLM::Model::Schedule::AddCrossRegionCopyRules
Schedule & AddCrossRegionCopyRules(CrossRegionCopyRule &&value)
Definition: Schedule.h:367
Aws::DLM::Model::Schedule::WithVariableTags
Schedule & WithVariableTags(const Aws::Vector< Tag > &value)
Definition: Schedule.h:206
Aws::DLM::Model::Schedule::CopyTagsHasBeenSet
bool CopyTagsHasBeenSet() const
Definition: Schedule.h:99
DLM_EXPORTS.h
Aws::DLM::Model::Schedule::operator=
Schedule & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::DLM::Model::Schedule::GetRetainRule
const RetainRule & GetRetainRule() const
Definition: Schedule.h:270
Aws::DLM::Model::Schedule::SetVariableTags
void SetVariableTags(const Aws::Vector< Tag > &value)
Definition: Schedule.h:188
Aws::DLM::Model::Schedule::WithFastRestoreRule
Schedule & WithFastRestoreRule(FastRestoreRule &&value)
Definition: Schedule.h:326
Aws::DLM::Model::Schedule::WithCopyTags
Schedule & WithCopyTags(bool value)
Definition: Schedule.h:111
Aws::DLM::Model::Schedule::SetName
void SetName(Aws::String &&value)
Definition: Schedule.h:66
CreateRule.h
Aws::DLM::Model::Schedule::RetainRuleHasBeenSet
bool RetainRuleHasBeenSet() const
Definition: Schedule.h:275
Aws::DLM::Model::Schedule::GetTagsToAdd
const Aws::Vector< Tag > & GetTagsToAdd() const
Definition: Schedule.h:118
Aws::DLM::Model::Schedule::SetTagsToAdd
void SetTagsToAdd(Aws::Vector< Tag > &&value)
Definition: Schedule.h:136
Aws::DLM::Model::Schedule::WithTagsToAdd
Schedule & WithTagsToAdd(Aws::Vector< Tag > &&value)
Definition: Schedule.h:148
Aws::DLM::Model::Schedule
Definition: Schedule.h:40
Aws::DLM::Model::Schedule::WithName
Schedule & WithName(Aws::String &&value)
Definition: Schedule.h:81
Aws::DLM::Model::Schedule::GetShareRules
const Aws::Vector< ShareRule > & GetShareRules() const
Definition: Schedule.h:373
RetainRule.h
Aws::DLM::Model::Schedule::SetCrossRegionCopyRules
void SetCrossRegionCopyRules(Aws::Vector< CrossRegionCopyRule > &&value)
Definition: Schedule.h:347
Aws::DLM::Model::Schedule::GetFastRestoreRule
const FastRestoreRule & GetFastRestoreRule() const
Definition: Schedule.h:301
Aws::DLM::Model::Schedule::ShareRulesHasBeenSet
bool ShareRulesHasBeenSet() const
Definition: Schedule.h:378
Aws::DLM::Model::Schedule::WithCrossRegionCopyRules
Schedule & WithCrossRegionCopyRules(const Aws::Vector< CrossRegionCopyRule > &value)
Definition: Schedule.h:352
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Tag.h
Aws::DLM::Model::Schedule::GetCopyTags
bool GetCopyTags() const
Definition: Schedule.h:93
Aws::DLM::Model::Schedule::SetCrossRegionCopyRules
void SetCrossRegionCopyRules(const Aws::Vector< CrossRegionCopyRule > &value)
Definition: Schedule.h:342
AWSVector.h
Aws::DLM::Model::CreateRule
Definition: CreateRule.h:36
Aws::DLM::Model::Schedule::Schedule
Schedule(Aws::Utils::Json::JsonView jsonValue)
Aws::DLM::Model::Schedule::WithRetainRule
Schedule & WithRetainRule(RetainRule &&value)
Definition: Schedule.h:295
CrossRegionCopyRule.h
Aws::DLM::Model::Schedule::SetCreateRule
void SetCreateRule(CreateRule &&value)
Definition: Schedule.h:254
Aws::DLM::Model::FastRestoreRule
Definition: FastRestoreRule.h:36
Aws::DLM::Model::Schedule::SetCopyTags
void SetCopyTags(bool value)
Definition: Schedule.h:105
Aws::DLM::Model::Schedule::SetName
void SetName(const char *value)
Definition: Schedule.h:71
Aws::DLM::Model::Schedule::SetTagsToAdd
void SetTagsToAdd(const Aws::Vector< Tag > &value)
Definition: Schedule.h:130
Aws::DLM::Model::ShareRule
Definition: ShareRule.h:35
Aws::DLM::Model::Tag
Definition: Tag.h:32
AWS_DLM_API
#define AWS_DLM_API
Definition: DLM_EXPORTS.h:28
Aws::DLM::Model::Schedule::WithName
Schedule & WithName(const Aws::String &value)
Definition: Schedule.h:76
Aws::DLM::Model::Schedule::SetCreateRule
void SetCreateRule(const CreateRule &value)
Definition: Schedule.h:249
Aws::DLM::Model::Schedule::WithCreateRule
Schedule & WithCreateRule(const CreateRule &value)
Definition: Schedule.h:259
Aws::DLM::Model::Schedule::GetCrossRegionCopyRules
const Aws::Vector< CrossRegionCopyRule > & GetCrossRegionCopyRules() const
Definition: Schedule.h:332
Aws::DLM::Model::Schedule::Schedule
Schedule()
Aws::DLM::Model::Schedule::FastRestoreRuleHasBeenSet
bool FastRestoreRuleHasBeenSet() const
Definition: Schedule.h:306
Aws::DLM::Model::Schedule::SetVariableTags
void SetVariableTags(Aws::Vector< Tag > &&value)
Definition: Schedule.h:197
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::DLM::Model::Schedule::NameHasBeenSet
bool NameHasBeenSet() const
Definition: Schedule.h:56
Aws::DLM::Model::Schedule::SetShareRules
void SetShareRules(Aws::Vector< ShareRule > &&value)
Definition: Schedule.h:388
Aws::DLM::Model::CrossRegionCopyRule
Definition: CrossRegionCopyRule.h:34
Aws::DLM::Model::Schedule::GetCreateRule
const CreateRule & GetCreateRule() const
Definition: Schedule.h:239
Aws::DLM::Model::Schedule::AddShareRules
Schedule & AddShareRules(const ShareRule &value)
Definition: Schedule.h:403
Aws::DLM::Model::Schedule::CreateRuleHasBeenSet
bool CreateRuleHasBeenSet() const
Definition: Schedule.h:244
Aws::DLM::Model::Schedule::WithFastRestoreRule
Schedule & WithFastRestoreRule(const FastRestoreRule &value)
Definition: Schedule.h:321
Aws::DLM::Model::Schedule::WithShareRules
Schedule & WithShareRules(Aws::Vector< ShareRule > &&value)
Definition: Schedule.h:398
Aws::DLM::Model::Schedule::WithShareRules
Schedule & WithShareRules(const Aws::Vector< ShareRule > &value)
Definition: Schedule.h:393
Aws::DLM::Model::Schedule::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::DLM::Model::Schedule::SetRetainRule
void SetRetainRule(RetainRule &&value)
Definition: Schedule.h:285
Aws::DLM::Model::Schedule::WithTagsToAdd
Schedule & WithTagsToAdd(const Aws::Vector< Tag > &value)
Definition: Schedule.h:142
Aws::DLM::Model::Schedule::SetRetainRule
void SetRetainRule(const RetainRule &value)
Definition: Schedule.h:280
Aws
Definition: AccessManagementClient.h:15
Aws::DLM::Model::Schedule::CrossRegionCopyRulesHasBeenSet
bool CrossRegionCopyRulesHasBeenSet() const
Definition: Schedule.h:337
ShareRule.h
Aws::DLM::Model::Schedule::SetFastRestoreRule
void SetFastRestoreRule(FastRestoreRule &&value)
Definition: Schedule.h:316
Aws::DLM::Model::Schedule::WithVariableTags
Schedule & WithVariableTags(Aws::Vector< Tag > &&value)
Definition: Schedule.h:215
Aws::DLM::Model::Schedule::WithRetainRule
Schedule & WithRetainRule(const RetainRule &value)
Definition: Schedule.h:290
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::DLM::Model::Schedule::SetName
void SetName(const Aws::String &value)
Definition: Schedule.h:61
Aws::DLM::Model::Schedule::AddCrossRegionCopyRules
Schedule & AddCrossRegionCopyRules(const CrossRegionCopyRule &value)
Definition: Schedule.h:362
Aws::DLM::Model::Schedule::SetFastRestoreRule
void SetFastRestoreRule(const FastRestoreRule &value)
Definition: Schedule.h:311
Aws::DLM::Model::Schedule::SetShareRules
void SetShareRules(const Aws::Vector< ShareRule > &value)
Definition: Schedule.h:383
Aws::DLM::Model::Schedule::WithName
Schedule & WithName(const char *value)
Definition: Schedule.h:86
Aws::DLM::Model::Schedule::GetName
const Aws::String & GetName() const
Definition: Schedule.h:51
Aws::DLM::Model::Schedule::WithCrossRegionCopyRules
Schedule & WithCrossRegionCopyRules(Aws::Vector< CrossRegionCopyRule > &&value)
Definition: Schedule.h:357
Aws::DLM::Model::Schedule::WithCreateRule
Schedule & WithCreateRule(CreateRule &&value)
Definition: Schedule.h:264
Aws::DLM::Model::Schedule::AddTagsToAdd
Schedule & AddTagsToAdd(const Tag &value)
Definition: Schedule.h:154
Aws::DLM::Model::Schedule::AddVariableTags
Schedule & AddVariableTags(Tag &&value)
Definition: Schedule.h:233
Aws::DLM::Model::RetainRule
Definition: RetainRule.h:33
Aws::DLM::Model::Schedule::GetVariableTags
const Aws::Vector< Tag > & GetVariableTags() const
Definition: Schedule.h:170
Aws::DLM::Model::Schedule::AddTagsToAdd
Schedule & AddTagsToAdd(Tag &&value)
Definition: Schedule.h:160
Aws::DLM::Model::Schedule::AddShareRules
Schedule & AddShareRules(ShareRule &&value)
Definition: Schedule.h:408