AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateCampaignRequest.h
1
6#pragma once
7#include <aws/connectcampaignsv2/ConnectCampaignsV2_EXPORTS.h>
8#include <aws/connectcampaignsv2/ConnectCampaignsV2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/connectcampaignsv2/model/ChannelSubtypeConfig.h>
11#include <aws/connectcampaignsv2/model/Source.h>
12#include <aws/connectcampaignsv2/model/Schedule.h>
13#include <aws/connectcampaignsv2/model/CommunicationTimeConfig.h>
14#include <aws/connectcampaignsv2/model/CommunicationLimitsConfig.h>
15#include <aws/core/utils/memory/stl/AWSMap.h>
16#include <utility>
17
18namespace Aws
19{
20namespace ConnectCampaignsV2
21{
22namespace Model
23{
24
31 {
32 public:
33 AWS_CONNECTCAMPAIGNSV2_API CreateCampaignRequest() = default;
34
35 // Service request name is the Operation name which will send this request out,
36 // each operation should has unique request name, so that we can get operation's name from this request.
37 // Note: this is not true for response, multiple operations may have the same response name,
38 // so we can not get operation's name from response.
39 inline virtual const char* GetServiceRequestName() const override { return "CreateCampaign"; }
40
41 AWS_CONNECTCAMPAIGNSV2_API Aws::String SerializePayload() const override;
42
43
45
46 inline const Aws::String& GetName() const { return m_name; }
47 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
48 template<typename NameT = Aws::String>
49 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
50 template<typename NameT = Aws::String>
51 CreateCampaignRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
53
55
56 inline const Aws::String& GetConnectInstanceId() const { return m_connectInstanceId; }
57 inline bool ConnectInstanceIdHasBeenSet() const { return m_connectInstanceIdHasBeenSet; }
58 template<typename ConnectInstanceIdT = Aws::String>
59 void SetConnectInstanceId(ConnectInstanceIdT&& value) { m_connectInstanceIdHasBeenSet = true; m_connectInstanceId = std::forward<ConnectInstanceIdT>(value); }
60 template<typename ConnectInstanceIdT = Aws::String>
61 CreateCampaignRequest& WithConnectInstanceId(ConnectInstanceIdT&& value) { SetConnectInstanceId(std::forward<ConnectInstanceIdT>(value)); return *this;}
63
65
66 inline const ChannelSubtypeConfig& GetChannelSubtypeConfig() const { return m_channelSubtypeConfig; }
67 inline bool ChannelSubtypeConfigHasBeenSet() const { return m_channelSubtypeConfigHasBeenSet; }
68 template<typename ChannelSubtypeConfigT = ChannelSubtypeConfig>
69 void SetChannelSubtypeConfig(ChannelSubtypeConfigT&& value) { m_channelSubtypeConfigHasBeenSet = true; m_channelSubtypeConfig = std::forward<ChannelSubtypeConfigT>(value); }
70 template<typename ChannelSubtypeConfigT = ChannelSubtypeConfig>
71 CreateCampaignRequest& WithChannelSubtypeConfig(ChannelSubtypeConfigT&& value) { SetChannelSubtypeConfig(std::forward<ChannelSubtypeConfigT>(value)); return *this;}
73
75
76 inline const Source& GetSource() const { return m_source; }
77 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
78 template<typename SourceT = Source>
79 void SetSource(SourceT&& value) { m_sourceHasBeenSet = true; m_source = std::forward<SourceT>(value); }
80 template<typename SourceT = Source>
81 CreateCampaignRequest& WithSource(SourceT&& value) { SetSource(std::forward<SourceT>(value)); return *this;}
83
85
86 inline const Aws::String& GetConnectCampaignFlowArn() const { return m_connectCampaignFlowArn; }
87 inline bool ConnectCampaignFlowArnHasBeenSet() const { return m_connectCampaignFlowArnHasBeenSet; }
88 template<typename ConnectCampaignFlowArnT = Aws::String>
89 void SetConnectCampaignFlowArn(ConnectCampaignFlowArnT&& value) { m_connectCampaignFlowArnHasBeenSet = true; m_connectCampaignFlowArn = std::forward<ConnectCampaignFlowArnT>(value); }
90 template<typename ConnectCampaignFlowArnT = Aws::String>
91 CreateCampaignRequest& WithConnectCampaignFlowArn(ConnectCampaignFlowArnT&& value) { SetConnectCampaignFlowArn(std::forward<ConnectCampaignFlowArnT>(value)); return *this;}
93
95
96 inline const Schedule& GetSchedule() const { return m_schedule; }
97 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
98 template<typename ScheduleT = Schedule>
99 void SetSchedule(ScheduleT&& value) { m_scheduleHasBeenSet = true; m_schedule = std::forward<ScheduleT>(value); }
100 template<typename ScheduleT = Schedule>
101 CreateCampaignRequest& WithSchedule(ScheduleT&& value) { SetSchedule(std::forward<ScheduleT>(value)); return *this;}
103
105
106 inline const CommunicationTimeConfig& GetCommunicationTimeConfig() const { return m_communicationTimeConfig; }
107 inline bool CommunicationTimeConfigHasBeenSet() const { return m_communicationTimeConfigHasBeenSet; }
108 template<typename CommunicationTimeConfigT = CommunicationTimeConfig>
109 void SetCommunicationTimeConfig(CommunicationTimeConfigT&& value) { m_communicationTimeConfigHasBeenSet = true; m_communicationTimeConfig = std::forward<CommunicationTimeConfigT>(value); }
110 template<typename CommunicationTimeConfigT = CommunicationTimeConfig>
111 CreateCampaignRequest& WithCommunicationTimeConfig(CommunicationTimeConfigT&& value) { SetCommunicationTimeConfig(std::forward<CommunicationTimeConfigT>(value)); return *this;}
113
115
116 inline const CommunicationLimitsConfig& GetCommunicationLimitsOverride() const { return m_communicationLimitsOverride; }
117 inline bool CommunicationLimitsOverrideHasBeenSet() const { return m_communicationLimitsOverrideHasBeenSet; }
118 template<typename CommunicationLimitsOverrideT = CommunicationLimitsConfig>
119 void SetCommunicationLimitsOverride(CommunicationLimitsOverrideT&& value) { m_communicationLimitsOverrideHasBeenSet = true; m_communicationLimitsOverride = std::forward<CommunicationLimitsOverrideT>(value); }
120 template<typename CommunicationLimitsOverrideT = CommunicationLimitsConfig>
121 CreateCampaignRequest& WithCommunicationLimitsOverride(CommunicationLimitsOverrideT&& value) { SetCommunicationLimitsOverride(std::forward<CommunicationLimitsOverrideT>(value)); return *this;}
123
125
126 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
127 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
128 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
129 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
130 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
131 CreateCampaignRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
132 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
133 CreateCampaignRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
134 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
135 }
137 private:
138
139 Aws::String m_name;
140 bool m_nameHasBeenSet = false;
141
142 Aws::String m_connectInstanceId;
143 bool m_connectInstanceIdHasBeenSet = false;
144
145 ChannelSubtypeConfig m_channelSubtypeConfig;
146 bool m_channelSubtypeConfigHasBeenSet = false;
147
148 Source m_source;
149 bool m_sourceHasBeenSet = false;
150
151 Aws::String m_connectCampaignFlowArn;
152 bool m_connectCampaignFlowArnHasBeenSet = false;
153
154 Schedule m_schedule;
155 bool m_scheduleHasBeenSet = false;
156
157 CommunicationTimeConfig m_communicationTimeConfig;
158 bool m_communicationTimeConfigHasBeenSet = false;
159
160 CommunicationLimitsConfig m_communicationLimitsOverride;
161 bool m_communicationLimitsOverrideHasBeenSet = false;
162
164 bool m_tagsHasBeenSet = false;
165 };
166
167} // namespace Model
168} // namespace ConnectCampaignsV2
169} // 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)
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