AWS SDK for C++

AWS SDK for C++ Version 1.11.750

Loading...
Searching...
No Matches
OpenHours.h
1
6#pragma once
7#include <aws/connectcampaignsv2/ConnectCampaignsV2_EXPORTS.h>
8#include <aws/connectcampaignsv2/model/DayOfWeek.h>
9#include <aws/connectcampaignsv2/model/TimeRange.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace ConnectCampaignsV2 {
23namespace Model {
24
30class OpenHours {
31 public:
32 AWS_CONNECTCAMPAIGNSV2_API OpenHours() = default;
33 AWS_CONNECTCAMPAIGNSV2_API OpenHours(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CONNECTCAMPAIGNSV2_API OpenHours& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_CONNECTCAMPAIGNSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
39 inline const Aws::Map<DayOfWeek, Aws::Vector<TimeRange>>& GetDailyHours() const { return m_dailyHours; }
40 inline bool DailyHoursHasBeenSet() const { return m_dailyHoursHasBeenSet; }
41 template <typename DailyHoursT = Aws::Map<DayOfWeek, Aws::Vector<TimeRange>>>
42 void SetDailyHours(DailyHoursT&& value) {
43 m_dailyHoursHasBeenSet = true;
44 m_dailyHours = std::forward<DailyHoursT>(value);
45 }
46 template <typename DailyHoursT = Aws::Map<DayOfWeek, Aws::Vector<TimeRange>>>
47 OpenHours& WithDailyHours(DailyHoursT&& value) {
48 SetDailyHours(std::forward<DailyHoursT>(value));
49 return *this;
50 }
52 m_dailyHoursHasBeenSet = true;
53 m_dailyHours.emplace(key, value);
54 return *this;
55 }
57 private:
59 bool m_dailyHoursHasBeenSet = false;
60};
61
62} // namespace Model
63} // namespace ConnectCampaignsV2
64} // namespace Aws
AWS_CONNECTCAMPAIGNSV2_API OpenHours & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< DayOfWeek, Aws::Vector< TimeRange > > & GetDailyHours() const
Definition OpenHours.h:39
void SetDailyHours(DailyHoursT &&value)
Definition OpenHours.h:42
AWS_CONNECTCAMPAIGNSV2_API OpenHours(Aws::Utils::Json::JsonView jsonValue)
OpenHours & WithDailyHours(DailyHoursT &&value)
Definition OpenHours.h:47
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