AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
CreateCampaignRequest.h
1
6#pragma once
7#include <aws/connectcampaigns/ConnectCampaignsRequest.h>
8#include <aws/connectcampaigns/ConnectCampaigns_EXPORTS.h>
9#include <aws/connectcampaigns/model/DialerConfig.h>
10#include <aws/connectcampaigns/model/OutboundCallConfig.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13
14#include <utility>
15
16namespace Aws {
17namespace ConnectCampaigns {
18namespace Model {
19
26 public:
27 AWS_CONNECTCAMPAIGNS_API CreateCampaignRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateCampaign"; }
34
35 AWS_CONNECTCAMPAIGNS_API Aws::String SerializePayload() const override;
36
38
39 inline const Aws::String& GetName() const { return m_name; }
40 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
41 template <typename NameT = Aws::String>
42 void SetName(NameT&& value) {
43 m_nameHasBeenSet = true;
44 m_name = std::forward<NameT>(value);
45 }
46 template <typename NameT = Aws::String>
48 SetName(std::forward<NameT>(value));
49 return *this;
50 }
52
54
55 inline const Aws::String& GetConnectInstanceId() const { return m_connectInstanceId; }
56 inline bool ConnectInstanceIdHasBeenSet() const { return m_connectInstanceIdHasBeenSet; }
57 template <typename ConnectInstanceIdT = Aws::String>
58 void SetConnectInstanceId(ConnectInstanceIdT&& value) {
59 m_connectInstanceIdHasBeenSet = true;
60 m_connectInstanceId = std::forward<ConnectInstanceIdT>(value);
61 }
62 template <typename ConnectInstanceIdT = Aws::String>
63 CreateCampaignRequest& WithConnectInstanceId(ConnectInstanceIdT&& value) {
64 SetConnectInstanceId(std::forward<ConnectInstanceIdT>(value));
65 return *this;
66 }
68
70
71 inline const DialerConfig& GetDialerConfig() const { return m_dialerConfig; }
72 inline bool DialerConfigHasBeenSet() const { return m_dialerConfigHasBeenSet; }
73 template <typename DialerConfigT = DialerConfig>
74 void SetDialerConfig(DialerConfigT&& value) {
75 m_dialerConfigHasBeenSet = true;
76 m_dialerConfig = std::forward<DialerConfigT>(value);
77 }
78 template <typename DialerConfigT = DialerConfig>
79 CreateCampaignRequest& WithDialerConfig(DialerConfigT&& value) {
80 SetDialerConfig(std::forward<DialerConfigT>(value));
81 return *this;
82 }
84
86
87 inline const OutboundCallConfig& GetOutboundCallConfig() const { return m_outboundCallConfig; }
88 inline bool OutboundCallConfigHasBeenSet() const { return m_outboundCallConfigHasBeenSet; }
89 template <typename OutboundCallConfigT = OutboundCallConfig>
90 void SetOutboundCallConfig(OutboundCallConfigT&& value) {
91 m_outboundCallConfigHasBeenSet = true;
92 m_outboundCallConfig = std::forward<OutboundCallConfigT>(value);
93 }
94 template <typename OutboundCallConfigT = OutboundCallConfig>
95 CreateCampaignRequest& WithOutboundCallConfig(OutboundCallConfigT&& value) {
96 SetOutboundCallConfig(std::forward<OutboundCallConfigT>(value));
97 return *this;
98 }
100
102
103 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
104 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
105 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
106 void SetTags(TagsT&& value) {
107 m_tagsHasBeenSet = true;
108 m_tags = std::forward<TagsT>(value);
109 }
110 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
112 SetTags(std::forward<TagsT>(value));
113 return *this;
114 }
115 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
116 CreateCampaignRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
117 m_tagsHasBeenSet = true;
118 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
119 return *this;
120 }
122 private:
123 Aws::String m_name;
124
125 Aws::String m_connectInstanceId;
126
127 DialerConfig m_dialerConfig;
128
129 OutboundCallConfig m_outboundCallConfig;
130
132 bool m_nameHasBeenSet = false;
133 bool m_connectInstanceIdHasBeenSet = false;
134 bool m_dialerConfigHasBeenSet = false;
135 bool m_outboundCallConfigHasBeenSet = false;
136 bool m_tagsHasBeenSet = false;
137};
138
139} // namespace Model
140} // namespace ConnectCampaigns
141} // namespace Aws
CreateCampaignRequest & WithConnectInstanceId(ConnectInstanceIdT &&value)
CreateCampaignRequest & WithDialerConfig(DialerConfigT &&value)
virtual const char * GetServiceRequestName() const override
CreateCampaignRequest & WithName(NameT &&value)
CreateCampaignRequest & WithOutboundCallConfig(OutboundCallConfigT &&value)
AWS_CONNECTCAMPAIGNS_API CreateCampaignRequest()=default
CreateCampaignRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_CONNECTCAMPAIGNS_API Aws::String SerializePayload() const override
const Aws::Map< Aws::String, Aws::String > & GetTags() const
const OutboundCallConfig & GetOutboundCallConfig() const
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