AWS SDK for C++

AWS SDK for C++ Version 1.11.682

Loading...
Searching...
No Matches
InAppMessageCampaign.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/InAppCampaignSchedule.h>
10#include <aws/pinpoint/model/InAppMessage.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 InAppMessageCampaign() = default;
34 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetCampaignId() const { return m_campaignId; }
41 inline bool CampaignIdHasBeenSet() const { return m_campaignIdHasBeenSet; }
42 template <typename CampaignIdT = Aws::String>
43 void SetCampaignId(CampaignIdT&& value) {
44 m_campaignIdHasBeenSet = true;
45 m_campaignId = std::forward<CampaignIdT>(value);
46 }
47 template <typename CampaignIdT = Aws::String>
48 InAppMessageCampaign& WithCampaignId(CampaignIdT&& value) {
49 SetCampaignId(std::forward<CampaignIdT>(value));
50 return *this;
51 }
53
55
59 inline int GetDailyCap() const { return m_dailyCap; }
60 inline bool DailyCapHasBeenSet() const { return m_dailyCapHasBeenSet; }
61 inline void SetDailyCap(int value) {
62 m_dailyCapHasBeenSet = true;
63 m_dailyCap = value;
64 }
66 SetDailyCap(value);
67 return *this;
68 }
70
72
76 inline const InAppMessage& GetInAppMessage() const { return m_inAppMessage; }
77 inline bool InAppMessageHasBeenSet() const { return m_inAppMessageHasBeenSet; }
78 template <typename InAppMessageT = InAppMessage>
79 void SetInAppMessage(InAppMessageT&& value) {
80 m_inAppMessageHasBeenSet = true;
81 m_inAppMessage = std::forward<InAppMessageT>(value);
82 }
83 template <typename InAppMessageT = InAppMessage>
84 InAppMessageCampaign& WithInAppMessage(InAppMessageT&& value) {
85 SetInAppMessage(std::forward<InAppMessageT>(value));
86 return *this;
87 }
89
91
94 inline int GetPriority() const { return m_priority; }
95 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
96 inline void SetPriority(int value) {
97 m_priorityHasBeenSet = true;
98 m_priority = value;
99 }
101 SetPriority(value);
102 return *this;
103 }
105
107
110 inline const InAppCampaignSchedule& GetSchedule() const { return m_schedule; }
111 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
112 template <typename ScheduleT = InAppCampaignSchedule>
113 void SetSchedule(ScheduleT&& value) {
114 m_scheduleHasBeenSet = true;
115 m_schedule = std::forward<ScheduleT>(value);
116 }
117 template <typename ScheduleT = InAppCampaignSchedule>
118 InAppMessageCampaign& WithSchedule(ScheduleT&& value) {
119 SetSchedule(std::forward<ScheduleT>(value));
120 return *this;
121 }
123
125
129 inline int GetSessionCap() const { return m_sessionCap; }
130 inline bool SessionCapHasBeenSet() const { return m_sessionCapHasBeenSet; }
131 inline void SetSessionCap(int value) {
132 m_sessionCapHasBeenSet = true;
133 m_sessionCap = value;
134 }
136 SetSessionCap(value);
137 return *this;
138 }
140
142
146 inline int GetTotalCap() const { return m_totalCap; }
147 inline bool TotalCapHasBeenSet() const { return m_totalCapHasBeenSet; }
148 inline void SetTotalCap(int value) {
149 m_totalCapHasBeenSet = true;
150 m_totalCap = value;
151 }
153 SetTotalCap(value);
154 return *this;
155 }
157
159
162 inline const Aws::String& GetTreatmentId() const { return m_treatmentId; }
163 inline bool TreatmentIdHasBeenSet() const { return m_treatmentIdHasBeenSet; }
164 template <typename TreatmentIdT = Aws::String>
165 void SetTreatmentId(TreatmentIdT&& value) {
166 m_treatmentIdHasBeenSet = true;
167 m_treatmentId = std::forward<TreatmentIdT>(value);
168 }
169 template <typename TreatmentIdT = Aws::String>
170 InAppMessageCampaign& WithTreatmentId(TreatmentIdT&& value) {
171 SetTreatmentId(std::forward<TreatmentIdT>(value));
172 return *this;
173 }
175 private:
176 Aws::String m_campaignId;
177 bool m_campaignIdHasBeenSet = false;
178
179 int m_dailyCap{0};
180 bool m_dailyCapHasBeenSet = false;
181
182 InAppMessage m_inAppMessage;
183 bool m_inAppMessageHasBeenSet = false;
184
185 int m_priority{0};
186 bool m_priorityHasBeenSet = false;
187
188 InAppCampaignSchedule m_schedule;
189 bool m_scheduleHasBeenSet = false;
190
191 int m_sessionCap{0};
192 bool m_sessionCapHasBeenSet = false;
193
194 int m_totalCap{0};
195 bool m_totalCapHasBeenSet = false;
196
197 Aws::String m_treatmentId;
198 bool m_treatmentIdHasBeenSet = false;
199};
200
201} // namespace Model
202} // namespace Pinpoint
203} // namespace Aws
InAppMessageCampaign & WithCampaignId(CampaignIdT &&value)
InAppMessageCampaign & WithTreatmentId(TreatmentIdT &&value)
InAppMessageCampaign & WithPriority(int value)
InAppMessageCampaign & WithDailyCap(int value)
InAppMessageCampaign & WithSessionCap(int value)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
InAppMessageCampaign & WithSchedule(ScheduleT &&value)
InAppMessageCampaign & WithTotalCap(int value)
AWS_PINPOINT_API InAppMessageCampaign()=default
InAppMessageCampaign & WithInAppMessage(InAppMessageT &&value)
AWS_PINPOINT_API InAppMessageCampaign(Aws::Utils::Json::JsonView jsonValue)
AWS_PINPOINT_API InAppMessageCampaign & operator=(Aws::Utils::Json::JsonView jsonValue)
const InAppCampaignSchedule & GetSchedule() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue