AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
OpenHours.h
1
6#pragma once
7#include <aws/connectcampaignsv2/ConnectCampaignsV2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/connectcampaignsv2/model/DayOfWeek.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/connectcampaignsv2/model/TimeRange.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace ConnectCampaignsV2
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_CONNECTCAMPAIGNSV2_API OpenHours() = default;
38 AWS_CONNECTCAMPAIGNSV2_API OpenHours(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CONNECTCAMPAIGNSV2_API OpenHours& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CONNECTCAMPAIGNSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
45 inline const Aws::Map<DayOfWeek, Aws::Vector<TimeRange>>& GetDailyHours() const { return m_dailyHours; }
46 inline bool DailyHoursHasBeenSet() const { return m_dailyHoursHasBeenSet; }
47 template<typename DailyHoursT = Aws::Map<DayOfWeek, Aws::Vector<TimeRange>>>
48 void SetDailyHours(DailyHoursT&& value) { m_dailyHoursHasBeenSet = true; m_dailyHours = std::forward<DailyHoursT>(value); }
49 template<typename DailyHoursT = Aws::Map<DayOfWeek, Aws::Vector<TimeRange>>>
50 OpenHours& WithDailyHours(DailyHoursT&& value) { SetDailyHours(std::forward<DailyHoursT>(value)); return *this;}
52 m_dailyHoursHasBeenSet = true; m_dailyHours.emplace(key, value); return *this;
53 }
55 private:
56
58 bool m_dailyHoursHasBeenSet = false;
59 };
60
61} // namespace Model
62} // namespace ConnectCampaignsV2
63} // namespace Aws
AWS_CONNECTCAMPAIGNSV2_API OpenHours & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< DayOfWeek, Aws::Vector< TimeRange > > & GetDailyHours() const
Definition OpenHours.h:45
void SetDailyHours(DailyHoursT &&value)
Definition OpenHours.h:48
AWS_CONNECTCAMPAIGNSV2_API OpenHours(Aws::Utils::Json::JsonView jsonValue)
OpenHours & WithDailyHours(DailyHoursT &&value)
Definition OpenHours.h:50
AWS_CONNECTCAMPAIGNSV2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CONNECTCAMPAIGNSV2_API OpenHours()=default
OpenHours & AddDailyHours(DayOfWeek key, Aws::Vector< TimeRange > value)
Definition OpenHours.h:51
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue