AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
WaypointOptimizationAccessHoursEntry.h
1
6#pragma once
7#include <aws/geo-routes/GeoRoutes_EXPORTS.h>
8#include <aws/geo-routes/model/DayOfWeek.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace GeoRoutes
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_GEOROUTES_API WaypointOptimizationAccessHoursEntry() = default;
38 AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline DayOfWeek GetDayOfWeek() const { return m_dayOfWeek; }
46 inline bool DayOfWeekHasBeenSet() const { return m_dayOfWeekHasBeenSet; }
47 inline void SetDayOfWeek(DayOfWeek value) { m_dayOfWeekHasBeenSet = true; m_dayOfWeek = value; }
50
52
55 inline const Aws::String& GetTimeOfDay() const { return m_timeOfDay; }
56 inline bool TimeOfDayHasBeenSet() const { return m_timeOfDayHasBeenSet; }
57 template<typename TimeOfDayT = Aws::String>
58 void SetTimeOfDay(TimeOfDayT&& value) { m_timeOfDayHasBeenSet = true; m_timeOfDay = std::forward<TimeOfDayT>(value); }
59 template<typename TimeOfDayT = Aws::String>
60 WaypointOptimizationAccessHoursEntry& WithTimeOfDay(TimeOfDayT&& value) { SetTimeOfDay(std::forward<TimeOfDayT>(value)); return *this;}
62 private:
63
64 DayOfWeek m_dayOfWeek{DayOfWeek::NOT_SET};
65 bool m_dayOfWeekHasBeenSet = false;
66
67 Aws::String m_timeOfDay;
68 bool m_timeOfDayHasBeenSet = false;
69 };
70
71} // namespace Model
72} // namespace GeoRoutes
73} // namespace Aws
void SetDayOfWeek(DayOfWeek value)
AWS_GEOROUTES_API WaypointOptimizationAccessHoursEntry(Aws::Utils::Json::JsonView jsonValue)
AWS_GEOROUTES_API WaypointOptimizationAccessHoursEntry & operator=(Aws::Utils::Json::JsonView jsonValue)
WaypointOptimizationAccessHoursEntry & WithTimeOfDay(TimeOfDayT &&value)
AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const
bool DayOfWeekHasBeenSet() const
WaypointOptimizationAccessHoursEntry & WithDayOfWeek(DayOfWeek value)
bool TimeOfDayHasBeenSet() const
AWS_GEOROUTES_API WaypointOptimizationAccessHoursEntry()=default
void SetTimeOfDay(TimeOfDayT &&value)
const Aws::String & GetTimeOfDay() const
DayOfWeek GetDayOfWeek() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue