AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
WeeklySchedule.h
1
6#pragma once
7#include <aws/inspector2/Inspector2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/inspector2/model/Time.h>
10#include <aws/inspector2/model/Day.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Inspector2
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_INSPECTOR2_API WeeklySchedule() = default;
37 AWS_INSPECTOR2_API WeeklySchedule(Aws::Utils::Json::JsonView jsonValue);
38 AWS_INSPECTOR2_API WeeklySchedule& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::Vector<Day>& GetDays() const { return m_days; }
47 inline bool DaysHasBeenSet() const { return m_daysHasBeenSet; }
48 template<typename DaysT = Aws::Vector<Day>>
49 void SetDays(DaysT&& value) { m_daysHasBeenSet = true; m_days = std::forward<DaysT>(value); }
50 template<typename DaysT = Aws::Vector<Day>>
51 WeeklySchedule& WithDays(DaysT&& value) { SetDays(std::forward<DaysT>(value)); return *this;}
52 inline WeeklySchedule& AddDays(Day value) { m_daysHasBeenSet = true; m_days.push_back(value); return *this; }
54
56
59 inline const Time& GetStartTime() const { return m_startTime; }
60 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
61 template<typename StartTimeT = Time>
62 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
63 template<typename StartTimeT = Time>
64 WeeklySchedule& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
66 private:
67
68 Aws::Vector<Day> m_days;
69 bool m_daysHasBeenSet = false;
70
71 Time m_startTime;
72 bool m_startTimeHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace Inspector2
77} // 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