AWS SDK for C++

AWS SDK for C++ Version 1.11.906

Loading...
Searching...
No Matches
WhatsAppHolidayScheduleEntry.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/socialmessaging/SocialMessaging_EXPORTS.h>
9#include <aws/socialmessaging/model/WhatsAppTimeOfDay.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace SocialMessaging {
21namespace Model {
22
30 public:
31 AWS_SOCIALMESSAGING_API WhatsAppHolidayScheduleEntry() = default;
32 AWS_SOCIALMESSAGING_API WhatsAppHolidayScheduleEntry(Aws::Utils::Json::JsonView jsonValue);
34 AWS_SOCIALMESSAGING_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const Aws::String& GetDate() const { return m_date; }
42 inline bool DateHasBeenSet() const { return m_dateHasBeenSet; }
43 template <typename DateT = Aws::String>
44 void SetDate(DateT&& value) {
45 m_dateHasBeenSet = true;
46 m_date = std::forward<DateT>(value);
47 }
48 template <typename DateT = Aws::String>
50 SetDate(std::forward<DateT>(value));
51 return *this;
52 }
54
56
60 inline const WhatsAppTimeOfDay& GetStartTime() const { return m_startTime; }
61 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
62 template <typename StartTimeT = WhatsAppTimeOfDay>
63 void SetStartTime(StartTimeT&& value) {
64 m_startTimeHasBeenSet = true;
65 m_startTime = std::forward<StartTimeT>(value);
66 }
67 template <typename StartTimeT = WhatsAppTimeOfDay>
69 SetStartTime(std::forward<StartTimeT>(value));
70 return *this;
71 }
73
75
79 inline const WhatsAppTimeOfDay& GetEndTime() const { return m_endTime; }
80 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
81 template <typename EndTimeT = WhatsAppTimeOfDay>
82 void SetEndTime(EndTimeT&& value) {
83 m_endTimeHasBeenSet = true;
84 m_endTime = std::forward<EndTimeT>(value);
85 }
86 template <typename EndTimeT = WhatsAppTimeOfDay>
88 SetEndTime(std::forward<EndTimeT>(value));
89 return *this;
90 }
92 private:
93 Aws::String m_date;
94
95 WhatsAppTimeOfDay m_startTime;
96
97 WhatsAppTimeOfDay m_endTime;
98 bool m_dateHasBeenSet = false;
99 bool m_startTimeHasBeenSet = false;
100 bool m_endTimeHasBeenSet = false;
101};
102
103} // namespace Model
104} // namespace SocialMessaging
105} // namespace Aws
WhatsAppHolidayScheduleEntry & WithEndTime(EndTimeT &&value)
const WhatsAppTimeOfDay & GetEndTime() const
const Aws::String & GetDate() const
void SetStartTime(StartTimeT &&value)
bool EndTimeHasBeenSet() const
AWS_SOCIALMESSAGING_API WhatsAppHolidayScheduleEntry()=default
AWS_SOCIALMESSAGING_API Aws::Utils::Json::JsonValue Jsonize() const
bool DateHasBeenSet() const
const WhatsAppTimeOfDay & GetStartTime() const
void SetEndTime(EndTimeT &&value)
bool StartTimeHasBeenSet() const
AWS_SOCIALMESSAGING_API WhatsAppHolidayScheduleEntry(Aws::Utils::Json::JsonView jsonValue)
void SetDate(DateT &&value)
AWS_SOCIALMESSAGING_API WhatsAppHolidayScheduleEntry & operator=(Aws::Utils::Json::JsonView jsonValue)
WhatsAppHolidayScheduleEntry & WithDate(DateT &&value)
WhatsAppHolidayScheduleEntry & WithStartTime(StartTimeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue