AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Inspector2
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_INSPECTOR2_API Schedule() = default;
38 AWS_INSPECTOR2_API Schedule(Aws::Utils::Json::JsonView jsonValue);
39 AWS_INSPECTOR2_API Schedule& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const DailySchedule& GetDaily() const { return m_daily; }
48 inline bool DailyHasBeenSet() const { return m_dailyHasBeenSet; }
49 template<typename DailyT = DailySchedule>
50 void SetDaily(DailyT&& value) { m_dailyHasBeenSet = true; m_daily = std::forward<DailyT>(value); }
51 template<typename DailyT = DailySchedule>
52 Schedule& WithDaily(DailyT&& value) { SetDaily(std::forward<DailyT>(value)); return *this;}
54
56
59 inline const MonthlySchedule& GetMonthly() const { return m_monthly; }
60 inline bool MonthlyHasBeenSet() const { return m_monthlyHasBeenSet; }
61 template<typename MonthlyT = MonthlySchedule>
62 void SetMonthly(MonthlyT&& value) { m_monthlyHasBeenSet = true; m_monthly = std::forward<MonthlyT>(value); }
63 template<typename MonthlyT = MonthlySchedule>
64 Schedule& WithMonthly(MonthlyT&& value) { SetMonthly(std::forward<MonthlyT>(value)); return *this;}
66
68
71 inline const OneTimeSchedule& GetOneTime() const { return m_oneTime; }
72 inline bool OneTimeHasBeenSet() const { return m_oneTimeHasBeenSet; }
73 template<typename OneTimeT = OneTimeSchedule>
74 void SetOneTime(OneTimeT&& value) { m_oneTimeHasBeenSet = true; m_oneTime = std::forward<OneTimeT>(value); }
75 template<typename OneTimeT = OneTimeSchedule>
76 Schedule& WithOneTime(OneTimeT&& value) { SetOneTime(std::forward<OneTimeT>(value)); return *this;}
78
80
83 inline const WeeklySchedule& GetWeekly() const { return m_weekly; }
84 inline bool WeeklyHasBeenSet() const { return m_weeklyHasBeenSet; }
85 template<typename WeeklyT = WeeklySchedule>
86 void SetWeekly(WeeklyT&& value) { m_weeklyHasBeenSet = true; m_weekly = std::forward<WeeklyT>(value); }
87 template<typename WeeklyT = WeeklySchedule>
88 Schedule& WithWeekly(WeeklyT&& value) { SetWeekly(std::forward<WeeklyT>(value)); return *this;}
90 private:
91
92 DailySchedule m_daily;
93 bool m_dailyHasBeenSet = false;
94
95 MonthlySchedule m_monthly;
96 bool m_monthlyHasBeenSet = false;
97
98 OneTimeSchedule m_oneTime;
99 bool m_oneTimeHasBeenSet = false;
100
101 WeeklySchedule m_weekly;
102 bool m_weeklyHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace Inspector2
107} // namespace Aws
Schedule & WithOneTime(OneTimeT &&value)
Definition Schedule.h:76
Schedule & WithMonthly(MonthlyT &&value)
Definition Schedule.h:64
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
Schedule & WithWeekly(WeeklyT &&value)
Definition Schedule.h:88
void SetWeekly(WeeklyT &&value)
Definition Schedule.h:86
const DailySchedule & GetDaily() const
Definition Schedule.h:47
AWS_INSPECTOR2_API Schedule & operator=(Aws::Utils::Json::JsonView jsonValue)
const WeeklySchedule & GetWeekly() const
Definition Schedule.h:83
void SetDaily(DailyT &&value)
Definition Schedule.h:50
AWS_INSPECTOR2_API Schedule()=default
AWS_INSPECTOR2_API Schedule(Aws::Utils::Json::JsonView jsonValue)
const OneTimeSchedule & GetOneTime() const
Definition Schedule.h:71
void SetOneTime(OneTimeT &&value)
Definition Schedule.h:74
Schedule & WithDaily(DailyT &&value)
Definition Schedule.h:52
const MonthlySchedule & GetMonthly() const
Definition Schedule.h:59
void SetMonthly(MonthlyT &&value)
Definition Schedule.h:62
Aws::Utils::Json::JsonValue JsonValue