AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetDaily(const DailySchedule& value) { m_dailyHasBeenSet = true; m_daily = value; }
50 inline void SetDaily(DailySchedule&& value) { m_dailyHasBeenSet = true; m_daily = std::move(value); }
51 inline Schedule& WithDaily(const DailySchedule& value) { SetDaily(value); return *this;}
52 inline Schedule& WithDaily(DailySchedule&& value) { SetDaily(std::move(value)); return *this;}
54
56
59 inline const MonthlySchedule& GetMonthly() const{ return m_monthly; }
60 inline bool MonthlyHasBeenSet() const { return m_monthlyHasBeenSet; }
61 inline void SetMonthly(const MonthlySchedule& value) { m_monthlyHasBeenSet = true; m_monthly = value; }
62 inline void SetMonthly(MonthlySchedule&& value) { m_monthlyHasBeenSet = true; m_monthly = std::move(value); }
63 inline Schedule& WithMonthly(const MonthlySchedule& value) { SetMonthly(value); return *this;}
64 inline Schedule& WithMonthly(MonthlySchedule&& value) { SetMonthly(std::move(value)); return *this;}
66
68
71 inline const OneTimeSchedule& GetOneTime() const{ return m_oneTime; }
72 inline bool OneTimeHasBeenSet() const { return m_oneTimeHasBeenSet; }
73 inline void SetOneTime(const OneTimeSchedule& value) { m_oneTimeHasBeenSet = true; m_oneTime = value; }
74 inline void SetOneTime(OneTimeSchedule&& value) { m_oneTimeHasBeenSet = true; m_oneTime = std::move(value); }
75 inline Schedule& WithOneTime(const OneTimeSchedule& value) { SetOneTime(value); return *this;}
76 inline Schedule& WithOneTime(OneTimeSchedule&& value) { SetOneTime(std::move(value)); return *this;}
78
80
83 inline const WeeklySchedule& GetWeekly() const{ return m_weekly; }
84 inline bool WeeklyHasBeenSet() const { return m_weeklyHasBeenSet; }
85 inline void SetWeekly(const WeeklySchedule& value) { m_weeklyHasBeenSet = true; m_weekly = value; }
86 inline void SetWeekly(WeeklySchedule&& value) { m_weeklyHasBeenSet = true; m_weekly = std::move(value); }
87 inline Schedule& WithWeekly(const WeeklySchedule& value) { SetWeekly(value); return *this;}
88 inline Schedule& WithWeekly(WeeklySchedule&& value) { SetWeekly(std::move(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
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
Schedule & WithDaily(const DailySchedule &value)
Definition Schedule.h:51
Schedule & WithDaily(DailySchedule &&value)
Definition Schedule.h:52
void SetDaily(DailySchedule &&value)
Definition Schedule.h:50
Schedule & WithMonthly(const MonthlySchedule &value)
Definition Schedule.h:63
void SetMonthly(const MonthlySchedule &value)
Definition Schedule.h:61
void SetWeekly(WeeklySchedule &&value)
Definition Schedule.h:86
void SetMonthly(MonthlySchedule &&value)
Definition Schedule.h:62
void SetOneTime(OneTimeSchedule &&value)
Definition Schedule.h:74
const DailySchedule & GetDaily() const
Definition Schedule.h:47
AWS_INSPECTOR2_API Schedule & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetWeekly(const WeeklySchedule &value)
Definition Schedule.h:85
const WeeklySchedule & GetWeekly() const
Definition Schedule.h:83
AWS_INSPECTOR2_API Schedule()
void SetOneTime(const OneTimeSchedule &value)
Definition Schedule.h:73
AWS_INSPECTOR2_API Schedule(Aws::Utils::Json::JsonView jsonValue)
const OneTimeSchedule & GetOneTime() const
Definition Schedule.h:71
Schedule & WithOneTime(const OneTimeSchedule &value)
Definition Schedule.h:75
const MonthlySchedule & GetMonthly() const
Definition Schedule.h:59
Schedule & WithWeekly(const WeeklySchedule &value)
Definition Schedule.h:87
Schedule & WithOneTime(OneTimeSchedule &&value)
Definition Schedule.h:76
Schedule & WithMonthly(MonthlySchedule &&value)
Definition Schedule.h:64
void SetDaily(const DailySchedule &value)
Definition Schedule.h:49
Schedule & WithWeekly(WeeklySchedule &&value)
Definition Schedule.h:88
Aws::Utils::Json::JsonValue JsonValue