AWS SDK for C++  1.9.67
AWS SDK for C++
ScheduledInstanceRecurrenceRequest.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 ScheduledInstanceRecurrenceRequest& WithFrequency(const Aws::String& value) { SetFrequency(value); return *this;}
79 
84  inline ScheduledInstanceRecurrenceRequest& WithFrequency(Aws::String&& value) { SetFrequency(std::move(value)); return *this;}
85 
90  inline ScheduledInstanceRecurrenceRequest& 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 ScheduledInstanceRecurrenceRequest& WithInterval(int value) { SetInterval(value); return *this;}
116 
117 
125  inline const Aws::Vector<int>& GetOccurrenceDays() const{ return m_occurrenceDays; }
126 
134  inline bool OccurrenceDaysHasBeenSet() const { return m_occurrenceDaysHasBeenSet; }
135 
143  inline void SetOccurrenceDays(const Aws::Vector<int>& value) { m_occurrenceDaysHasBeenSet = true; m_occurrenceDays = value; }
144 
152  inline void SetOccurrenceDays(Aws::Vector<int>&& value) { m_occurrenceDaysHasBeenSet = true; m_occurrenceDays = std::move(value); }
153 
161  inline ScheduledInstanceRecurrenceRequest& WithOccurrenceDays(const Aws::Vector<int>& value) { SetOccurrenceDays(value); return *this;}
162 
170  inline ScheduledInstanceRecurrenceRequest& WithOccurrenceDays(Aws::Vector<int>&& value) { SetOccurrenceDays(std::move(value)); return *this;}
171 
179  inline ScheduledInstanceRecurrenceRequest& AddOccurrenceDays(int value) { m_occurrenceDaysHasBeenSet = true; m_occurrenceDays.push_back(value); return *this; }
180 
181 
186  inline bool GetOccurrenceRelativeToEnd() const{ return m_occurrenceRelativeToEnd; }
187 
192  inline bool OccurrenceRelativeToEndHasBeenSet() const { return m_occurrenceRelativeToEndHasBeenSet; }
193 
198  inline void SetOccurrenceRelativeToEnd(bool value) { m_occurrenceRelativeToEndHasBeenSet = true; m_occurrenceRelativeToEnd = value; }
199 
204  inline ScheduledInstanceRecurrenceRequest& WithOccurrenceRelativeToEnd(bool value) { SetOccurrenceRelativeToEnd(value); return *this;}
205 
206 
213  inline const Aws::String& GetOccurrenceUnit() const{ return m_occurrenceUnit; }
214 
221  inline bool OccurrenceUnitHasBeenSet() const { return m_occurrenceUnitHasBeenSet; }
222 
229  inline void SetOccurrenceUnit(const Aws::String& value) { m_occurrenceUnitHasBeenSet = true; m_occurrenceUnit = value; }
230 
237  inline void SetOccurrenceUnit(Aws::String&& value) { m_occurrenceUnitHasBeenSet = true; m_occurrenceUnit = std::move(value); }
238 
245  inline void SetOccurrenceUnit(const char* value) { m_occurrenceUnitHasBeenSet = true; m_occurrenceUnit.assign(value); }
246 
253  inline ScheduledInstanceRecurrenceRequest& WithOccurrenceUnit(const Aws::String& value) { SetOccurrenceUnit(value); return *this;}
254 
261  inline ScheduledInstanceRecurrenceRequest& WithOccurrenceUnit(Aws::String&& value) { SetOccurrenceUnit(std::move(value)); return *this;}
262 
269  inline ScheduledInstanceRecurrenceRequest& WithOccurrenceUnit(const char* value) { SetOccurrenceUnit(value); return *this;}
270 
271  private:
272 
273  Aws::String m_frequency;
274  bool m_frequencyHasBeenSet;
275 
276  int m_interval;
277  bool m_intervalHasBeenSet;
278 
279  Aws::Vector<int> m_occurrenceDays;
280  bool m_occurrenceDaysHasBeenSet;
281 
282  bool m_occurrenceRelativeToEnd;
283  bool m_occurrenceRelativeToEndHasBeenSet;
284 
285  Aws::String m_occurrenceUnit;
286  bool m_occurrenceUnitHasBeenSet;
287  };
288 
289 } // namespace Model
290 } // namespace EC2
291 } // namespace Aws
Aws::EC2::Model::ScheduledInstanceRecurrenceRequest::operator=
ScheduledInstanceRecurrenceRequest & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::ScheduledInstanceRecurrenceRequest::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::ScheduledInstanceRecurrenceRequest::SetFrequency
void SetFrequency(const Aws::String &value)
Definition: ScheduledInstanceRecurrenceRequest.h:60
Aws::EC2::Model::ScheduledInstanceRecurrenceRequest::WithOccurrenceDays
ScheduledInstanceRecurrenceRequest & WithOccurrenceDays(Aws::Vector< int > &&value)
Definition: ScheduledInstanceRecurrenceRequest.h:170
Aws::EC2::Model::ScheduledInstanceRecurrenceRequest::SetOccurrenceUnit
void SetOccurrenceUnit(Aws::String &&value)
Definition: ScheduledInstanceRecurrenceRequest.h:237
Aws::EC2::Model::ScheduledInstanceRecurrenceRequest::WithOccurrenceUnit
ScheduledInstanceRecurrenceRequest & WithOccurrenceUnit(const Aws::String &value)
Definition: ScheduledInstanceRecurrenceRequest.h:253
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSStreamFwd.h
Aws::EC2::Model::ScheduledInstanceRecurrenceRequest::SetOccurrenceDays
void SetOccurrenceDays(const Aws::Vector< int > &value)
Definition: ScheduledInstanceRecurrenceRequest.h:143
Aws::EC2::Model::ScheduledInstanceRecurrenceRequest::OccurrenceDaysHasBeenSet
bool OccurrenceDaysHasBeenSet() const
Definition: ScheduledInstanceRecurrenceRequest.h:134
AWSVector.h
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::ScheduledInstanceRecurrenceRequest::WithOccurrenceRelativeToEnd
ScheduledInstanceRecurrenceRequest & WithOccurrenceRelativeToEnd(bool value)
Definition: ScheduledInstanceRecurrenceRequest.h:204
Aws::EC2::Model::ScheduledInstanceRecurrenceRequest::SetInterval
void SetInterval(int value)
Definition: ScheduledInstanceRecurrenceRequest.h:109
Aws::EC2::Model::ScheduledInstanceRecurrenceRequest::GetOccurrenceUnit
const Aws::String & GetOccurrenceUnit() const
Definition: ScheduledInstanceRecurrenceRequest.h:213
Aws::EC2::Model::ScheduledInstanceRecurrenceRequest::SetOccurrenceRelativeToEnd
void SetOccurrenceRelativeToEnd(bool value)
Definition: ScheduledInstanceRecurrenceRequest.h:198
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::ScheduledInstanceRecurrenceRequest::WithInterval
ScheduledInstanceRecurrenceRequest & WithInterval(int value)
Definition: ScheduledInstanceRecurrenceRequest.h:115
Aws::EC2::Model::ScheduledInstanceRecurrenceRequest::OccurrenceRelativeToEndHasBeenSet
bool OccurrenceRelativeToEndHasBeenSet() const
Definition: ScheduledInstanceRecurrenceRequest.h:192
Aws::EC2::Model::ScheduledInstanceRecurrenceRequest::IntervalHasBeenSet
bool IntervalHasBeenSet() const
Definition: ScheduledInstanceRecurrenceRequest.h:103
Aws::EC2::Model::ScheduledInstanceRecurrenceRequest::WithOccurrenceDays
ScheduledInstanceRecurrenceRequest & WithOccurrenceDays(const Aws::Vector< int > &value)
Definition: ScheduledInstanceRecurrenceRequest.h:161
Aws::EC2::Model::ScheduledInstanceRecurrenceRequest::GetOccurrenceRelativeToEnd
bool GetOccurrenceRelativeToEnd() const
Definition: ScheduledInstanceRecurrenceRequest.h:186
Aws::EC2::Model::ScheduledInstanceRecurrenceRequest::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::ScheduledInstanceRecurrenceRequest::ScheduledInstanceRecurrenceRequest
ScheduledInstanceRecurrenceRequest(const Aws::Utils::Xml::XmlNode &xmlNode)
AWSString.h
Aws::EC2::Model::ScheduledInstanceRecurrenceRequest::SetOccurrenceUnit
void SetOccurrenceUnit(const char *value)
Definition: ScheduledInstanceRecurrenceRequest.h:245
Aws::EC2::Model::ScheduledInstanceRecurrenceRequest::WithOccurrenceUnit
ScheduledInstanceRecurrenceRequest & WithOccurrenceUnit(Aws::String &&value)
Definition: ScheduledInstanceRecurrenceRequest.h:261
Aws::EC2::Model::ScheduledInstanceRecurrenceRequest::SetFrequency
void SetFrequency(Aws::String &&value)
Definition: ScheduledInstanceRecurrenceRequest.h:66
Aws::EC2::Model::ScheduledInstanceRecurrenceRequest::GetInterval
int GetInterval() const
Definition: ScheduledInstanceRecurrenceRequest.h:97
Aws::EC2::Model::ScheduledInstanceRecurrenceRequest::SetOccurrenceDays
void SetOccurrenceDays(Aws::Vector< int > &&value)
Definition: ScheduledInstanceRecurrenceRequest.h:152
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::ScheduledInstanceRecurrenceRequest::AddOccurrenceDays
ScheduledInstanceRecurrenceRequest & AddOccurrenceDays(int value)
Definition: ScheduledInstanceRecurrenceRequest.h:179
Aws::EC2::Model::ScheduledInstanceRecurrenceRequest::SetOccurrenceUnit
void SetOccurrenceUnit(const Aws::String &value)
Definition: ScheduledInstanceRecurrenceRequest.h:229
Aws::EC2::Model::ScheduledInstanceRecurrenceRequest::WithFrequency
ScheduledInstanceRecurrenceRequest & WithFrequency(const Aws::String &value)
Definition: ScheduledInstanceRecurrenceRequest.h:78
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::ScheduledInstanceRecurrenceRequest::SetFrequency
void SetFrequency(const char *value)
Definition: ScheduledInstanceRecurrenceRequest.h:72
Aws::EC2::Model::ScheduledInstanceRecurrenceRequest::FrequencyHasBeenSet
bool FrequencyHasBeenSet() const
Definition: ScheduledInstanceRecurrenceRequest.h:54
Aws::EC2::Model::ScheduledInstanceRecurrenceRequest::GetFrequency
const Aws::String & GetFrequency() const
Definition: ScheduledInstanceRecurrenceRequest.h:48
Aws::EC2::Model::ScheduledInstanceRecurrenceRequest::GetOccurrenceDays
const Aws::Vector< int > & GetOccurrenceDays() const
Definition: ScheduledInstanceRecurrenceRequest.h:125
Aws::EC2::Model::ScheduledInstanceRecurrenceRequest::OccurrenceUnitHasBeenSet
bool OccurrenceUnitHasBeenSet() const
Definition: ScheduledInstanceRecurrenceRequest.h:221
Aws::EC2::Model::ScheduledInstanceRecurrenceRequest::WithFrequency
ScheduledInstanceRecurrenceRequest & WithFrequency(const char *value)
Definition: ScheduledInstanceRecurrenceRequest.h:90
Aws::EC2::Model::ScheduledInstanceRecurrenceRequest
Definition: ScheduledInstanceRecurrenceRequest.h:34
Aws::EC2::Model::ScheduledInstanceRecurrenceRequest::WithOccurrenceUnit
ScheduledInstanceRecurrenceRequest & WithOccurrenceUnit(const char *value)
Definition: ScheduledInstanceRecurrenceRequest.h:269
EC2_EXPORTS.h
Aws::EC2::Model::ScheduledInstanceRecurrenceRequest::ScheduledInstanceRecurrenceRequest
ScheduledInstanceRecurrenceRequest()
Aws::EC2::Model::ScheduledInstanceRecurrenceRequest::WithFrequency
ScheduledInstanceRecurrenceRequest & WithFrequency(Aws::String &&value)
Definition: ScheduledInstanceRecurrenceRequest.h:84