AWS SDK for C++

AWS SDK for C++ Version 1.11.682

Loading...
Searching...
No Matches
InAppCampaignSchedule.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/pinpoint/Pinpoint_EXPORTS.h>
9#include <aws/pinpoint/model/CampaignEventFilter.h>
10#include <aws/pinpoint/model/QuietTime.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Pinpoint {
22namespace Model {
23
30 public:
31 AWS_PINPOINT_API InAppCampaignSchedule() = default;
34 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const Aws::String& GetEndDate() const { return m_endDate; }
42 inline bool EndDateHasBeenSet() const { return m_endDateHasBeenSet; }
43 template <typename EndDateT = Aws::String>
44 void SetEndDate(EndDateT&& value) {
45 m_endDateHasBeenSet = true;
46 m_endDate = std::forward<EndDateT>(value);
47 }
48 template <typename EndDateT = Aws::String>
50 SetEndDate(std::forward<EndDateT>(value));
51 return *this;
52 }
54
56
60 inline const CampaignEventFilter& GetEventFilter() const { return m_eventFilter; }
61 inline bool EventFilterHasBeenSet() const { return m_eventFilterHasBeenSet; }
62 template <typename EventFilterT = CampaignEventFilter>
63 void SetEventFilter(EventFilterT&& value) {
64 m_eventFilterHasBeenSet = true;
65 m_eventFilter = std::forward<EventFilterT>(value);
66 }
67 template <typename EventFilterT = CampaignEventFilter>
68 InAppCampaignSchedule& WithEventFilter(EventFilterT&& value) {
69 SetEventFilter(std::forward<EventFilterT>(value));
70 return *this;
71 }
73
75
78 inline const QuietTime& GetQuietTime() const { return m_quietTime; }
79 inline bool QuietTimeHasBeenSet() const { return m_quietTimeHasBeenSet; }
80 template <typename QuietTimeT = QuietTime>
81 void SetQuietTime(QuietTimeT&& value) {
82 m_quietTimeHasBeenSet = true;
83 m_quietTime = std::forward<QuietTimeT>(value);
84 }
85 template <typename QuietTimeT = QuietTime>
86 InAppCampaignSchedule& WithQuietTime(QuietTimeT&& value) {
87 SetQuietTime(std::forward<QuietTimeT>(value));
88 return *this;
89 }
91 private:
92 Aws::String m_endDate;
93 bool m_endDateHasBeenSet = false;
94
95 CampaignEventFilter m_eventFilter;
96 bool m_eventFilterHasBeenSet = false;
97
98 QuietTime m_quietTime;
99 bool m_quietTimeHasBeenSet = false;
100};
101
102} // namespace Model
103} // namespace Pinpoint
104} // namespace Aws
InAppCampaignSchedule & WithQuietTime(QuietTimeT &&value)
InAppCampaignSchedule & WithEndDate(EndDateT &&value)
AWS_PINPOINT_API InAppCampaignSchedule & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_PINPOINT_API InAppCampaignSchedule()=default
const CampaignEventFilter & GetEventFilter() const
AWS_PINPOINT_API InAppCampaignSchedule(Aws::Utils::Json::JsonView jsonValue)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
InAppCampaignSchedule & WithEventFilter(EventFilterT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue