AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetDays(const Aws::Vector<Day>& value) { m_daysHasBeenSet = true; m_days = value; }
49 inline void SetDays(Aws::Vector<Day>&& value) { m_daysHasBeenSet = true; m_days = std::move(value); }
50 inline WeeklySchedule& WithDays(const Aws::Vector<Day>& value) { SetDays(value); return *this;}
51 inline WeeklySchedule& WithDays(Aws::Vector<Day>&& value) { SetDays(std::move(value)); return *this;}
52 inline WeeklySchedule& AddDays(const Day& value) { m_daysHasBeenSet = true; m_days.push_back(value); return *this; }
53 inline WeeklySchedule& AddDays(Day&& value) { m_daysHasBeenSet = true; m_days.push_back(std::move(value)); return *this; }
55
57
60 inline const Time& GetStartTime() const{ return m_startTime; }
61 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
62 inline void SetStartTime(const Time& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
63 inline void SetStartTime(Time&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
64 inline WeeklySchedule& WithStartTime(const Time& value) { SetStartTime(value); return *this;}
65 inline WeeklySchedule& WithStartTime(Time&& value) { SetStartTime(std::move(value)); return *this;}
67 private:
68
69 Aws::Vector<Day> m_days;
70 bool m_daysHasBeenSet = false;
71
72 Time m_startTime;
73 bool m_startTimeHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace Inspector2
78} // namespace Aws
const Aws::Vector< Day > & GetDays() const
WeeklySchedule & WithDays(const Aws::Vector< Day > &value)
void SetDays(const Aws::Vector< Day > &value)
WeeklySchedule & AddDays(Day &&value)
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
WeeklySchedule & AddDays(const Day &value)
AWS_INSPECTOR2_API WeeklySchedule(Aws::Utils::Json::JsonView jsonValue)
WeeklySchedule & WithDays(Aws::Vector< Day > &&value)
AWS_INSPECTOR2_API WeeklySchedule & operator=(Aws::Utils::Json::JsonView jsonValue)
WeeklySchedule & WithStartTime(Time &&value)
void SetDays(Aws::Vector< Day > &&value)
WeeklySchedule & WithStartTime(const Time &value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue