AWS SDK for C++

AWS SDK for C++ Version 1.11.750

Loading...
Searching...
No Matches
CreateCampaignRequest.h
1
6#pragma once
7#include <aws/connectcampaignsv2/ConnectCampaignsV2Request.h>
8#include <aws/connectcampaignsv2/ConnectCampaignsV2_EXPORTS.h>
9#include <aws/connectcampaignsv2/model/ChannelSubtypeConfig.h>
10#include <aws/connectcampaignsv2/model/CommunicationLimitsConfig.h>
11#include <aws/connectcampaignsv2/model/CommunicationTimeConfig.h>
12#include <aws/connectcampaignsv2/model/ExternalCampaignType.h>
13#include <aws/connectcampaignsv2/model/Schedule.h>
14#include <aws/connectcampaignsv2/model/Source.h>
15#include <aws/core/utils/memory/stl/AWSMap.h>
16#include <aws/core/utils/memory/stl/AWSString.h>
17
18#include <utility>
19
20namespace Aws {
21namespace ConnectCampaignsV2 {
22namespace Model {
23
30 public:
31 AWS_CONNECTCAMPAIGNSV2_API CreateCampaignRequest() = default;
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "CreateCampaign"; }
38
39 AWS_CONNECTCAMPAIGNSV2_API Aws::String SerializePayload() const override;
40
42
43 inline const Aws::String& GetName() const { return m_name; }
44 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
45 template <typename NameT = Aws::String>
46 void SetName(NameT&& value) {
47 m_nameHasBeenSet = true;
48 m_name = std::forward<NameT>(value);
49 }
50 template <typename NameT = Aws::String>
52 SetName(std::forward<NameT>(value));
53 return *this;
54 }
56
58
59 inline const Aws::String& GetConnectInstanceId() const { return m_connectInstanceId; }
60 inline bool ConnectInstanceIdHasBeenSet() const { return m_connectInstanceIdHasBeenSet; }
61 template <typename ConnectInstanceIdT = Aws::String>
62 void SetConnectInstanceId(ConnectInstanceIdT&& value) {
63 m_connectInstanceIdHasBeenSet = true;
64 m_connectInstanceId = std::forward<ConnectInstanceIdT>(value);
65 }
66 template <typename ConnectInstanceIdT = Aws::String>
67 CreateCampaignRequest& WithConnectInstanceId(ConnectInstanceIdT&& value) {
68 SetConnectInstanceId(std::forward<ConnectInstanceIdT>(value));
69 return *this;
70 }
72
74
75 inline const ChannelSubtypeConfig& GetChannelSubtypeConfig() const { return m_channelSubtypeConfig; }
76 inline bool ChannelSubtypeConfigHasBeenSet() const { return m_channelSubtypeConfigHasBeenSet; }
77 template <typename ChannelSubtypeConfigT = ChannelSubtypeConfig>
78 void SetChannelSubtypeConfig(ChannelSubtypeConfigT&& value) {
79 m_channelSubtypeConfigHasBeenSet = true;
80 m_channelSubtypeConfig = std::forward<ChannelSubtypeConfigT>(value);
81 }
82 template <typename ChannelSubtypeConfigT = ChannelSubtypeConfig>
83 CreateCampaignRequest& WithChannelSubtypeConfig(ChannelSubtypeConfigT&& value) {
84 SetChannelSubtypeConfig(std::forward<ChannelSubtypeConfigT>(value));
85 return *this;
86 }
88
90
91 inline ExternalCampaignType GetType() const { return m_type; }
92 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
93 inline void SetType(ExternalCampaignType value) {
94 m_typeHasBeenSet = true;
95 m_type = value;
96 }
98 SetType(value);
99 return *this;
100 }
102
104
105 inline const Source& GetSource() const { return m_source; }
106 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
107 template <typename SourceT = Source>
108 void SetSource(SourceT&& value) {
109 m_sourceHasBeenSet = true;
110 m_source = std::forward<SourceT>(value);
111 }
112 template <typename SourceT = Source>
114 SetSource(std::forward<SourceT>(value));
115 return *this;
116 }
118
120
121 inline const Aws::String& GetConnectCampaignFlowArn() const { return m_connectCampaignFlowArn; }
122 inline bool ConnectCampaignFlowArnHasBeenSet() const { return m_connectCampaignFlowArnHasBeenSet; }
123 template <typename ConnectCampaignFlowArnT = Aws::String>
124 void SetConnectCampaignFlowArn(ConnectCampaignFlowArnT&& value) {
125 m_connectCampaignFlowArnHasBeenSet = true;
126 m_connectCampaignFlowArn = std::forward<ConnectCampaignFlowArnT>(value);
127 }
128 template <typename ConnectCampaignFlowArnT = Aws::String>
129 CreateCampaignRequest& WithConnectCampaignFlowArn(ConnectCampaignFlowArnT&& value) {
130 SetConnectCampaignFlowArn(std::forward<ConnectCampaignFlowArnT>(value));
131 return *this;
132 }
134
136
137 inline const Schedule& GetSchedule() const { return m_schedule; }
138 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
139 template <typename ScheduleT = Schedule>
140 void SetSchedule(ScheduleT&& value) {
141 m_scheduleHasBeenSet = true;
142 m_schedule = std::forward<ScheduleT>(value);
143 }
144 template <typename ScheduleT = Schedule>
146 SetSchedule(std::forward<ScheduleT>(value));
147 return *this;
148 }
150
152
153 inline const CommunicationTimeConfig& GetCommunicationTimeConfig() const { return m_communicationTimeConfig; }
154 inline bool CommunicationTimeConfigHasBeenSet() const { return m_communicationTimeConfigHasBeenSet; }
155 template <typename CommunicationTimeConfigT = CommunicationTimeConfig>
156 void SetCommunicationTimeConfig(CommunicationTimeConfigT&& value) {
157 m_communicationTimeConfigHasBeenSet = true;
158 m_communicationTimeConfig = std::forward<CommunicationTimeConfigT>(value);
159 }
160 template <typename CommunicationTimeConfigT = CommunicationTimeConfig>
161 CreateCampaignRequest& WithCommunicationTimeConfig(CommunicationTimeConfigT&& value) {
162 SetCommunicationTimeConfig(std::forward<CommunicationTimeConfigT>(value));
163 return *this;
164 }
166
168
169 inline const CommunicationLimitsConfig& GetCommunicationLimitsOverride() const { return m_communicationLimitsOverride; }
170 inline bool CommunicationLimitsOverrideHasBeenSet() const { return m_communicationLimitsOverrideHasBeenSet; }
171 template <typename CommunicationLimitsOverrideT = CommunicationLimitsConfig>
172 void SetCommunicationLimitsOverride(CommunicationLimitsOverrideT&& value) {
173 m_communicationLimitsOverrideHasBeenSet = true;
174 m_communicationLimitsOverride = std::forward<CommunicationLimitsOverrideT>(value);
175 }
176 template <typename CommunicationLimitsOverrideT = CommunicationLimitsConfig>
177 CreateCampaignRequest& WithCommunicationLimitsOverride(CommunicationLimitsOverrideT&& value) {
178 SetCommunicationLimitsOverride(std::forward<CommunicationLimitsOverrideT>(value));
179 return *this;
180 }
182
184
185 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
186 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
187 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
188 void SetTags(TagsT&& value) {
189 m_tagsHasBeenSet = true;
190 m_tags = std::forward<TagsT>(value);
191 }
192 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
194 SetTags(std::forward<TagsT>(value));
195 return *this;
196 }
197 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
198 CreateCampaignRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
199 m_tagsHasBeenSet = true;
200 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
201 return *this;
202 }
204 private:
205 Aws::String m_name;
206
207 Aws::String m_connectInstanceId;
208
209 ChannelSubtypeConfig m_channelSubtypeConfig;
210
212
213 Source m_source;
214
215 Aws::String m_connectCampaignFlowArn;
216
217 Schedule m_schedule;
218
219 CommunicationTimeConfig m_communicationTimeConfig;
220
221 CommunicationLimitsConfig m_communicationLimitsOverride;
222
224 bool m_nameHasBeenSet = false;
225 bool m_connectInstanceIdHasBeenSet = false;
226 bool m_channelSubtypeConfigHasBeenSet = false;
227 bool m_typeHasBeenSet = false;
228 bool m_sourceHasBeenSet = false;
229 bool m_connectCampaignFlowArnHasBeenSet = false;
230 bool m_scheduleHasBeenSet = false;
231 bool m_communicationTimeConfigHasBeenSet = false;
232 bool m_communicationLimitsOverrideHasBeenSet = false;
233 bool m_tagsHasBeenSet = false;
234};
235
236} // namespace Model
237} // namespace ConnectCampaignsV2
238} // namespace Aws
CreateCampaignRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_CONNECTCAMPAIGNSV2_API CreateCampaignRequest()=default
void SetConnectCampaignFlowArn(ConnectCampaignFlowArnT &&value)
CreateCampaignRequest & WithCommunicationLimitsOverride(CommunicationLimitsOverrideT &&value)
void SetCommunicationTimeConfig(CommunicationTimeConfigT &&value)
CreateCampaignRequest & WithSchedule(ScheduleT &&value)
void SetCommunicationLimitsOverride(CommunicationLimitsOverrideT &&value)
virtual const char * GetServiceRequestName() const override
CreateCampaignRequest & WithConnectCampaignFlowArn(ConnectCampaignFlowArnT &&value)
CreateCampaignRequest & WithType(ExternalCampaignType value)
const ChannelSubtypeConfig & GetChannelSubtypeConfig() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
const CommunicationLimitsConfig & GetCommunicationLimitsOverride() const
AWS_CONNECTCAMPAIGNSV2_API Aws::String SerializePayload() const override
CreateCampaignRequest & WithCommunicationTimeConfig(CommunicationTimeConfigT &&value)
const CommunicationTimeConfig & GetCommunicationTimeConfig() const
CreateCampaignRequest & WithSource(SourceT &&value)
void SetChannelSubtypeConfig(ChannelSubtypeConfigT &&value)
CreateCampaignRequest & WithConnectInstanceId(ConnectInstanceIdT &&value)
CreateCampaignRequest & WithChannelSubtypeConfig(ChannelSubtypeConfigT &&value)
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