AWS SDK for C++  1.9.71
AWS SDK for C++
ScheduledInstanceRecurrence.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Xml
18 {
19  class XmlNode;
20 } // namespace Xml
21 } // namespace Utils
22 namespace EC2
23 {
24 namespace Model
25 {
26 
34  {
35  public:
39 
40  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41  void OutputToStream(Aws::OStream& oStream, const char* location) const;
42 
43 
48  inline const Aws::String& GetFrequency() const{ return m_frequency; }
49 
54  inline bool FrequencyHasBeenSet() const { return m_frequencyHasBeenSet; }
55 
60  inline void SetFrequency(const Aws::String& value) { m_frequencyHasBeenSet = true; m_frequency = value; }
61 
66  inline void SetFrequency(Aws::String&& value) { m_frequencyHasBeenSet = true; m_frequency = std::move(value); }
67 
72  inline void SetFrequency(const char* value) { m_frequencyHasBeenSet = true; m_frequency.assign(value); }
73 
78  inline ScheduledInstanceRecurrence& WithFrequency(const Aws::String& value) { SetFrequency(value); return *this;}
79 
84  inline ScheduledInstanceRecurrence& WithFrequency(Aws::String&& value) { SetFrequency(std::move(value)); return *this;}
85 
90  inline ScheduledInstanceRecurrence& WithFrequency(const char* value) { SetFrequency(value); return *this;}
91 
92 
97  inline int GetInterval() const{ return m_interval; }
98 
103  inline bool IntervalHasBeenSet() const { return m_intervalHasBeenSet; }
104 
109  inline void SetInterval(int value) { m_intervalHasBeenSet = true; m_interval = value; }
110 
115  inline ScheduledInstanceRecurrence& WithInterval(int value) { SetInterval(value); return *this;}
116 
117 
123  inline const Aws::Vector<int>& GetOccurrenceDaySet() const{ return m_occurrenceDaySet; }
124 
130  inline bool OccurrenceDaySetHasBeenSet() const { return m_occurrenceDaySetHasBeenSet; }
131 
137  inline void SetOccurrenceDaySet(const Aws::Vector<int>& value) { m_occurrenceDaySetHasBeenSet = true; m_occurrenceDaySet = value; }
138 
144  inline void SetOccurrenceDaySet(Aws::Vector<int>&& value) { m_occurrenceDaySetHasBeenSet = true; m_occurrenceDaySet = std::move(value); }
145 
151  inline ScheduledInstanceRecurrence& WithOccurrenceDaySet(const Aws::Vector<int>& value) { SetOccurrenceDaySet(value); return *this;}
152 
158  inline ScheduledInstanceRecurrence& WithOccurrenceDaySet(Aws::Vector<int>&& value) { SetOccurrenceDaySet(std::move(value)); return *this;}
159 
165  inline ScheduledInstanceRecurrence& AddOccurrenceDaySet(int value) { m_occurrenceDaySetHasBeenSet = true; m_occurrenceDaySet.push_back(value); return *this; }
166 
167 
172  inline bool GetOccurrenceRelativeToEnd() const{ return m_occurrenceRelativeToEnd; }
173 
178  inline bool OccurrenceRelativeToEndHasBeenSet() const { return m_occurrenceRelativeToEndHasBeenSet; }
179 
184  inline void SetOccurrenceRelativeToEnd(bool value) { m_occurrenceRelativeToEndHasBeenSet = true; m_occurrenceRelativeToEnd = value; }
185 
190  inline ScheduledInstanceRecurrence& WithOccurrenceRelativeToEnd(bool value) { SetOccurrenceRelativeToEnd(value); return *this;}
191 
192 
197  inline const Aws::String& GetOccurrenceUnit() const{ return m_occurrenceUnit; }
198 
203  inline bool OccurrenceUnitHasBeenSet() const { return m_occurrenceUnitHasBeenSet; }
204 
209  inline void SetOccurrenceUnit(const Aws::String& value) { m_occurrenceUnitHasBeenSet = true; m_occurrenceUnit = value; }
210 
215  inline void SetOccurrenceUnit(Aws::String&& value) { m_occurrenceUnitHasBeenSet = true; m_occurrenceUnit = std::move(value); }
216 
221  inline void SetOccurrenceUnit(const char* value) { m_occurrenceUnitHasBeenSet = true; m_occurrenceUnit.assign(value); }
222 
227  inline ScheduledInstanceRecurrence& WithOccurrenceUnit(const Aws::String& value) { SetOccurrenceUnit(value); return *this;}
228 
233  inline ScheduledInstanceRecurrence& WithOccurrenceUnit(Aws::String&& value) { SetOccurrenceUnit(std::move(value)); return *this;}
234 
239  inline ScheduledInstanceRecurrence& WithOccurrenceUnit(const char* value) { SetOccurrenceUnit(value); return *this;}
240 
241  private:
242 
243  Aws::String m_frequency;
244  bool m_frequencyHasBeenSet;
245 
246  int m_interval;
247  bool m_intervalHasBeenSet;
248 
249  Aws::Vector<int> m_occurrenceDaySet;
250  bool m_occurrenceDaySetHasBeenSet;
251 
252  bool m_occurrenceRelativeToEnd;
253  bool m_occurrenceRelativeToEndHasBeenSet;
254 
255  Aws::String m_occurrenceUnit;
256  bool m_occurrenceUnitHasBeenSet;
257  };
258 
259 } // namespace Model
260 } // namespace EC2
261 } // namespace Aws
Aws::EC2::Model::ScheduledInstanceRecurrence::GetOccurrenceUnit
const Aws::String & GetOccurrenceUnit() const
Definition: ScheduledInstanceRecurrence.h:197
Aws::EC2::Model::ScheduledInstanceRecurrence::ScheduledInstanceRecurrence
ScheduledInstanceRecurrence()
Aws::EC2::Model::ScheduledInstanceRecurrence::WithOccurrenceRelativeToEnd
ScheduledInstanceRecurrence & WithOccurrenceRelativeToEnd(bool value)
Definition: ScheduledInstanceRecurrence.h:190
Aws::EC2::Model::ScheduledInstanceRecurrence::OccurrenceRelativeToEndHasBeenSet
bool OccurrenceRelativeToEndHasBeenSet() const
Definition: ScheduledInstanceRecurrence.h:178
Aws::EC2::Model::ScheduledInstanceRecurrence::OccurrenceUnitHasBeenSet
bool OccurrenceUnitHasBeenSet() const
Definition: ScheduledInstanceRecurrence.h:203
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::ScheduledInstanceRecurrence::WithFrequency
ScheduledInstanceRecurrence & WithFrequency(Aws::String &&value)
Definition: ScheduledInstanceRecurrence.h:84
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSStreamFwd.h
Aws::EC2::Model::ScheduledInstanceRecurrence::SetFrequency
void SetFrequency(const char *value)
Definition: ScheduledInstanceRecurrence.h:72
Aws::EC2::Model::ScheduledInstanceRecurrence::GetOccurrenceDaySet
const Aws::Vector< int > & GetOccurrenceDaySet() const
Definition: ScheduledInstanceRecurrence.h:123
AWSVector.h
Aws::EC2::Model::ScheduledInstanceRecurrence::SetOccurrenceUnit
void SetOccurrenceUnit(const char *value)
Definition: ScheduledInstanceRecurrence.h:221
Aws::EC2::Model::ScheduledInstanceRecurrence::SetFrequency
void SetFrequency(const Aws::String &value)
Definition: ScheduledInstanceRecurrence.h:60
Aws::EC2::Model::ScheduledInstanceRecurrence::WithInterval
ScheduledInstanceRecurrence & WithInterval(int value)
Definition: ScheduledInstanceRecurrence.h:115
Aws::EC2::Model::ScheduledInstanceRecurrence::GetFrequency
const Aws::String & GetFrequency() const
Definition: ScheduledInstanceRecurrence.h:48
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::ScheduledInstanceRecurrence::SetFrequency
void SetFrequency(Aws::String &&value)
Definition: ScheduledInstanceRecurrence.h:66
Aws::EC2::Model::ScheduledInstanceRecurrence::SetOccurrenceDaySet
void SetOccurrenceDaySet(const Aws::Vector< int > &value)
Definition: ScheduledInstanceRecurrence.h:137
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::ScheduledInstanceRecurrence::WithFrequency
ScheduledInstanceRecurrence & WithFrequency(const char *value)
Definition: ScheduledInstanceRecurrence.h:90
Aws::EC2::Model::ScheduledInstanceRecurrence::ScheduledInstanceRecurrence
ScheduledInstanceRecurrence(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::ScheduledInstanceRecurrence
Definition: ScheduledInstanceRecurrence.h:34
Aws::EC2::Model::ScheduledInstanceRecurrence::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::ScheduledInstanceRecurrence::SetOccurrenceRelativeToEnd
void SetOccurrenceRelativeToEnd(bool value)
Definition: ScheduledInstanceRecurrence.h:184
Aws::EC2::Model::ScheduledInstanceRecurrence::GetOccurrenceRelativeToEnd
bool GetOccurrenceRelativeToEnd() const
Definition: ScheduledInstanceRecurrence.h:172
Aws::EC2::Model::ScheduledInstanceRecurrence::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::ScheduledInstanceRecurrence::WithOccurrenceUnit
ScheduledInstanceRecurrence & WithOccurrenceUnit(const char *value)
Definition: ScheduledInstanceRecurrence.h:239
Aws::EC2::Model::ScheduledInstanceRecurrence::WithFrequency
ScheduledInstanceRecurrence & WithFrequency(const Aws::String &value)
Definition: ScheduledInstanceRecurrence.h:78
Aws::EC2::Model::ScheduledInstanceRecurrence::SetOccurrenceUnit
void SetOccurrenceUnit(const Aws::String &value)
Definition: ScheduledInstanceRecurrence.h:209
AWSString.h
Aws::EC2::Model::ScheduledInstanceRecurrence::operator=
ScheduledInstanceRecurrence & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::ScheduledInstanceRecurrence::AddOccurrenceDaySet
ScheduledInstanceRecurrence & AddOccurrenceDaySet(int value)
Definition: ScheduledInstanceRecurrence.h:165
Aws::EC2::Model::ScheduledInstanceRecurrence::GetInterval
int GetInterval() const
Definition: ScheduledInstanceRecurrence.h:97
Aws::EC2::Model::ScheduledInstanceRecurrence::SetOccurrenceUnit
void SetOccurrenceUnit(Aws::String &&value)
Definition: ScheduledInstanceRecurrence.h:215
Aws::EC2::Model::ScheduledInstanceRecurrence::WithOccurrenceDaySet
ScheduledInstanceRecurrence & WithOccurrenceDaySet(Aws::Vector< int > &&value)
Definition: ScheduledInstanceRecurrence.h:158
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::ScheduledInstanceRecurrence::WithOccurrenceUnit
ScheduledInstanceRecurrence & WithOccurrenceUnit(Aws::String &&value)
Definition: ScheduledInstanceRecurrence.h:233
Aws::EC2::Model::ScheduledInstanceRecurrence::OccurrenceDaySetHasBeenSet
bool OccurrenceDaySetHasBeenSet() const
Definition: ScheduledInstanceRecurrence.h:130
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::ScheduledInstanceRecurrence::WithOccurrenceDaySet
ScheduledInstanceRecurrence & WithOccurrenceDaySet(const Aws::Vector< int > &value)
Definition: ScheduledInstanceRecurrence.h:151
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::ScheduledInstanceRecurrence::IntervalHasBeenSet
bool IntervalHasBeenSet() const
Definition: ScheduledInstanceRecurrence.h:103
Aws::EC2::Model::ScheduledInstanceRecurrence::WithOccurrenceUnit
ScheduledInstanceRecurrence & WithOccurrenceUnit(const Aws::String &value)
Definition: ScheduledInstanceRecurrence.h:227
EC2_EXPORTS.h
Aws::EC2::Model::ScheduledInstanceRecurrence::SetInterval
void SetInterval(int value)
Definition: ScheduledInstanceRecurrence.h:109
Aws::EC2::Model::ScheduledInstanceRecurrence::SetOccurrenceDaySet
void SetOccurrenceDaySet(Aws::Vector< int > &&value)
Definition: ScheduledInstanceRecurrence.h:144
Aws::EC2::Model::ScheduledInstanceRecurrence::FrequencyHasBeenSet
bool FrequencyHasBeenSet() const
Definition: ScheduledInstanceRecurrence.h:54