AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ScheduledInstanceRecurrenceRequest.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 ScheduledInstanceRecurrenceRequest& WithFrequency(const Aws::String& value) { SetFrequency(value); return *this;}
55 inline ScheduledInstanceRecurrenceRequest& WithFrequency(Aws::String&& value) { SetFrequency(std::move(value)); return *this;}
56 inline ScheduledInstanceRecurrenceRequest& 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 ScheduledInstanceRecurrenceRequest& WithInterval(int value) { SetInterval(value); return *this;}
69
71
78 inline const Aws::Vector<int>& GetOccurrenceDays() const{ return m_occurrenceDays; }
79 inline bool OccurrenceDaysHasBeenSet() const { return m_occurrenceDaysHasBeenSet; }
80 inline void SetOccurrenceDays(const Aws::Vector<int>& value) { m_occurrenceDaysHasBeenSet = true; m_occurrenceDays = value; }
81 inline void SetOccurrenceDays(Aws::Vector<int>&& value) { m_occurrenceDaysHasBeenSet = true; m_occurrenceDays = std::move(value); }
84 inline ScheduledInstanceRecurrenceRequest& AddOccurrenceDays(int value) { m_occurrenceDaysHasBeenSet = true; m_occurrenceDays.push_back(value); return *this; }
86
88
92 inline bool GetOccurrenceRelativeToEnd() const{ return m_occurrenceRelativeToEnd; }
93 inline bool OccurrenceRelativeToEndHasBeenSet() const { return m_occurrenceRelativeToEndHasBeenSet; }
94 inline void SetOccurrenceRelativeToEnd(bool value) { m_occurrenceRelativeToEndHasBeenSet = true; m_occurrenceRelativeToEnd = value; }
97
99
105 inline const Aws::String& GetOccurrenceUnit() const{ return m_occurrenceUnit; }
106 inline bool OccurrenceUnitHasBeenSet() const { return m_occurrenceUnitHasBeenSet; }
107 inline void SetOccurrenceUnit(const Aws::String& value) { m_occurrenceUnitHasBeenSet = true; m_occurrenceUnit = value; }
108 inline void SetOccurrenceUnit(Aws::String&& value) { m_occurrenceUnitHasBeenSet = true; m_occurrenceUnit = std::move(value); }
109 inline void SetOccurrenceUnit(const char* value) { m_occurrenceUnitHasBeenSet = true; m_occurrenceUnit.assign(value); }
111 inline ScheduledInstanceRecurrenceRequest& WithOccurrenceUnit(Aws::String&& value) { SetOccurrenceUnit(std::move(value)); return *this;}
112 inline ScheduledInstanceRecurrenceRequest& WithOccurrenceUnit(const char* value) { SetOccurrenceUnit(value); return *this;}
114 private:
115
116 Aws::String m_frequency;
117 bool m_frequencyHasBeenSet = false;
118
119 int m_interval;
120 bool m_intervalHasBeenSet = false;
121
122 Aws::Vector<int> m_occurrenceDays;
123 bool m_occurrenceDaysHasBeenSet = false;
124
125 bool m_occurrenceRelativeToEnd;
126 bool m_occurrenceRelativeToEndHasBeenSet = false;
127
128 Aws::String m_occurrenceUnit;
129 bool m_occurrenceUnitHasBeenSet = false;
130 };
131
132} // namespace Model
133} // namespace EC2
134} // namespace Aws
ScheduledInstanceRecurrenceRequest & WithOccurrenceDays(Aws::Vector< int > &&value)
ScheduledInstanceRecurrenceRequest & WithOccurrenceUnit(const char *value)
ScheduledInstanceRecurrenceRequest & WithOccurrenceUnit(const Aws::String &value)
AWS_EC2_API ScheduledInstanceRecurrenceRequest & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
ScheduledInstanceRecurrenceRequest & WithFrequency(const Aws::String &value)
AWS_EC2_API ScheduledInstanceRecurrenceRequest(const Aws::Utils::Xml::XmlNode &xmlNode)
ScheduledInstanceRecurrenceRequest & AddOccurrenceDays(int value)
ScheduledInstanceRecurrenceRequest & WithOccurrenceUnit(Aws::String &&value)
ScheduledInstanceRecurrenceRequest & WithInterval(int value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
ScheduledInstanceRecurrenceRequest & WithOccurrenceRelativeToEnd(bool value)
ScheduledInstanceRecurrenceRequest & WithOccurrenceDays(const Aws::Vector< int > &value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
ScheduledInstanceRecurrenceRequest & WithFrequency(const char *value)
ScheduledInstanceRecurrenceRequest & WithFrequency(Aws::String &&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