AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RecurrenceSettings.h
1
6#pragma once
7#include <aws/ssm-contacts/SSMContacts_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/ssm-contacts/model/MonthlySetting.h>
11#include <aws/ssm-contacts/model/WeeklySetting.h>
12#include <aws/ssm-contacts/model/HandOffTime.h>
13#include <aws/ssm-contacts/model/DayOfWeek.h>
14#include <aws/ssm-contacts/model/CoverageTime.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace SSMContacts
28{
29namespace Model
30{
31
39 {
40 public:
41 AWS_SSMCONTACTS_API RecurrenceSettings();
42 AWS_SSMCONTACTS_API RecurrenceSettings(Aws::Utils::Json::JsonView jsonValue);
44 AWS_SSMCONTACTS_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
51 inline const Aws::Vector<MonthlySetting>& GetMonthlySettings() const{ return m_monthlySettings; }
52 inline bool MonthlySettingsHasBeenSet() const { return m_monthlySettingsHasBeenSet; }
53 inline void SetMonthlySettings(const Aws::Vector<MonthlySetting>& value) { m_monthlySettingsHasBeenSet = true; m_monthlySettings = value; }
54 inline void SetMonthlySettings(Aws::Vector<MonthlySetting>&& value) { m_monthlySettingsHasBeenSet = true; m_monthlySettings = std::move(value); }
56 inline RecurrenceSettings& WithMonthlySettings(Aws::Vector<MonthlySetting>&& value) { SetMonthlySettings(std::move(value)); return *this;}
57 inline RecurrenceSettings& AddMonthlySettings(const MonthlySetting& value) { m_monthlySettingsHasBeenSet = true; m_monthlySettings.push_back(value); return *this; }
58 inline RecurrenceSettings& AddMonthlySettings(MonthlySetting&& value) { m_monthlySettingsHasBeenSet = true; m_monthlySettings.push_back(std::move(value)); return *this; }
60
62
65 inline const Aws::Vector<WeeklySetting>& GetWeeklySettings() const{ return m_weeklySettings; }
66 inline bool WeeklySettingsHasBeenSet() const { return m_weeklySettingsHasBeenSet; }
67 inline void SetWeeklySettings(const Aws::Vector<WeeklySetting>& value) { m_weeklySettingsHasBeenSet = true; m_weeklySettings = value; }
68 inline void SetWeeklySettings(Aws::Vector<WeeklySetting>&& value) { m_weeklySettingsHasBeenSet = true; m_weeklySettings = std::move(value); }
70 inline RecurrenceSettings& WithWeeklySettings(Aws::Vector<WeeklySetting>&& value) { SetWeeklySettings(std::move(value)); return *this;}
71 inline RecurrenceSettings& AddWeeklySettings(const WeeklySetting& value) { m_weeklySettingsHasBeenSet = true; m_weeklySettings.push_back(value); return *this; }
72 inline RecurrenceSettings& AddWeeklySettings(WeeklySetting&& value) { m_weeklySettingsHasBeenSet = true; m_weeklySettings.push_back(std::move(value)); return *this; }
74
76
79 inline const Aws::Vector<HandOffTime>& GetDailySettings() const{ return m_dailySettings; }
80 inline bool DailySettingsHasBeenSet() const { return m_dailySettingsHasBeenSet; }
81 inline void SetDailySettings(const Aws::Vector<HandOffTime>& value) { m_dailySettingsHasBeenSet = true; m_dailySettings = value; }
82 inline void SetDailySettings(Aws::Vector<HandOffTime>&& value) { m_dailySettingsHasBeenSet = true; m_dailySettings = std::move(value); }
84 inline RecurrenceSettings& WithDailySettings(Aws::Vector<HandOffTime>&& value) { SetDailySettings(std::move(value)); return *this;}
85 inline RecurrenceSettings& AddDailySettings(const HandOffTime& value) { m_dailySettingsHasBeenSet = true; m_dailySettings.push_back(value); return *this; }
86 inline RecurrenceSettings& AddDailySettings(HandOffTime&& value) { m_dailySettingsHasBeenSet = true; m_dailySettings.push_back(std::move(value)); return *this; }
88
90
96 inline int GetNumberOfOnCalls() const{ return m_numberOfOnCalls; }
97 inline bool NumberOfOnCallsHasBeenSet() const { return m_numberOfOnCallsHasBeenSet; }
98 inline void SetNumberOfOnCalls(int value) { m_numberOfOnCallsHasBeenSet = true; m_numberOfOnCalls = value; }
99 inline RecurrenceSettings& WithNumberOfOnCalls(int value) { SetNumberOfOnCalls(value); return *this;}
101
103
107 inline const Aws::Map<DayOfWeek, Aws::Vector<CoverageTime>>& GetShiftCoverages() const{ return m_shiftCoverages; }
108 inline bool ShiftCoveragesHasBeenSet() const { return m_shiftCoveragesHasBeenSet; }
109 inline void SetShiftCoverages(const Aws::Map<DayOfWeek, Aws::Vector<CoverageTime>>& value) { m_shiftCoveragesHasBeenSet = true; m_shiftCoverages = value; }
110 inline void SetShiftCoverages(Aws::Map<DayOfWeek, Aws::Vector<CoverageTime>>&& value) { m_shiftCoveragesHasBeenSet = true; m_shiftCoverages = std::move(value); }
113 inline RecurrenceSettings& AddShiftCoverages(const DayOfWeek& key, const Aws::Vector<CoverageTime>& value) { m_shiftCoveragesHasBeenSet = true; m_shiftCoverages.emplace(key, value); return *this; }
114 inline RecurrenceSettings& AddShiftCoverages(DayOfWeek&& key, const Aws::Vector<CoverageTime>& value) { m_shiftCoveragesHasBeenSet = true; m_shiftCoverages.emplace(std::move(key), value); return *this; }
115 inline RecurrenceSettings& AddShiftCoverages(const DayOfWeek& key, Aws::Vector<CoverageTime>&& value) { m_shiftCoveragesHasBeenSet = true; m_shiftCoverages.emplace(key, std::move(value)); return *this; }
116 inline RecurrenceSettings& AddShiftCoverages(DayOfWeek&& key, Aws::Vector<CoverageTime>&& value) { m_shiftCoveragesHasBeenSet = true; m_shiftCoverages.emplace(std::move(key), std::move(value)); return *this; }
118
120
123 inline int GetRecurrenceMultiplier() const{ return m_recurrenceMultiplier; }
124 inline bool RecurrenceMultiplierHasBeenSet() const { return m_recurrenceMultiplierHasBeenSet; }
125 inline void SetRecurrenceMultiplier(int value) { m_recurrenceMultiplierHasBeenSet = true; m_recurrenceMultiplier = value; }
126 inline RecurrenceSettings& WithRecurrenceMultiplier(int value) { SetRecurrenceMultiplier(value); return *this;}
128 private:
129
130 Aws::Vector<MonthlySetting> m_monthlySettings;
131 bool m_monthlySettingsHasBeenSet = false;
132
133 Aws::Vector<WeeklySetting> m_weeklySettings;
134 bool m_weeklySettingsHasBeenSet = false;
135
136 Aws::Vector<HandOffTime> m_dailySettings;
137 bool m_dailySettingsHasBeenSet = false;
138
139 int m_numberOfOnCalls;
140 bool m_numberOfOnCallsHasBeenSet = false;
141
143 bool m_shiftCoveragesHasBeenSet = false;
144
145 int m_recurrenceMultiplier;
146 bool m_recurrenceMultiplierHasBeenSet = false;
147 };
148
149} // namespace Model
150} // namespace SSMContacts
151} // namespace Aws
void SetMonthlySettings(Aws::Vector< MonthlySetting > &&value)
RecurrenceSettings & WithDailySettings(Aws::Vector< HandOffTime > &&value)
void SetDailySettings(const Aws::Vector< HandOffTime > &value)
RecurrenceSettings & AddMonthlySettings(const MonthlySetting &value)
RecurrenceSettings & WithDailySettings(const Aws::Vector< HandOffTime > &value)
const Aws::Vector< HandOffTime > & GetDailySettings() const
RecurrenceSettings & AddMonthlySettings(MonthlySetting &&value)
void SetMonthlySettings(const Aws::Vector< MonthlySetting > &value)
const Aws::Vector< WeeklySetting > & GetWeeklySettings() const
RecurrenceSettings & WithNumberOfOnCalls(int value)
AWS_SSMCONTACTS_API RecurrenceSettings(Aws::Utils::Json::JsonView jsonValue)
RecurrenceSettings & WithMonthlySettings(const Aws::Vector< MonthlySetting > &value)
RecurrenceSettings & AddShiftCoverages(DayOfWeek &&key, Aws::Vector< CoverageTime > &&value)
void SetWeeklySettings(const Aws::Vector< WeeklySetting > &value)
RecurrenceSettings & WithRecurrenceMultiplier(int value)
RecurrenceSettings & WithMonthlySettings(Aws::Vector< MonthlySetting > &&value)
void SetShiftCoverages(Aws::Map< DayOfWeek, Aws::Vector< CoverageTime > > &&value)
RecurrenceSettings & AddShiftCoverages(const DayOfWeek &key, Aws::Vector< CoverageTime > &&value)
RecurrenceSettings & AddShiftCoverages(const DayOfWeek &key, const Aws::Vector< CoverageTime > &value)
RecurrenceSettings & WithShiftCoverages(const Aws::Map< DayOfWeek, Aws::Vector< CoverageTime > > &value)
RecurrenceSettings & WithWeeklySettings(const Aws::Vector< WeeklySetting > &value)
const Aws::Vector< MonthlySetting > & GetMonthlySettings() const
RecurrenceSettings & AddShiftCoverages(DayOfWeek &&key, const Aws::Vector< CoverageTime > &value)
AWS_SSMCONTACTS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Map< DayOfWeek, Aws::Vector< CoverageTime > > & GetShiftCoverages() const
RecurrenceSettings & AddDailySettings(const HandOffTime &value)
RecurrenceSettings & WithShiftCoverages(Aws::Map< DayOfWeek, Aws::Vector< CoverageTime > > &&value)
RecurrenceSettings & AddDailySettings(HandOffTime &&value)
RecurrenceSettings & WithWeeklySettings(Aws::Vector< WeeklySetting > &&value)
void SetWeeklySettings(Aws::Vector< WeeklySetting > &&value)
void SetDailySettings(Aws::Vector< HandOffTime > &&value)
RecurrenceSettings & AddWeeklySettings(const WeeklySetting &value)
RecurrenceSettings & AddWeeklySettings(WeeklySetting &&value)
void SetShiftCoverages(const Aws::Map< DayOfWeek, Aws::Vector< CoverageTime > > &value)
AWS_SSMCONTACTS_API RecurrenceSettings & operator=(Aws::Utils::Json::JsonView jsonValue)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue