AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
InAppMessageCampaign.h
1
6#pragma once
7#include <aws/pinpoint/Pinpoint_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/pinpoint/model/InAppMessage.h>
10#include <aws/pinpoint/model/InAppCampaignSchedule.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Pinpoint
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_PINPOINT_API InAppMessageCampaign() = default;
39 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetCampaignId() const { return m_campaignId; }
47 inline bool CampaignIdHasBeenSet() const { return m_campaignIdHasBeenSet; }
48 template<typename CampaignIdT = Aws::String>
49 void SetCampaignId(CampaignIdT&& value) { m_campaignIdHasBeenSet = true; m_campaignId = std::forward<CampaignIdT>(value); }
50 template<typename CampaignIdT = Aws::String>
51 InAppMessageCampaign& WithCampaignId(CampaignIdT&& value) { SetCampaignId(std::forward<CampaignIdT>(value)); return *this;}
53
55
59 inline int GetDailyCap() const { return m_dailyCap; }
60 inline bool DailyCapHasBeenSet() const { return m_dailyCapHasBeenSet; }
61 inline void SetDailyCap(int value) { m_dailyCapHasBeenSet = true; m_dailyCap = value; }
62 inline InAppMessageCampaign& WithDailyCap(int value) { SetDailyCap(value); return *this;}
64
66
70 inline const InAppMessage& GetInAppMessage() const { return m_inAppMessage; }
71 inline bool InAppMessageHasBeenSet() const { return m_inAppMessageHasBeenSet; }
72 template<typename InAppMessageT = InAppMessage>
73 void SetInAppMessage(InAppMessageT&& value) { m_inAppMessageHasBeenSet = true; m_inAppMessage = std::forward<InAppMessageT>(value); }
74 template<typename InAppMessageT = InAppMessage>
75 InAppMessageCampaign& WithInAppMessage(InAppMessageT&& value) { SetInAppMessage(std::forward<InAppMessageT>(value)); return *this;}
77
79
82 inline int GetPriority() const { return m_priority; }
83 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
84 inline void SetPriority(int value) { m_priorityHasBeenSet = true; m_priority = value; }
85 inline InAppMessageCampaign& WithPriority(int value) { SetPriority(value); return *this;}
87
89
92 inline const InAppCampaignSchedule& GetSchedule() const { return m_schedule; }
93 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
94 template<typename ScheduleT = InAppCampaignSchedule>
95 void SetSchedule(ScheduleT&& value) { m_scheduleHasBeenSet = true; m_schedule = std::forward<ScheduleT>(value); }
96 template<typename ScheduleT = InAppCampaignSchedule>
97 InAppMessageCampaign& WithSchedule(ScheduleT&& value) { SetSchedule(std::forward<ScheduleT>(value)); return *this;}
99
101
105 inline int GetSessionCap() const { return m_sessionCap; }
106 inline bool SessionCapHasBeenSet() const { return m_sessionCapHasBeenSet; }
107 inline void SetSessionCap(int value) { m_sessionCapHasBeenSet = true; m_sessionCap = value; }
108 inline InAppMessageCampaign& WithSessionCap(int value) { SetSessionCap(value); return *this;}
110
112
116 inline int GetTotalCap() const { return m_totalCap; }
117 inline bool TotalCapHasBeenSet() const { return m_totalCapHasBeenSet; }
118 inline void SetTotalCap(int value) { m_totalCapHasBeenSet = true; m_totalCap = value; }
119 inline InAppMessageCampaign& WithTotalCap(int value) { SetTotalCap(value); return *this;}
121
123
126 inline const Aws::String& GetTreatmentId() const { return m_treatmentId; }
127 inline bool TreatmentIdHasBeenSet() const { return m_treatmentIdHasBeenSet; }
128 template<typename TreatmentIdT = Aws::String>
129 void SetTreatmentId(TreatmentIdT&& value) { m_treatmentIdHasBeenSet = true; m_treatmentId = std::forward<TreatmentIdT>(value); }
130 template<typename TreatmentIdT = Aws::String>
131 InAppMessageCampaign& WithTreatmentId(TreatmentIdT&& value) { SetTreatmentId(std::forward<TreatmentIdT>(value)); return *this;}
133 private:
134
135 Aws::String m_campaignId;
136 bool m_campaignIdHasBeenSet = false;
137
138 int m_dailyCap{0};
139 bool m_dailyCapHasBeenSet = false;
140
141 InAppMessage m_inAppMessage;
142 bool m_inAppMessageHasBeenSet = false;
143
144 int m_priority{0};
145 bool m_priorityHasBeenSet = false;
146
147 InAppCampaignSchedule m_schedule;
148 bool m_scheduleHasBeenSet = false;
149
150 int m_sessionCap{0};
151 bool m_sessionCapHasBeenSet = false;
152
153 int m_totalCap{0};
154 bool m_totalCapHasBeenSet = false;
155
156 Aws::String m_treatmentId;
157 bool m_treatmentIdHasBeenSet = false;
158 };
159
160} // namespace Model
161} // namespace Pinpoint
162} // 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