AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
TimeWindow.h
1
6#pragma once
7#include <aws/connectcampaignsv2/ConnectCampaignsV2_EXPORTS.h>
8#include <aws/connectcampaignsv2/model/OpenHours.h>
9#include <aws/connectcampaignsv2/model/RestrictedPeriods.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 ConnectCampaignsV2
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_CONNECTCAMPAIGNSV2_API TimeWindow() = default;
36 AWS_CONNECTCAMPAIGNSV2_API TimeWindow(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CONNECTCAMPAIGNSV2_API TimeWindow& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CONNECTCAMPAIGNSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
43 inline const OpenHours& GetOpenHours() const { return m_openHours; }
44 inline bool OpenHoursHasBeenSet() const { return m_openHoursHasBeenSet; }
45 template<typename OpenHoursT = OpenHours>
46 void SetOpenHours(OpenHoursT&& value) { m_openHoursHasBeenSet = true; m_openHours = std::forward<OpenHoursT>(value); }
47 template<typename OpenHoursT = OpenHours>
48 TimeWindow& WithOpenHours(OpenHoursT&& value) { SetOpenHours(std::forward<OpenHoursT>(value)); return *this;}
50
52
53 inline const RestrictedPeriods& GetRestrictedPeriods() const { return m_restrictedPeriods; }
54 inline bool RestrictedPeriodsHasBeenSet() const { return m_restrictedPeriodsHasBeenSet; }
55 template<typename RestrictedPeriodsT = RestrictedPeriods>
56 void SetRestrictedPeriods(RestrictedPeriodsT&& value) { m_restrictedPeriodsHasBeenSet = true; m_restrictedPeriods = std::forward<RestrictedPeriodsT>(value); }
57 template<typename RestrictedPeriodsT = RestrictedPeriods>
58 TimeWindow& WithRestrictedPeriods(RestrictedPeriodsT&& value) { SetRestrictedPeriods(std::forward<RestrictedPeriodsT>(value)); return *this;}
60 private:
61
62 OpenHours m_openHours;
63 bool m_openHoursHasBeenSet = false;
64
65 RestrictedPeriods m_restrictedPeriods;
66 bool m_restrictedPeriodsHasBeenSet = false;
67 };
68
69} // namespace Model
70} // namespace ConnectCampaignsV2
71} // namespace Aws
AWS_CONNECTCAMPAIGNSV2_API TimeWindow & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetRestrictedPeriods(RestrictedPeriodsT &&value)
Definition TimeWindow.h:56
AWS_CONNECTCAMPAIGNSV2_API TimeWindow()=default
const OpenHours & GetOpenHours() const
Definition TimeWindow.h:43
AWS_CONNECTCAMPAIGNSV2_API Aws::Utils::Json::JsonValue Jsonize() const
const RestrictedPeriods & GetRestrictedPeriods() const
Definition TimeWindow.h:53
TimeWindow & WithRestrictedPeriods(RestrictedPeriodsT &&value)
Definition TimeWindow.h:58
TimeWindow & WithOpenHours(OpenHoursT &&value)
Definition TimeWindow.h:48
void SetOpenHours(OpenHoursT &&value)
Definition TimeWindow.h:46
AWS_CONNECTCAMPAIGNSV2_API TimeWindow(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue