AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
WeeklySchedule.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/inspector2/Inspector2_EXPORTS.h>
9#include <aws/inspector2/model/Day.h>
10#include <aws/inspector2/model/Time.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Inspector2 {
22namespace Model {
23
30 public:
31 AWS_INSPECTOR2_API WeeklySchedule() = default;
32 AWS_INSPECTOR2_API WeeklySchedule(Aws::Utils::Json::JsonView jsonValue);
33 AWS_INSPECTOR2_API WeeklySchedule& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Time& GetStartTime() const { return m_startTime; }
41 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
42 template <typename StartTimeT = Time>
43 void SetStartTime(StartTimeT&& value) {
44 m_startTimeHasBeenSet = true;
45 m_startTime = std::forward<StartTimeT>(value);
46 }
47 template <typename StartTimeT = Time>
48 WeeklySchedule& WithStartTime(StartTimeT&& value) {
49 SetStartTime(std::forward<StartTimeT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::Vector<Day>& GetDays() const { return m_days; }
59 inline bool DaysHasBeenSet() const { return m_daysHasBeenSet; }
60 template <typename DaysT = Aws::Vector<Day>>
61 void SetDays(DaysT&& value) {
62 m_daysHasBeenSet = true;
63 m_days = std::forward<DaysT>(value);
64 }
65 template <typename DaysT = Aws::Vector<Day>>
66 WeeklySchedule& WithDays(DaysT&& value) {
67 SetDays(std::forward<DaysT>(value));
68 return *this;
69 }
70 inline WeeklySchedule& AddDays(Day value) {
71 m_daysHasBeenSet = true;
72 m_days.push_back(value);
73 return *this;
74 }
76 private:
77 Time m_startTime;
78
79 Aws::Vector<Day> m_days;
80 bool m_startTimeHasBeenSet = false;
81 bool m_daysHasBeenSet = false;
82};
83
84} // namespace Model
85} // namespace Inspector2
86} // namespace Aws
const Aws::Vector< Day > & GetDays() const
AWS_INSPECTOR2_API WeeklySchedule()=default
WeeklySchedule & WithStartTime(StartTimeT &&value)
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_INSPECTOR2_API WeeklySchedule(Aws::Utils::Json::JsonView jsonValue)
WeeklySchedule & AddDays(Day value)
void SetStartTime(StartTimeT &&value)
WeeklySchedule & WithDays(DaysT &&value)
AWS_INSPECTOR2_API WeeklySchedule & operator=(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue