AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetCampaignId(const Aws::String& value) { m_campaignIdHasBeenSet = true; m_campaignId = value; }
49 inline void SetCampaignId(Aws::String&& value) { m_campaignIdHasBeenSet = true; m_campaignId = std::move(value); }
50 inline void SetCampaignId(const char* value) { m_campaignIdHasBeenSet = true; m_campaignId.assign(value); }
51 inline InAppMessageCampaign& WithCampaignId(const Aws::String& value) { SetCampaignId(value); return *this;}
52 inline InAppMessageCampaign& WithCampaignId(Aws::String&& value) { SetCampaignId(std::move(value)); return *this;}
53 inline InAppMessageCampaign& WithCampaignId(const char* value) { SetCampaignId(value); return *this;}
55
57
61 inline int GetDailyCap() const{ return m_dailyCap; }
62 inline bool DailyCapHasBeenSet() const { return m_dailyCapHasBeenSet; }
63 inline void SetDailyCap(int value) { m_dailyCapHasBeenSet = true; m_dailyCap = value; }
64 inline InAppMessageCampaign& WithDailyCap(int value) { SetDailyCap(value); return *this;}
66
68
72 inline const InAppMessage& GetInAppMessage() const{ return m_inAppMessage; }
73 inline bool InAppMessageHasBeenSet() const { return m_inAppMessageHasBeenSet; }
74 inline void SetInAppMessage(const InAppMessage& value) { m_inAppMessageHasBeenSet = true; m_inAppMessage = value; }
75 inline void SetInAppMessage(InAppMessage&& value) { m_inAppMessageHasBeenSet = true; m_inAppMessage = std::move(value); }
76 inline InAppMessageCampaign& WithInAppMessage(const InAppMessage& value) { SetInAppMessage(value); return *this;}
77 inline InAppMessageCampaign& WithInAppMessage(InAppMessage&& value) { SetInAppMessage(std::move(value)); return *this;}
79
81
84 inline int GetPriority() const{ return m_priority; }
85 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
86 inline void SetPriority(int value) { m_priorityHasBeenSet = true; m_priority = value; }
87 inline InAppMessageCampaign& WithPriority(int value) { SetPriority(value); return *this;}
89
91
94 inline const InAppCampaignSchedule& GetSchedule() const{ return m_schedule; }
95 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
96 inline void SetSchedule(const InAppCampaignSchedule& value) { m_scheduleHasBeenSet = true; m_schedule = value; }
97 inline void SetSchedule(InAppCampaignSchedule&& value) { m_scheduleHasBeenSet = true; m_schedule = std::move(value); }
98 inline InAppMessageCampaign& WithSchedule(const InAppCampaignSchedule& value) { SetSchedule(value); return *this;}
99 inline InAppMessageCampaign& WithSchedule(InAppCampaignSchedule&& value) { SetSchedule(std::move(value)); return *this;}
101
103
107 inline int GetSessionCap() const{ return m_sessionCap; }
108 inline bool SessionCapHasBeenSet() const { return m_sessionCapHasBeenSet; }
109 inline void SetSessionCap(int value) { m_sessionCapHasBeenSet = true; m_sessionCap = value; }
110 inline InAppMessageCampaign& WithSessionCap(int value) { SetSessionCap(value); return *this;}
112
114
118 inline int GetTotalCap() const{ return m_totalCap; }
119 inline bool TotalCapHasBeenSet() const { return m_totalCapHasBeenSet; }
120 inline void SetTotalCap(int value) { m_totalCapHasBeenSet = true; m_totalCap = value; }
121 inline InAppMessageCampaign& WithTotalCap(int value) { SetTotalCap(value); return *this;}
123
125
128 inline const Aws::String& GetTreatmentId() const{ return m_treatmentId; }
129 inline bool TreatmentIdHasBeenSet() const { return m_treatmentIdHasBeenSet; }
130 inline void SetTreatmentId(const Aws::String& value) { m_treatmentIdHasBeenSet = true; m_treatmentId = value; }
131 inline void SetTreatmentId(Aws::String&& value) { m_treatmentIdHasBeenSet = true; m_treatmentId = std::move(value); }
132 inline void SetTreatmentId(const char* value) { m_treatmentIdHasBeenSet = true; m_treatmentId.assign(value); }
133 inline InAppMessageCampaign& WithTreatmentId(const Aws::String& value) { SetTreatmentId(value); return *this;}
134 inline InAppMessageCampaign& WithTreatmentId(Aws::String&& value) { SetTreatmentId(std::move(value)); return *this;}
135 inline InAppMessageCampaign& WithTreatmentId(const char* value) { SetTreatmentId(value); return *this;}
137 private:
138
139 Aws::String m_campaignId;
140 bool m_campaignIdHasBeenSet = false;
141
142 int m_dailyCap;
143 bool m_dailyCapHasBeenSet = false;
144
145 InAppMessage m_inAppMessage;
146 bool m_inAppMessageHasBeenSet = false;
147
148 int m_priority;
149 bool m_priorityHasBeenSet = false;
150
151 InAppCampaignSchedule m_schedule;
152 bool m_scheduleHasBeenSet = false;
153
154 int m_sessionCap;
155 bool m_sessionCapHasBeenSet = false;
156
157 int m_totalCap;
158 bool m_totalCapHasBeenSet = false;
159
160 Aws::String m_treatmentId;
161 bool m_treatmentIdHasBeenSet = false;
162 };
163
164} // namespace Model
165} // namespace Pinpoint
166} // namespace Aws
InAppMessageCampaign & WithCampaignId(const char *value)
InAppMessageCampaign & WithTreatmentId(const Aws::String &value)
void SetInAppMessage(const InAppMessage &value)
InAppMessageCampaign & WithTreatmentId(Aws::String &&value)
InAppMessageCampaign & WithSchedule(const InAppCampaignSchedule &value)
InAppMessageCampaign & WithPriority(int value)
InAppMessageCampaign & WithSchedule(InAppCampaignSchedule &&value)
InAppMessageCampaign & WithCampaignId(const Aws::String &value)
InAppMessageCampaign & WithCampaignId(Aws::String &&value)
InAppMessageCampaign & WithDailyCap(int value)
InAppMessageCampaign & WithSessionCap(int value)
void SetCampaignId(const Aws::String &value)
void SetTreatmentId(const Aws::String &value)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
InAppMessageCampaign & WithInAppMessage(InAppMessage &&value)
InAppMessageCampaign & WithTotalCap(int value)
void SetSchedule(InAppCampaignSchedule &&value)
AWS_PINPOINT_API InAppMessageCampaign(Aws::Utils::Json::JsonView jsonValue)
InAppMessageCampaign & WithInAppMessage(const InAppMessage &value)
InAppMessageCampaign & WithTreatmentId(const char *value)
void SetSchedule(const InAppCampaignSchedule &value)
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