AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
MonthlySchedule.h
1
6#pragma once
7#include <aws/inspector2/Inspector2_EXPORTS.h>
8#include <aws/inspector2/model/Day.h>
9#include <aws/inspector2/model/Time.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Inspector2 {
21namespace Model {
22
29 public:
30 AWS_INSPECTOR2_API MonthlySchedule() = default;
31 AWS_INSPECTOR2_API MonthlySchedule(Aws::Utils::Json::JsonView jsonValue);
33 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Time& GetStartTime() const { return m_startTime; }
40 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
41 template <typename StartTimeT = Time>
42 void SetStartTime(StartTimeT&& value) {
43 m_startTimeHasBeenSet = true;
44 m_startTime = std::forward<StartTimeT>(value);
45 }
46 template <typename StartTimeT = Time>
47 MonthlySchedule& WithStartTime(StartTimeT&& value) {
48 SetStartTime(std::forward<StartTimeT>(value));
49 return *this;
50 }
52
54
57 inline Day GetDay() const { return m_day; }
58 inline bool DayHasBeenSet() const { return m_dayHasBeenSet; }
59 inline void SetDay(Day value) {
60 m_dayHasBeenSet = true;
61 m_day = value;
62 }
63 inline MonthlySchedule& WithDay(Day value) {
64 SetDay(value);
65 return *this;
66 }
68 private:
69 Time m_startTime;
70
71 Day m_day{Day::NOT_SET};
72 bool m_startTimeHasBeenSet = false;
73 bool m_dayHasBeenSet = false;
74};
75
76} // namespace Model
77} // namespace Inspector2
78} // namespace Aws
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
MonthlySchedule & WithStartTime(StartTimeT &&value)
AWS_INSPECTOR2_API MonthlySchedule()=default
MonthlySchedule & WithDay(Day value)
AWS_INSPECTOR2_API MonthlySchedule(Aws::Utils::Json::JsonView jsonValue)
AWS_INSPECTOR2_API MonthlySchedule & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue