AWS SDK for C++

AWS SDK for C++ Version 1.11.749

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
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace ConnectCampaignsV2 {
21namespace Model {
22
29 public:
30 AWS_CONNECTCAMPAIGNSV2_API TimeWindow() = default;
31 AWS_CONNECTCAMPAIGNSV2_API TimeWindow(Aws::Utils::Json::JsonView jsonValue);
32 AWS_CONNECTCAMPAIGNSV2_API TimeWindow& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CONNECTCAMPAIGNSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
37 inline const OpenHours& GetOpenHours() const { return m_openHours; }
38 inline bool OpenHoursHasBeenSet() const { return m_openHoursHasBeenSet; }
39 template <typename OpenHoursT = OpenHours>
40 void SetOpenHours(OpenHoursT&& value) {
41 m_openHoursHasBeenSet = true;
42 m_openHours = std::forward<OpenHoursT>(value);
43 }
44 template <typename OpenHoursT = OpenHours>
45 TimeWindow& WithOpenHours(OpenHoursT&& value) {
46 SetOpenHours(std::forward<OpenHoursT>(value));
47 return *this;
48 }
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) {
57 m_restrictedPeriodsHasBeenSet = true;
58 m_restrictedPeriods = std::forward<RestrictedPeriodsT>(value);
59 }
60 template <typename RestrictedPeriodsT = RestrictedPeriods>
61 TimeWindow& WithRestrictedPeriods(RestrictedPeriodsT&& value) {
62 SetRestrictedPeriods(std::forward<RestrictedPeriodsT>(value));
63 return *this;
64 }
66 private:
67 OpenHours m_openHours;
68
69 RestrictedPeriods m_restrictedPeriods;
70 bool m_openHoursHasBeenSet = false;
71 bool m_restrictedPeriodsHasBeenSet = false;
72};
73
74} // namespace Model
75} // namespace ConnectCampaignsV2
76} // 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:37
AWS_CONNECTCAMPAIGNSV2_API Aws::Utils::Json::JsonValue Jsonize() const
const RestrictedPeriods & GetRestrictedPeriods() const
Definition TimeWindow.h:53
TimeWindow & WithRestrictedPeriods(RestrictedPeriodsT &&value)
Definition TimeWindow.h:61
TimeWindow & WithOpenHours(OpenHoursT &&value)
Definition TimeWindow.h:45
void SetOpenHours(OpenHoursT &&value)
Definition TimeWindow.h:40
AWS_CONNECTCAMPAIGNSV2_API TimeWindow(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue