AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ScheduledInstanceRecurrence.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace EC2
23{
24namespace Model
25{
26
34 {
35 public:
39
40 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
43
45
49 inline const Aws::String& GetFrequency() const{ return m_frequency; }
50 inline bool FrequencyHasBeenSet() const { return m_frequencyHasBeenSet; }
51 inline void SetFrequency(const Aws::String& value) { m_frequencyHasBeenSet = true; m_frequency = value; }
52 inline void SetFrequency(Aws::String&& value) { m_frequencyHasBeenSet = true; m_frequency = std::move(value); }
53 inline void SetFrequency(const char* value) { m_frequencyHasBeenSet = true; m_frequency.assign(value); }
54 inline ScheduledInstanceRecurrence& WithFrequency(const Aws::String& value) { SetFrequency(value); return *this;}
55 inline ScheduledInstanceRecurrence& WithFrequency(Aws::String&& value) { SetFrequency(std::move(value)); return *this;}
56 inline ScheduledInstanceRecurrence& WithFrequency(const char* value) { SetFrequency(value); return *this;}
58
60
64 inline int GetInterval() const{ return m_interval; }
65 inline bool IntervalHasBeenSet() const { return m_intervalHasBeenSet; }
66 inline void SetInterval(int value) { m_intervalHasBeenSet = true; m_interval = value; }
67 inline ScheduledInstanceRecurrence& WithInterval(int value) { SetInterval(value); return *this;}
69
71
76 inline const Aws::Vector<int>& GetOccurrenceDaySet() const{ return m_occurrenceDaySet; }
77 inline bool OccurrenceDaySetHasBeenSet() const { return m_occurrenceDaySetHasBeenSet; }
78 inline void SetOccurrenceDaySet(const Aws::Vector<int>& value) { m_occurrenceDaySetHasBeenSet = true; m_occurrenceDaySet = value; }
79 inline void SetOccurrenceDaySet(Aws::Vector<int>&& value) { m_occurrenceDaySetHasBeenSet = true; m_occurrenceDaySet = std::move(value); }
81 inline ScheduledInstanceRecurrence& WithOccurrenceDaySet(Aws::Vector<int>&& value) { SetOccurrenceDaySet(std::move(value)); return *this;}
82 inline ScheduledInstanceRecurrence& AddOccurrenceDaySet(int value) { m_occurrenceDaySetHasBeenSet = true; m_occurrenceDaySet.push_back(value); return *this; }
84
86
90 inline bool GetOccurrenceRelativeToEnd() const{ return m_occurrenceRelativeToEnd; }
91 inline bool OccurrenceRelativeToEndHasBeenSet() const { return m_occurrenceRelativeToEndHasBeenSet; }
92 inline void SetOccurrenceRelativeToEnd(bool value) { m_occurrenceRelativeToEndHasBeenSet = true; m_occurrenceRelativeToEnd = value; }
95
97
101 inline const Aws::String& GetOccurrenceUnit() const{ return m_occurrenceUnit; }
102 inline bool OccurrenceUnitHasBeenSet() const { return m_occurrenceUnitHasBeenSet; }
103 inline void SetOccurrenceUnit(const Aws::String& value) { m_occurrenceUnitHasBeenSet = true; m_occurrenceUnit = value; }
104 inline void SetOccurrenceUnit(Aws::String&& value) { m_occurrenceUnitHasBeenSet = true; m_occurrenceUnit = std::move(value); }
105 inline void SetOccurrenceUnit(const char* value) { m_occurrenceUnitHasBeenSet = true; m_occurrenceUnit.assign(value); }
107 inline ScheduledInstanceRecurrence& WithOccurrenceUnit(Aws::String&& value) { SetOccurrenceUnit(std::move(value)); return *this;}
108 inline ScheduledInstanceRecurrence& WithOccurrenceUnit(const char* value) { SetOccurrenceUnit(value); return *this;}
110 private:
111
112 Aws::String m_frequency;
113 bool m_frequencyHasBeenSet = false;
114
115 int m_interval;
116 bool m_intervalHasBeenSet = false;
117
118 Aws::Vector<int> m_occurrenceDaySet;
119 bool m_occurrenceDaySetHasBeenSet = false;
120
121 bool m_occurrenceRelativeToEnd;
122 bool m_occurrenceRelativeToEndHasBeenSet = false;
123
124 Aws::String m_occurrenceUnit;
125 bool m_occurrenceUnitHasBeenSet = false;
126 };
127
128} // namespace Model
129} // namespace EC2
130} // namespace Aws
ScheduledInstanceRecurrence & WithOccurrenceDaySet(const Aws::Vector< int > &value)
const Aws::Vector< int > & GetOccurrenceDaySet() const
AWS_EC2_API ScheduledInstanceRecurrence(const Aws::Utils::Xml::XmlNode &xmlNode)
ScheduledInstanceRecurrence & WithOccurrenceUnit(Aws::String &&value)
ScheduledInstanceRecurrence & WithOccurrenceUnit(const Aws::String &value)
ScheduledInstanceRecurrence & WithFrequency(const Aws::String &value)
void SetOccurrenceDaySet(const Aws::Vector< int > &value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
ScheduledInstanceRecurrence & WithOccurrenceRelativeToEnd(bool value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
ScheduledInstanceRecurrence & WithFrequency(Aws::String &&value)
ScheduledInstanceRecurrence & WithInterval(int value)
ScheduledInstanceRecurrence & WithFrequency(const char *value)
ScheduledInstanceRecurrence & WithOccurrenceUnit(const char *value)
ScheduledInstanceRecurrence & AddOccurrenceDaySet(int value)
AWS_EC2_API ScheduledInstanceRecurrence & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
ScheduledInstanceRecurrence & WithOccurrenceDaySet(Aws::Vector< int > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream