AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
Campaign.h
1
6#pragma once
7#include <aws/connectcampaignsv2/ConnectCampaignsV2_EXPORTS.h>
8#include <aws/connectcampaignsv2/model/ChannelSubtypeConfig.h>
9#include <aws/connectcampaignsv2/model/CommunicationLimitsConfig.h>
10#include <aws/connectcampaignsv2/model/CommunicationTimeConfig.h>
11#include <aws/connectcampaignsv2/model/ExternalCampaignType.h>
12#include <aws/connectcampaignsv2/model/Schedule.h>
13#include <aws/connectcampaignsv2/model/Source.h>
14#include <aws/core/utils/memory/stl/AWSMap.h>
15#include <aws/core/utils/memory/stl/AWSString.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Utils {
21namespace Json {
22class JsonValue;
23class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace ConnectCampaignsV2 {
27namespace Model {
28
34class Campaign {
35 public:
36 AWS_CONNECTCAMPAIGNSV2_API Campaign() = default;
37 AWS_CONNECTCAMPAIGNSV2_API Campaign(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CONNECTCAMPAIGNSV2_API Campaign& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CONNECTCAMPAIGNSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
43 inline const Aws::String& GetId() const { return m_id; }
44 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
45 template <typename IdT = Aws::String>
46 void SetId(IdT&& value) {
47 m_idHasBeenSet = true;
48 m_id = std::forward<IdT>(value);
49 }
50 template <typename IdT = Aws::String>
51 Campaign& WithId(IdT&& value) {
52 SetId(std::forward<IdT>(value));
53 return *this;
54 }
56
58
59 inline const Aws::String& GetArn() const { return m_arn; }
60 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
61 template <typename ArnT = Aws::String>
62 void SetArn(ArnT&& value) {
63 m_arnHasBeenSet = true;
64 m_arn = std::forward<ArnT>(value);
65 }
66 template <typename ArnT = Aws::String>
67 Campaign& WithArn(ArnT&& value) {
68 SetArn(std::forward<ArnT>(value));
69 return *this;
70 }
72
74
75 inline const Aws::String& GetName() const { return m_name; }
76 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
77 template <typename NameT = Aws::String>
78 void SetName(NameT&& value) {
79 m_nameHasBeenSet = true;
80 m_name = std::forward<NameT>(value);
81 }
82 template <typename NameT = Aws::String>
83 Campaign& WithName(NameT&& value) {
84 SetName(std::forward<NameT>(value));
85 return *this;
86 }
88
90
91 inline const Aws::String& GetConnectInstanceId() const { return m_connectInstanceId; }
92 inline bool ConnectInstanceIdHasBeenSet() const { return m_connectInstanceIdHasBeenSet; }
93 template <typename ConnectInstanceIdT = Aws::String>
94 void SetConnectInstanceId(ConnectInstanceIdT&& value) {
95 m_connectInstanceIdHasBeenSet = true;
96 m_connectInstanceId = std::forward<ConnectInstanceIdT>(value);
97 }
98 template <typename ConnectInstanceIdT = Aws::String>
99 Campaign& WithConnectInstanceId(ConnectInstanceIdT&& value) {
100 SetConnectInstanceId(std::forward<ConnectInstanceIdT>(value));
101 return *this;
102 }
104
106
107 inline const ChannelSubtypeConfig& GetChannelSubtypeConfig() const { return m_channelSubtypeConfig; }
108 inline bool ChannelSubtypeConfigHasBeenSet() const { return m_channelSubtypeConfigHasBeenSet; }
109 template <typename ChannelSubtypeConfigT = ChannelSubtypeConfig>
110 void SetChannelSubtypeConfig(ChannelSubtypeConfigT&& value) {
111 m_channelSubtypeConfigHasBeenSet = true;
112 m_channelSubtypeConfig = std::forward<ChannelSubtypeConfigT>(value);
113 }
114 template <typename ChannelSubtypeConfigT = ChannelSubtypeConfig>
115 Campaign& WithChannelSubtypeConfig(ChannelSubtypeConfigT&& value) {
116 SetChannelSubtypeConfig(std::forward<ChannelSubtypeConfigT>(value));
117 return *this;
118 }
120
122
123 inline ExternalCampaignType GetType() const { return m_type; }
124 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
125 inline void SetType(ExternalCampaignType value) {
126 m_typeHasBeenSet = true;
127 m_type = value;
128 }
130 SetType(value);
131 return *this;
132 }
134
136
137 inline const Source& GetSource() const { return m_source; }
138 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
139 template <typename SourceT = Source>
140 void SetSource(SourceT&& value) {
141 m_sourceHasBeenSet = true;
142 m_source = std::forward<SourceT>(value);
143 }
144 template <typename SourceT = Source>
145 Campaign& WithSource(SourceT&& value) {
146 SetSource(std::forward<SourceT>(value));
147 return *this;
148 }
150
152
153 inline const Aws::String& GetConnectCampaignFlowArn() const { return m_connectCampaignFlowArn; }
154 inline bool ConnectCampaignFlowArnHasBeenSet() const { return m_connectCampaignFlowArnHasBeenSet; }
155 template <typename ConnectCampaignFlowArnT = Aws::String>
156 void SetConnectCampaignFlowArn(ConnectCampaignFlowArnT&& value) {
157 m_connectCampaignFlowArnHasBeenSet = true;
158 m_connectCampaignFlowArn = std::forward<ConnectCampaignFlowArnT>(value);
159 }
160 template <typename ConnectCampaignFlowArnT = Aws::String>
161 Campaign& WithConnectCampaignFlowArn(ConnectCampaignFlowArnT&& value) {
162 SetConnectCampaignFlowArn(std::forward<ConnectCampaignFlowArnT>(value));
163 return *this;
164 }
166
168
169 inline const Schedule& GetSchedule() const { return m_schedule; }
170 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
171 template <typename ScheduleT = Schedule>
172 void SetSchedule(ScheduleT&& value) {
173 m_scheduleHasBeenSet = true;
174 m_schedule = std::forward<ScheduleT>(value);
175 }
176 template <typename ScheduleT = Schedule>
177 Campaign& WithSchedule(ScheduleT&& value) {
178 SetSchedule(std::forward<ScheduleT>(value));
179 return *this;
180 }
182
184
185 inline const CommunicationTimeConfig& GetCommunicationTimeConfig() const { return m_communicationTimeConfig; }
186 inline bool CommunicationTimeConfigHasBeenSet() const { return m_communicationTimeConfigHasBeenSet; }
187 template <typename CommunicationTimeConfigT = CommunicationTimeConfig>
188 void SetCommunicationTimeConfig(CommunicationTimeConfigT&& value) {
189 m_communicationTimeConfigHasBeenSet = true;
190 m_communicationTimeConfig = std::forward<CommunicationTimeConfigT>(value);
191 }
192 template <typename CommunicationTimeConfigT = CommunicationTimeConfig>
193 Campaign& WithCommunicationTimeConfig(CommunicationTimeConfigT&& value) {
194 SetCommunicationTimeConfig(std::forward<CommunicationTimeConfigT>(value));
195 return *this;
196 }
198
200
201 inline const CommunicationLimitsConfig& GetCommunicationLimitsOverride() const { return m_communicationLimitsOverride; }
202 inline bool CommunicationLimitsOverrideHasBeenSet() const { return m_communicationLimitsOverrideHasBeenSet; }
203 template <typename CommunicationLimitsOverrideT = CommunicationLimitsConfig>
204 void SetCommunicationLimitsOverride(CommunicationLimitsOverrideT&& value) {
205 m_communicationLimitsOverrideHasBeenSet = true;
206 m_communicationLimitsOverride = std::forward<CommunicationLimitsOverrideT>(value);
207 }
208 template <typename CommunicationLimitsOverrideT = CommunicationLimitsConfig>
209 Campaign& WithCommunicationLimitsOverride(CommunicationLimitsOverrideT&& value) {
210 SetCommunicationLimitsOverride(std::forward<CommunicationLimitsOverrideT>(value));
211 return *this;
212 }
214
216
217 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
218 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
219 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
220 void SetTags(TagsT&& value) {
221 m_tagsHasBeenSet = true;
222 m_tags = std::forward<TagsT>(value);
223 }
224 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
225 Campaign& WithTags(TagsT&& value) {
226 SetTags(std::forward<TagsT>(value));
227 return *this;
228 }
229 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
230 Campaign& AddTags(TagsKeyT&& key, TagsValueT&& value) {
231 m_tagsHasBeenSet = true;
232 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
233 return *this;
234 }
236 private:
237 Aws::String m_id;
238
239 Aws::String m_arn;
240
241 Aws::String m_name;
242
243 Aws::String m_connectInstanceId;
244
245 ChannelSubtypeConfig m_channelSubtypeConfig;
246
248
249 Source m_source;
250
251 Aws::String m_connectCampaignFlowArn;
252
253 Schedule m_schedule;
254
255 CommunicationTimeConfig m_communicationTimeConfig;
256
257 CommunicationLimitsConfig m_communicationLimitsOverride;
258
260 bool m_idHasBeenSet = false;
261 bool m_arnHasBeenSet = false;
262 bool m_nameHasBeenSet = false;
263 bool m_connectInstanceIdHasBeenSet = false;
264 bool m_channelSubtypeConfigHasBeenSet = false;
265 bool m_typeHasBeenSet = false;
266 bool m_sourceHasBeenSet = false;
267 bool m_connectCampaignFlowArnHasBeenSet = false;
268 bool m_scheduleHasBeenSet = false;
269 bool m_communicationTimeConfigHasBeenSet = false;
270 bool m_communicationLimitsOverrideHasBeenSet = false;
271 bool m_tagsHasBeenSet = false;
272};
273
274} // namespace Model
275} // namespace ConnectCampaignsV2
276} // namespace Aws
Campaign & WithConnectInstanceId(ConnectInstanceIdT &&value)
Definition Campaign.h:99
Campaign & WithCommunicationTimeConfig(CommunicationTimeConfigT &&value)
Definition Campaign.h:193
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition Campaign.h:217
Campaign & AddTags(TagsKeyT &&key, TagsValueT &&value)
Definition Campaign.h:230
void SetType(ExternalCampaignType value)
Definition Campaign.h:125
Campaign & WithName(NameT &&value)
Definition Campaign.h:83
void SetChannelSubtypeConfig(ChannelSubtypeConfigT &&value)
Definition Campaign.h:110
AWS_CONNECTCAMPAIGNSV2_API Campaign & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetId() const
Definition Campaign.h:43
AWS_CONNECTCAMPAIGNSV2_API Aws::Utils::Json::JsonValue Jsonize() const
const CommunicationTimeConfig & GetCommunicationTimeConfig() const
Definition Campaign.h:185
const Aws::String & GetConnectInstanceId() const
Definition Campaign.h:91
ExternalCampaignType GetType() const
Definition Campaign.h:123
void SetSchedule(ScheduleT &&value)
Definition Campaign.h:172
const Aws::String & GetName() const
Definition Campaign.h:75
AWS_CONNECTCAMPAIGNSV2_API Campaign()=default
void SetConnectCampaignFlowArn(ConnectCampaignFlowArnT &&value)
Definition Campaign.h:156
Campaign & WithArn(ArnT &&value)
Definition Campaign.h:67
AWS_CONNECTCAMPAIGNSV2_API Campaign(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetConnectCampaignFlowArn() const
Definition Campaign.h:153
Campaign & WithTags(TagsT &&value)
Definition Campaign.h:225
Campaign & WithChannelSubtypeConfig(ChannelSubtypeConfigT &&value)
Definition Campaign.h:115
void SetCommunicationLimitsOverride(CommunicationLimitsOverrideT &&value)
Definition Campaign.h:204
const ChannelSubtypeConfig & GetChannelSubtypeConfig() const
Definition Campaign.h:107
const CommunicationLimitsConfig & GetCommunicationLimitsOverride() const
Definition Campaign.h:201
Campaign & WithSource(SourceT &&value)
Definition Campaign.h:145
Campaign & WithType(ExternalCampaignType value)
Definition Campaign.h:129
void SetConnectInstanceId(ConnectInstanceIdT &&value)
Definition Campaign.h:94
Campaign & WithCommunicationLimitsOverride(CommunicationLimitsOverrideT &&value)
Definition Campaign.h:209
const Schedule & GetSchedule() const
Definition Campaign.h:169
void SetCommunicationTimeConfig(CommunicationTimeConfigT &&value)
Definition Campaign.h:188
Campaign & WithConnectCampaignFlowArn(ConnectCampaignFlowArnT &&value)
Definition Campaign.h:161
Campaign & WithId(IdT &&value)
Definition Campaign.h:51
const Aws::String & GetArn() const
Definition Campaign.h:59
Campaign & WithSchedule(ScheduleT &&value)
Definition Campaign.h:177
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue