AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Campaign.h
1
6#pragma once
7#include <aws/connectcampaignsv2/ConnectCampaignsV2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/connectcampaignsv2/model/ChannelSubtypeConfig.h>
10#include <aws/connectcampaignsv2/model/Source.h>
11#include <aws/connectcampaignsv2/model/Schedule.h>
12#include <aws/connectcampaignsv2/model/CommunicationTimeConfig.h>
13#include <aws/connectcampaignsv2/model/CommunicationLimitsConfig.h>
14#include <aws/core/utils/memory/stl/AWSMap.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace ConnectCampaignsV2
28{
29namespace Model
30{
31
38 {
39 public:
40 AWS_CONNECTCAMPAIGNSV2_API Campaign() = default;
41 AWS_CONNECTCAMPAIGNSV2_API Campaign(Aws::Utils::Json::JsonView jsonValue);
42 AWS_CONNECTCAMPAIGNSV2_API Campaign& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_CONNECTCAMPAIGNSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
48 inline const Aws::String& GetId() const { return m_id; }
49 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
50 template<typename IdT = Aws::String>
51 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
52 template<typename IdT = Aws::String>
53 Campaign& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
55
57
58 inline const Aws::String& GetArn() const { return m_arn; }
59 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
60 template<typename ArnT = Aws::String>
61 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
62 template<typename ArnT = Aws::String>
63 Campaign& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
65
67
68 inline const Aws::String& GetName() const { return m_name; }
69 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
70 template<typename NameT = Aws::String>
71 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
72 template<typename NameT = Aws::String>
73 Campaign& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
75
77
78 inline const Aws::String& GetConnectInstanceId() const { return m_connectInstanceId; }
79 inline bool ConnectInstanceIdHasBeenSet() const { return m_connectInstanceIdHasBeenSet; }
80 template<typename ConnectInstanceIdT = Aws::String>
81 void SetConnectInstanceId(ConnectInstanceIdT&& value) { m_connectInstanceIdHasBeenSet = true; m_connectInstanceId = std::forward<ConnectInstanceIdT>(value); }
82 template<typename ConnectInstanceIdT = Aws::String>
83 Campaign& WithConnectInstanceId(ConnectInstanceIdT&& value) { SetConnectInstanceId(std::forward<ConnectInstanceIdT>(value)); return *this;}
85
87
88 inline const ChannelSubtypeConfig& GetChannelSubtypeConfig() const { return m_channelSubtypeConfig; }
89 inline bool ChannelSubtypeConfigHasBeenSet() const { return m_channelSubtypeConfigHasBeenSet; }
90 template<typename ChannelSubtypeConfigT = ChannelSubtypeConfig>
91 void SetChannelSubtypeConfig(ChannelSubtypeConfigT&& value) { m_channelSubtypeConfigHasBeenSet = true; m_channelSubtypeConfig = std::forward<ChannelSubtypeConfigT>(value); }
92 template<typename ChannelSubtypeConfigT = ChannelSubtypeConfig>
93 Campaign& WithChannelSubtypeConfig(ChannelSubtypeConfigT&& value) { SetChannelSubtypeConfig(std::forward<ChannelSubtypeConfigT>(value)); return *this;}
95
97
98 inline const Source& GetSource() const { return m_source; }
99 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
100 template<typename SourceT = Source>
101 void SetSource(SourceT&& value) { m_sourceHasBeenSet = true; m_source = std::forward<SourceT>(value); }
102 template<typename SourceT = Source>
103 Campaign& WithSource(SourceT&& value) { SetSource(std::forward<SourceT>(value)); return *this;}
105
107
108 inline const Aws::String& GetConnectCampaignFlowArn() const { return m_connectCampaignFlowArn; }
109 inline bool ConnectCampaignFlowArnHasBeenSet() const { return m_connectCampaignFlowArnHasBeenSet; }
110 template<typename ConnectCampaignFlowArnT = Aws::String>
111 void SetConnectCampaignFlowArn(ConnectCampaignFlowArnT&& value) { m_connectCampaignFlowArnHasBeenSet = true; m_connectCampaignFlowArn = std::forward<ConnectCampaignFlowArnT>(value); }
112 template<typename ConnectCampaignFlowArnT = Aws::String>
113 Campaign& WithConnectCampaignFlowArn(ConnectCampaignFlowArnT&& value) { SetConnectCampaignFlowArn(std::forward<ConnectCampaignFlowArnT>(value)); return *this;}
115
117
118 inline const Schedule& GetSchedule() const { return m_schedule; }
119 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
120 template<typename ScheduleT = Schedule>
121 void SetSchedule(ScheduleT&& value) { m_scheduleHasBeenSet = true; m_schedule = std::forward<ScheduleT>(value); }
122 template<typename ScheduleT = Schedule>
123 Campaign& WithSchedule(ScheduleT&& value) { SetSchedule(std::forward<ScheduleT>(value)); return *this;}
125
127
128 inline const CommunicationTimeConfig& GetCommunicationTimeConfig() const { return m_communicationTimeConfig; }
129 inline bool CommunicationTimeConfigHasBeenSet() const { return m_communicationTimeConfigHasBeenSet; }
130 template<typename CommunicationTimeConfigT = CommunicationTimeConfig>
131 void SetCommunicationTimeConfig(CommunicationTimeConfigT&& value) { m_communicationTimeConfigHasBeenSet = true; m_communicationTimeConfig = std::forward<CommunicationTimeConfigT>(value); }
132 template<typename CommunicationTimeConfigT = CommunicationTimeConfig>
133 Campaign& WithCommunicationTimeConfig(CommunicationTimeConfigT&& value) { SetCommunicationTimeConfig(std::forward<CommunicationTimeConfigT>(value)); return *this;}
135
137
138 inline const CommunicationLimitsConfig& GetCommunicationLimitsOverride() const { return m_communicationLimitsOverride; }
139 inline bool CommunicationLimitsOverrideHasBeenSet() const { return m_communicationLimitsOverrideHasBeenSet; }
140 template<typename CommunicationLimitsOverrideT = CommunicationLimitsConfig>
141 void SetCommunicationLimitsOverride(CommunicationLimitsOverrideT&& value) { m_communicationLimitsOverrideHasBeenSet = true; m_communicationLimitsOverride = std::forward<CommunicationLimitsOverrideT>(value); }
142 template<typename CommunicationLimitsOverrideT = CommunicationLimitsConfig>
143 Campaign& WithCommunicationLimitsOverride(CommunicationLimitsOverrideT&& value) { SetCommunicationLimitsOverride(std::forward<CommunicationLimitsOverrideT>(value)); return *this;}
145
147
148 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
149 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
150 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
151 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
152 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
153 Campaign& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
154 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
155 Campaign& AddTags(TagsKeyT&& key, TagsValueT&& value) {
156 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
157 }
159 private:
160
161 Aws::String m_id;
162 bool m_idHasBeenSet = false;
163
164 Aws::String m_arn;
165 bool m_arnHasBeenSet = false;
166
167 Aws::String m_name;
168 bool m_nameHasBeenSet = false;
169
170 Aws::String m_connectInstanceId;
171 bool m_connectInstanceIdHasBeenSet = false;
172
173 ChannelSubtypeConfig m_channelSubtypeConfig;
174 bool m_channelSubtypeConfigHasBeenSet = false;
175
176 Source m_source;
177 bool m_sourceHasBeenSet = false;
178
179 Aws::String m_connectCampaignFlowArn;
180 bool m_connectCampaignFlowArnHasBeenSet = false;
181
182 Schedule m_schedule;
183 bool m_scheduleHasBeenSet = false;
184
185 CommunicationTimeConfig m_communicationTimeConfig;
186 bool m_communicationTimeConfigHasBeenSet = false;
187
188 CommunicationLimitsConfig m_communicationLimitsOverride;
189 bool m_communicationLimitsOverrideHasBeenSet = false;
190
192 bool m_tagsHasBeenSet = false;
193 };
194
195} // namespace Model
196} // namespace ConnectCampaignsV2
197} // namespace Aws
Campaign & WithConnectInstanceId(ConnectInstanceIdT &&value)
Definition Campaign.h:83
Campaign & WithCommunicationTimeConfig(CommunicationTimeConfigT &&value)
Definition Campaign.h:133
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition Campaign.h:148
Campaign & AddTags(TagsKeyT &&key, TagsValueT &&value)
Definition Campaign.h:155
Campaign & WithName(NameT &&value)
Definition Campaign.h:73
void SetChannelSubtypeConfig(ChannelSubtypeConfigT &&value)
Definition Campaign.h:91
AWS_CONNECTCAMPAIGNSV2_API Campaign & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetId() const
Definition Campaign.h:48
AWS_CONNECTCAMPAIGNSV2_API Aws::Utils::Json::JsonValue Jsonize() const
const CommunicationTimeConfig & GetCommunicationTimeConfig() const
Definition Campaign.h:128
const Aws::String & GetConnectInstanceId() const
Definition Campaign.h:78
void SetSchedule(ScheduleT &&value)
Definition Campaign.h:121
const Aws::String & GetName() const
Definition Campaign.h:68
AWS_CONNECTCAMPAIGNSV2_API Campaign()=default
void SetConnectCampaignFlowArn(ConnectCampaignFlowArnT &&value)
Definition Campaign.h:111
Campaign & WithArn(ArnT &&value)
Definition Campaign.h:63
AWS_CONNECTCAMPAIGNSV2_API Campaign(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetConnectCampaignFlowArn() const
Definition Campaign.h:108
Campaign & WithTags(TagsT &&value)
Definition Campaign.h:153
Campaign & WithChannelSubtypeConfig(ChannelSubtypeConfigT &&value)
Definition Campaign.h:93
const Source & GetSource() const
Definition Campaign.h:98
void SetCommunicationLimitsOverride(CommunicationLimitsOverrideT &&value)
Definition Campaign.h:141
const ChannelSubtypeConfig & GetChannelSubtypeConfig() const
Definition Campaign.h:88
const CommunicationLimitsConfig & GetCommunicationLimitsOverride() const
Definition Campaign.h:138
Campaign & WithSource(SourceT &&value)
Definition Campaign.h:103
void SetConnectInstanceId(ConnectInstanceIdT &&value)
Definition Campaign.h:81
Campaign & WithCommunicationLimitsOverride(CommunicationLimitsOverrideT &&value)
Definition Campaign.h:143
const Schedule & GetSchedule() const
Definition Campaign.h:118
void SetCommunicationTimeConfig(CommunicationTimeConfigT &&value)
Definition Campaign.h:131
Campaign & WithConnectCampaignFlowArn(ConnectCampaignFlowArnT &&value)
Definition Campaign.h:113
Campaign & WithId(IdT &&value)
Definition Campaign.h:53
const Aws::String & GetArn() const
Definition Campaign.h:58
Campaign & WithSchedule(ScheduleT &&value)
Definition Campaign.h:123
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