AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
RecurrencePattern.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/model/RecurrenceFrequency.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Connect {
21namespace Model {
22
31 public:
32 AWS_CONNECT_API RecurrencePattern() = default;
35 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
43 inline RecurrenceFrequency GetFrequency() const { return m_frequency; }
44 inline bool FrequencyHasBeenSet() const { return m_frequencyHasBeenSet; }
45 inline void SetFrequency(RecurrenceFrequency value) {
46 m_frequencyHasBeenSet = true;
47 m_frequency = value;
48 }
50 SetFrequency(value);
51 return *this;
52 }
54
56
62 inline int GetInterval() const { return m_interval; }
63 inline bool IntervalHasBeenSet() const { return m_intervalHasBeenSet; }
64 inline void SetInterval(int value) {
65 m_intervalHasBeenSet = true;
66 m_interval = value;
67 }
68 inline RecurrencePattern& WithInterval(int value) {
69 SetInterval(value);
70 return *this;
71 }
73
75
80 inline const Aws::Vector<int>& GetByMonth() const { return m_byMonth; }
81 inline bool ByMonthHasBeenSet() const { return m_byMonthHasBeenSet; }
82 template <typename ByMonthT = Aws::Vector<int>>
83 void SetByMonth(ByMonthT&& value) {
84 m_byMonthHasBeenSet = true;
85 m_byMonth = std::forward<ByMonthT>(value);
86 }
87 template <typename ByMonthT = Aws::Vector<int>>
88 RecurrencePattern& WithByMonth(ByMonthT&& value) {
89 SetByMonth(std::forward<ByMonthT>(value));
90 return *this;
91 }
92 inline RecurrencePattern& AddByMonth(int value) {
93 m_byMonthHasBeenSet = true;
94 m_byMonth.push_back(value);
95 return *this;
96 }
98
100
111 inline const Aws::Vector<int>& GetByMonthDay() const { return m_byMonthDay; }
112 inline bool ByMonthDayHasBeenSet() const { return m_byMonthDayHasBeenSet; }
113 template <typename ByMonthDayT = Aws::Vector<int>>
114 void SetByMonthDay(ByMonthDayT&& value) {
115 m_byMonthDayHasBeenSet = true;
116 m_byMonthDay = std::forward<ByMonthDayT>(value);
117 }
118 template <typename ByMonthDayT = Aws::Vector<int>>
119 RecurrencePattern& WithByMonthDay(ByMonthDayT&& value) {
120 SetByMonthDay(std::forward<ByMonthDayT>(value));
121 return *this;
122 }
123 inline RecurrencePattern& AddByMonthDay(int value) {
124 m_byMonthDayHasBeenSet = true;
125 m_byMonthDay.push_back(value);
126 return *this;
127 }
129
131
141 inline const Aws::Vector<int>& GetByWeekdayOccurrence() const { return m_byWeekdayOccurrence; }
142 inline bool ByWeekdayOccurrenceHasBeenSet() const { return m_byWeekdayOccurrenceHasBeenSet; }
143 template <typename ByWeekdayOccurrenceT = Aws::Vector<int>>
144 void SetByWeekdayOccurrence(ByWeekdayOccurrenceT&& value) {
145 m_byWeekdayOccurrenceHasBeenSet = true;
146 m_byWeekdayOccurrence = std::forward<ByWeekdayOccurrenceT>(value);
147 }
148 template <typename ByWeekdayOccurrenceT = Aws::Vector<int>>
149 RecurrencePattern& WithByWeekdayOccurrence(ByWeekdayOccurrenceT&& value) {
150 SetByWeekdayOccurrence(std::forward<ByWeekdayOccurrenceT>(value));
151 return *this;
152 }
154 m_byWeekdayOccurrenceHasBeenSet = true;
155 m_byWeekdayOccurrence.push_back(value);
156 return *this;
157 }
159 private:
161
162 int m_interval{0};
163
164 Aws::Vector<int> m_byMonth;
165
166 Aws::Vector<int> m_byMonthDay;
167
168 Aws::Vector<int> m_byWeekdayOccurrence;
169 bool m_frequencyHasBeenSet = false;
170 bool m_intervalHasBeenSet = false;
171 bool m_byMonthHasBeenSet = false;
172 bool m_byMonthDayHasBeenSet = false;
173 bool m_byWeekdayOccurrenceHasBeenSet = false;
174};
175
176} // namespace Model
177} // namespace Connect
178} // namespace Aws
RecurrencePattern & WithInterval(int value)
const Aws::Vector< int > & GetByWeekdayOccurrence() const
RecurrencePattern & WithByWeekdayOccurrence(ByWeekdayOccurrenceT &&value)
RecurrencePattern & AddByMonthDay(int value)
AWS_CONNECT_API RecurrencePattern()=default
void SetByWeekdayOccurrence(ByWeekdayOccurrenceT &&value)
RecurrenceFrequency GetFrequency() const
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetFrequency(RecurrenceFrequency value)
AWS_CONNECT_API RecurrencePattern(Aws::Utils::Json::JsonView jsonValue)
RecurrencePattern & WithByMonthDay(ByMonthDayT &&value)
RecurrencePattern & WithFrequency(RecurrenceFrequency value)
RecurrencePattern & WithByMonth(ByMonthT &&value)
const Aws::Vector< int > & GetByMonthDay() const
RecurrencePattern & AddByWeekdayOccurrence(int value)
RecurrencePattern & AddByMonth(int value)
AWS_CONNECT_API RecurrencePattern & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< int > & GetByMonth() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue