AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
Schedule.h
1
6#pragma once
7#include <aws/inspector2/Inspector2_EXPORTS.h>
8#include <aws/inspector2/model/DailySchedule.h>
9#include <aws/inspector2/model/MonthlySchedule.h>
10#include <aws/inspector2/model/OneTimeSchedule.h>
11#include <aws/inspector2/model/WeeklySchedule.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Inspector2 {
23namespace Model {
24
30class Schedule {
31 public:
32 AWS_INSPECTOR2_API Schedule() = default;
33 AWS_INSPECTOR2_API Schedule(Aws::Utils::Json::JsonView jsonValue);
34 AWS_INSPECTOR2_API Schedule& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const OneTimeSchedule& GetOneTime() const { return m_oneTime; }
42 inline bool OneTimeHasBeenSet() const { return m_oneTimeHasBeenSet; }
43 template <typename OneTimeT = OneTimeSchedule>
44 void SetOneTime(OneTimeT&& value) {
45 m_oneTimeHasBeenSet = true;
46 m_oneTime = std::forward<OneTimeT>(value);
47 }
48 template <typename OneTimeT = OneTimeSchedule>
49 Schedule& WithOneTime(OneTimeT&& value) {
50 SetOneTime(std::forward<OneTimeT>(value));
51 return *this;
52 }
54
56
59 inline const DailySchedule& GetDaily() const { return m_daily; }
60 inline bool DailyHasBeenSet() const { return m_dailyHasBeenSet; }
61 template <typename DailyT = DailySchedule>
62 void SetDaily(DailyT&& value) {
63 m_dailyHasBeenSet = true;
64 m_daily = std::forward<DailyT>(value);
65 }
66 template <typename DailyT = DailySchedule>
67 Schedule& WithDaily(DailyT&& value) {
68 SetDaily(std::forward<DailyT>(value));
69 return *this;
70 }
72
74
77 inline const WeeklySchedule& GetWeekly() const { return m_weekly; }
78 inline bool WeeklyHasBeenSet() const { return m_weeklyHasBeenSet; }
79 template <typename WeeklyT = WeeklySchedule>
80 void SetWeekly(WeeklyT&& value) {
81 m_weeklyHasBeenSet = true;
82 m_weekly = std::forward<WeeklyT>(value);
83 }
84 template <typename WeeklyT = WeeklySchedule>
85 Schedule& WithWeekly(WeeklyT&& value) {
86 SetWeekly(std::forward<WeeklyT>(value));
87 return *this;
88 }
90
92
95 inline const MonthlySchedule& GetMonthly() const { return m_monthly; }
96 inline bool MonthlyHasBeenSet() const { return m_monthlyHasBeenSet; }
97 template <typename MonthlyT = MonthlySchedule>
98 void SetMonthly(MonthlyT&& value) {
99 m_monthlyHasBeenSet = true;
100 m_monthly = std::forward<MonthlyT>(value);
101 }
102 template <typename MonthlyT = MonthlySchedule>
103 Schedule& WithMonthly(MonthlyT&& value) {
104 SetMonthly(std::forward<MonthlyT>(value));
105 return *this;
106 }
108 private:
109 OneTimeSchedule m_oneTime;
110
111 DailySchedule m_daily;
112
113 WeeklySchedule m_weekly;
114
115 MonthlySchedule m_monthly;
116 bool m_oneTimeHasBeenSet = false;
117 bool m_dailyHasBeenSet = false;
118 bool m_weeklyHasBeenSet = false;
119 bool m_monthlyHasBeenSet = false;
120};
121
122} // namespace Model
123} // namespace Inspector2
124} // namespace Aws
Schedule & WithOneTime(OneTimeT &&value)
Definition Schedule.h:49
Schedule & WithMonthly(MonthlyT &&value)
Definition Schedule.h:103
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
Schedule & WithWeekly(WeeklyT &&value)
Definition Schedule.h:85
void SetWeekly(WeeklyT &&value)
Definition Schedule.h:80
const DailySchedule & GetDaily() const
Definition Schedule.h:59
AWS_INSPECTOR2_API Schedule & operator=(Aws::Utils::Json::JsonView jsonValue)
const WeeklySchedule & GetWeekly() const
Definition Schedule.h:77
void SetDaily(DailyT &&value)
Definition Schedule.h:62
AWS_INSPECTOR2_API Schedule()=default
AWS_INSPECTOR2_API Schedule(Aws::Utils::Json::JsonView jsonValue)
const OneTimeSchedule & GetOneTime() const
Definition Schedule.h:41
void SetOneTime(OneTimeT &&value)
Definition Schedule.h:44
Schedule & WithDaily(DailyT &&value)
Definition Schedule.h:67
const MonthlySchedule & GetMonthly() const
Definition Schedule.h:95
void SetMonthly(MonthlyT &&value)
Definition Schedule.h:98
Aws::Utils::Json::JsonValue JsonValue