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>
27namespace ConnectCampaignsV2
40 AWS_CONNECTCAMPAIGNSV2_API
Campaign() =
default;
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>
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>
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>
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>
90 template<
typename ChannelSubtypeConfigT = ChannelSubtypeConfig>
91 void SetChannelSubtypeConfig(ChannelSubtypeConfigT&& value) { m_channelSubtypeConfigHasBeenSet =
true; m_channelSubtypeConfig = std::forward<ChannelSubtypeConfigT>(value); }
92 template<
typename ChannelSubtypeConfigT = ChannelSubtypeConfig>
100 template<
typename SourceT = Source>
101 void SetSource(SourceT&& value) { m_sourceHasBeenSet =
true; m_source = std::forward<SourceT>(value); }
102 template<
typename SourceT = Source>
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>
120 template<
typename ScheduleT = Schedule>
121 void SetSchedule(ScheduleT&& value) { m_scheduleHasBeenSet =
true; m_schedule = std::forward<ScheduleT>(value); }
122 template<
typename ScheduleT = Schedule>
130 template<
typename CommunicationTimeConfigT = CommunicationTimeConfig>
131 void SetCommunicationTimeConfig(CommunicationTimeConfigT&& value) { m_communicationTimeConfigHasBeenSet =
true; m_communicationTimeConfig = std::forward<CommunicationTimeConfigT>(value); }
132 template<
typename CommunicationTimeConfigT = CommunicationTimeConfig>
140 template<
typename CommunicationLimitsOverr
ideT = CommunicationLimitsConfig>
141 void SetCommunicationLimitsOverride(CommunicationLimitsOverrideT&& value) { m_communicationLimitsOverrideHasBeenSet =
true; m_communicationLimitsOverride = std::forward<CommunicationLimitsOverrideT>(value); }
142 template<
typename CommunicationLimitsOverr
ideT = CommunicationLimitsConfig>
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>>
154 template<
typename TagsKeyT = Aws::String,
typename TagsValueT = Aws::String>
156 m_tagsHasBeenSet =
true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
return *
this;
162 bool m_idHasBeenSet =
false;
165 bool m_arnHasBeenSet =
false;
168 bool m_nameHasBeenSet =
false;
171 bool m_connectInstanceIdHasBeenSet =
false;
174 bool m_channelSubtypeConfigHasBeenSet =
false;
177 bool m_sourceHasBeenSet =
false;
180 bool m_connectCampaignFlowArnHasBeenSet =
false;
183 bool m_scheduleHasBeenSet =
false;
186 bool m_communicationTimeConfigHasBeenSet =
false;
189 bool m_communicationLimitsOverrideHasBeenSet =
false;
192 bool m_tagsHasBeenSet =
false;
Campaign & WithConnectInstanceId(ConnectInstanceIdT &&value)
Campaign & WithCommunicationTimeConfig(CommunicationTimeConfigT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Campaign & AddTags(TagsKeyT &&key, TagsValueT &&value)
Campaign & WithName(NameT &&value)
void SetChannelSubtypeConfig(ChannelSubtypeConfigT &&value)
AWS_CONNECTCAMPAIGNSV2_API Campaign & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetId() const
bool SourceHasBeenSet() const
AWS_CONNECTCAMPAIGNSV2_API Aws::Utils::Json::JsonValue Jsonize() const
bool CommunicationTimeConfigHasBeenSet() const
bool ArnHasBeenSet() const
bool IdHasBeenSet() const
const CommunicationTimeConfig & GetCommunicationTimeConfig() const
const Aws::String & GetConnectInstanceId() const
void SetSchedule(ScheduleT &&value)
const Aws::String & GetName() const
AWS_CONNECTCAMPAIGNSV2_API Campaign()=default
void SetConnectCampaignFlowArn(ConnectCampaignFlowArnT &&value)
Campaign & WithArn(ArnT &&value)
AWS_CONNECTCAMPAIGNSV2_API Campaign(Aws::Utils::Json::JsonView jsonValue)
bool NameHasBeenSet() const
const Aws::String & GetConnectCampaignFlowArn() const
Campaign & WithTags(TagsT &&value)
bool ConnectCampaignFlowArnHasBeenSet() const
void SetName(NameT &&value)
Campaign & WithChannelSubtypeConfig(ChannelSubtypeConfigT &&value)
bool TagsHasBeenSet() const
bool CommunicationLimitsOverrideHasBeenSet() const
const Source & GetSource() const
void SetSource(SourceT &&value)
bool ConnectInstanceIdHasBeenSet() const
bool ScheduleHasBeenSet() const
void SetTags(TagsT &&value)
void SetCommunicationLimitsOverride(CommunicationLimitsOverrideT &&value)
const ChannelSubtypeConfig & GetChannelSubtypeConfig() const
const CommunicationLimitsConfig & GetCommunicationLimitsOverride() const
bool ChannelSubtypeConfigHasBeenSet() const
Campaign & WithSource(SourceT &&value)
void SetArn(ArnT &&value)
void SetConnectInstanceId(ConnectInstanceIdT &&value)
Campaign & WithCommunicationLimitsOverride(CommunicationLimitsOverrideT &&value)
const Schedule & GetSchedule() const
void SetCommunicationTimeConfig(CommunicationTimeConfigT &&value)
Campaign & WithConnectCampaignFlowArn(ConnectCampaignFlowArnT &&value)
Campaign & WithId(IdT &&value)
const Aws::String & GetArn() const
Campaign & WithSchedule(ScheduleT &&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
Aws::Utils::Json::JsonValue JsonValue