AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateRule.h
1
6#pragma once
7#include <aws/dlm/DLM_EXPORTS.h>
8#include <aws/dlm/model/LocationValues.h>
9#include <aws/dlm/model/IntervalUnitValues.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/dlm/model/Script.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 DLM
26{
27namespace Model
28{
29
42 {
43 public:
44 AWS_DLM_API CreateRule();
45 AWS_DLM_API CreateRule(Aws::Utils::Json::JsonView jsonValue);
48
49
51
62 inline const LocationValues& GetLocation() const{ return m_location; }
63 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
64 inline void SetLocation(const LocationValues& value) { m_locationHasBeenSet = true; m_location = value; }
65 inline void SetLocation(LocationValues&& value) { m_locationHasBeenSet = true; m_location = std::move(value); }
66 inline CreateRule& WithLocation(const LocationValues& value) { SetLocation(value); return *this;}
67 inline CreateRule& WithLocation(LocationValues&& value) { SetLocation(std::move(value)); return *this;}
69
71
75 inline int GetInterval() const{ return m_interval; }
76 inline bool IntervalHasBeenSet() const { return m_intervalHasBeenSet; }
77 inline void SetInterval(int value) { m_intervalHasBeenSet = true; m_interval = value; }
78 inline CreateRule& WithInterval(int value) { SetInterval(value); return *this;}
80
82
85 inline const IntervalUnitValues& GetIntervalUnit() const{ return m_intervalUnit; }
86 inline bool IntervalUnitHasBeenSet() const { return m_intervalUnitHasBeenSet; }
87 inline void SetIntervalUnit(const IntervalUnitValues& value) { m_intervalUnitHasBeenSet = true; m_intervalUnit = value; }
88 inline void SetIntervalUnit(IntervalUnitValues&& value) { m_intervalUnitHasBeenSet = true; m_intervalUnit = std::move(value); }
89 inline CreateRule& WithIntervalUnit(const IntervalUnitValues& value) { SetIntervalUnit(value); return *this;}
90 inline CreateRule& WithIntervalUnit(IntervalUnitValues&& value) { SetIntervalUnit(std::move(value)); return *this;}
92
94
100 inline const Aws::Vector<Aws::String>& GetTimes() const{ return m_times; }
101 inline bool TimesHasBeenSet() const { return m_timesHasBeenSet; }
102 inline void SetTimes(const Aws::Vector<Aws::String>& value) { m_timesHasBeenSet = true; m_times = value; }
103 inline void SetTimes(Aws::Vector<Aws::String>&& value) { m_timesHasBeenSet = true; m_times = std::move(value); }
104 inline CreateRule& WithTimes(const Aws::Vector<Aws::String>& value) { SetTimes(value); return *this;}
105 inline CreateRule& WithTimes(Aws::Vector<Aws::String>&& value) { SetTimes(std::move(value)); return *this;}
106 inline CreateRule& AddTimes(const Aws::String& value) { m_timesHasBeenSet = true; m_times.push_back(value); return *this; }
107 inline CreateRule& AddTimes(Aws::String&& value) { m_timesHasBeenSet = true; m_times.push_back(std::move(value)); return *this; }
108 inline CreateRule& AddTimes(const char* value) { m_timesHasBeenSet = true; m_times.push_back(value); return *this; }
110
112
118 inline const Aws::String& GetCronExpression() const{ return m_cronExpression; }
119 inline bool CronExpressionHasBeenSet() const { return m_cronExpressionHasBeenSet; }
120 inline void SetCronExpression(const Aws::String& value) { m_cronExpressionHasBeenSet = true; m_cronExpression = value; }
121 inline void SetCronExpression(Aws::String&& value) { m_cronExpressionHasBeenSet = true; m_cronExpression = std::move(value); }
122 inline void SetCronExpression(const char* value) { m_cronExpressionHasBeenSet = true; m_cronExpression.assign(value); }
123 inline CreateRule& WithCronExpression(const Aws::String& value) { SetCronExpression(value); return *this;}
124 inline CreateRule& WithCronExpression(Aws::String&& value) { SetCronExpression(std::move(value)); return *this;}
125 inline CreateRule& WithCronExpression(const char* value) { SetCronExpression(value); return *this;}
127
129
138 inline const Aws::Vector<Script>& GetScripts() const{ return m_scripts; }
139 inline bool ScriptsHasBeenSet() const { return m_scriptsHasBeenSet; }
140 inline void SetScripts(const Aws::Vector<Script>& value) { m_scriptsHasBeenSet = true; m_scripts = value; }
141 inline void SetScripts(Aws::Vector<Script>&& value) { m_scriptsHasBeenSet = true; m_scripts = std::move(value); }
142 inline CreateRule& WithScripts(const Aws::Vector<Script>& value) { SetScripts(value); return *this;}
143 inline CreateRule& WithScripts(Aws::Vector<Script>&& value) { SetScripts(std::move(value)); return *this;}
144 inline CreateRule& AddScripts(const Script& value) { m_scriptsHasBeenSet = true; m_scripts.push_back(value); return *this; }
145 inline CreateRule& AddScripts(Script&& value) { m_scriptsHasBeenSet = true; m_scripts.push_back(std::move(value)); return *this; }
147 private:
148
149 LocationValues m_location;
150 bool m_locationHasBeenSet = false;
151
152 int m_interval;
153 bool m_intervalHasBeenSet = false;
154
155 IntervalUnitValues m_intervalUnit;
156 bool m_intervalUnitHasBeenSet = false;
157
159 bool m_timesHasBeenSet = false;
160
161 Aws::String m_cronExpression;
162 bool m_cronExpressionHasBeenSet = false;
163
164 Aws::Vector<Script> m_scripts;
165 bool m_scriptsHasBeenSet = false;
166 };
167
168} // namespace Model
169} // namespace DLM
170} // namespace Aws
void SetScripts(const Aws::Vector< Script > &value)
Definition CreateRule.h:140
const IntervalUnitValues & GetIntervalUnit() const
Definition CreateRule.h:85
CreateRule & AddScripts(Script &&value)
Definition CreateRule.h:145
void SetTimes(const Aws::Vector< Aws::String > &value)
Definition CreateRule.h:102
const Aws::Vector< Aws::String > & GetTimes() const
Definition CreateRule.h:100
CreateRule & WithInterval(int value)
Definition CreateRule.h:78
void SetLocation(LocationValues &&value)
Definition CreateRule.h:65
CreateRule & AddTimes(Aws::String &&value)
Definition CreateRule.h:107
void SetCronExpression(const Aws::String &value)
Definition CreateRule.h:120
CreateRule & WithIntervalUnit(IntervalUnitValues &&value)
Definition CreateRule.h:90
void SetCronExpression(Aws::String &&value)
Definition CreateRule.h:121
CreateRule & WithScripts(Aws::Vector< Script > &&value)
Definition CreateRule.h:143
CreateRule & WithLocation(LocationValues &&value)
Definition CreateRule.h:67
CreateRule & WithIntervalUnit(const IntervalUnitValues &value)
Definition CreateRule.h:89
bool IntervalUnitHasBeenSet() const
Definition CreateRule.h:86
void SetIntervalUnit(const IntervalUnitValues &value)
Definition CreateRule.h:87
void SetScripts(Aws::Vector< Script > &&value)
Definition CreateRule.h:141
void SetInterval(int value)
Definition CreateRule.h:77
void SetTimes(Aws::Vector< Aws::String > &&value)
Definition CreateRule.h:103
CreateRule & WithScripts(const Aws::Vector< Script > &value)
Definition CreateRule.h:142
CreateRule & WithCronExpression(const Aws::String &value)
Definition CreateRule.h:123
CreateRule & AddTimes(const char *value)
Definition CreateRule.h:108
bool LocationHasBeenSet() const
Definition CreateRule.h:63
CreateRule & WithCronExpression(Aws::String &&value)
Definition CreateRule.h:124
CreateRule & WithTimes(const Aws::Vector< Aws::String > &value)
Definition CreateRule.h:104
CreateRule & AddScripts(const Script &value)
Definition CreateRule.h:144
AWS_DLM_API CreateRule(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Script > & GetScripts() const
Definition CreateRule.h:138
bool CronExpressionHasBeenSet() const
Definition CreateRule.h:119
const Aws::String & GetCronExpression() const
Definition CreateRule.h:118
bool IntervalHasBeenSet() const
Definition CreateRule.h:76
AWS_DLM_API Aws::Utils::Json::JsonValue Jsonize() const
void SetCronExpression(const char *value)
Definition CreateRule.h:122
CreateRule & WithCronExpression(const char *value)
Definition CreateRule.h:125
CreateRule & WithTimes(Aws::Vector< Aws::String > &&value)
Definition CreateRule.h:105
AWS_DLM_API CreateRule & operator=(Aws::Utils::Json::JsonView jsonValue)
const LocationValues & GetLocation() const
Definition CreateRule.h:62
void SetIntervalUnit(IntervalUnitValues &&value)
Definition CreateRule.h:88
void SetLocation(const LocationValues &value)
Definition CreateRule.h:64
CreateRule & WithLocation(const LocationValues &value)
Definition CreateRule.h:66
CreateRule & AddTimes(const Aws::String &value)
Definition CreateRule.h:106
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue