AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
Campaign.h
1
6#pragma once
7#include <aws/connectcampaigns/ConnectCampaigns_EXPORTS.h>
8#include <aws/connectcampaigns/model/DialerConfig.h>
9#include <aws/connectcampaigns/model/OutboundCallConfig.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace ConnectCampaigns {
23namespace Model {
24
30class Campaign {
31 public:
32 AWS_CONNECTCAMPAIGNS_API Campaign() = default;
33 AWS_CONNECTCAMPAIGNS_API Campaign(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CONNECTCAMPAIGNS_API Campaign& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_CONNECTCAMPAIGNS_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
39 inline const Aws::String& GetId() const { return m_id; }
40 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
41 template <typename IdT = Aws::String>
42 void SetId(IdT&& value) {
43 m_idHasBeenSet = true;
44 m_id = std::forward<IdT>(value);
45 }
46 template <typename IdT = Aws::String>
47 Campaign& WithId(IdT&& value) {
48 SetId(std::forward<IdT>(value));
49 return *this;
50 }
52
54
55 inline const Aws::String& GetArn() const { return m_arn; }
56 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
57 template <typename ArnT = Aws::String>
58 void SetArn(ArnT&& value) {
59 m_arnHasBeenSet = true;
60 m_arn = std::forward<ArnT>(value);
61 }
62 template <typename ArnT = Aws::String>
63 Campaign& WithArn(ArnT&& value) {
64 SetArn(std::forward<ArnT>(value));
65 return *this;
66 }
68
70
71 inline const Aws::String& GetName() const { return m_name; }
72 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
73 template <typename NameT = Aws::String>
74 void SetName(NameT&& value) {
75 m_nameHasBeenSet = true;
76 m_name = std::forward<NameT>(value);
77 }
78 template <typename NameT = Aws::String>
79 Campaign& WithName(NameT&& value) {
80 SetName(std::forward<NameT>(value));
81 return *this;
82 }
84
86
87 inline const Aws::String& GetConnectInstanceId() const { return m_connectInstanceId; }
88 inline bool ConnectInstanceIdHasBeenSet() const { return m_connectInstanceIdHasBeenSet; }
89 template <typename ConnectInstanceIdT = Aws::String>
90 void SetConnectInstanceId(ConnectInstanceIdT&& value) {
91 m_connectInstanceIdHasBeenSet = true;
92 m_connectInstanceId = std::forward<ConnectInstanceIdT>(value);
93 }
94 template <typename ConnectInstanceIdT = Aws::String>
95 Campaign& WithConnectInstanceId(ConnectInstanceIdT&& value) {
96 SetConnectInstanceId(std::forward<ConnectInstanceIdT>(value));
97 return *this;
98 }
100
102
103 inline const DialerConfig& GetDialerConfig() const { return m_dialerConfig; }
104 inline bool DialerConfigHasBeenSet() const { return m_dialerConfigHasBeenSet; }
105 template <typename DialerConfigT = DialerConfig>
106 void SetDialerConfig(DialerConfigT&& value) {
107 m_dialerConfigHasBeenSet = true;
108 m_dialerConfig = std::forward<DialerConfigT>(value);
109 }
110 template <typename DialerConfigT = DialerConfig>
111 Campaign& WithDialerConfig(DialerConfigT&& value) {
112 SetDialerConfig(std::forward<DialerConfigT>(value));
113 return *this;
114 }
116
118
119 inline const OutboundCallConfig& GetOutboundCallConfig() const { return m_outboundCallConfig; }
120 inline bool OutboundCallConfigHasBeenSet() const { return m_outboundCallConfigHasBeenSet; }
121 template <typename OutboundCallConfigT = OutboundCallConfig>
122 void SetOutboundCallConfig(OutboundCallConfigT&& value) {
123 m_outboundCallConfigHasBeenSet = true;
124 m_outboundCallConfig = std::forward<OutboundCallConfigT>(value);
125 }
126 template <typename OutboundCallConfigT = OutboundCallConfig>
127 Campaign& WithOutboundCallConfig(OutboundCallConfigT&& value) {
128 SetOutboundCallConfig(std::forward<OutboundCallConfigT>(value));
129 return *this;
130 }
132
134
135 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
136 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
137 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
138 void SetTags(TagsT&& value) {
139 m_tagsHasBeenSet = true;
140 m_tags = std::forward<TagsT>(value);
141 }
142 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
143 Campaign& WithTags(TagsT&& value) {
144 SetTags(std::forward<TagsT>(value));
145 return *this;
146 }
147 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
148 Campaign& AddTags(TagsKeyT&& key, TagsValueT&& value) {
149 m_tagsHasBeenSet = true;
150 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
151 return *this;
152 }
154 private:
155 Aws::String m_id;
156
157 Aws::String m_arn;
158
159 Aws::String m_name;
160
161 Aws::String m_connectInstanceId;
162
163 DialerConfig m_dialerConfig;
164
165 OutboundCallConfig m_outboundCallConfig;
166
168 bool m_idHasBeenSet = false;
169 bool m_arnHasBeenSet = false;
170 bool m_nameHasBeenSet = false;
171 bool m_connectInstanceIdHasBeenSet = false;
172 bool m_dialerConfigHasBeenSet = false;
173 bool m_outboundCallConfigHasBeenSet = false;
174 bool m_tagsHasBeenSet = false;
175};
176
177} // namespace Model
178} // namespace ConnectCampaigns
179} // namespace Aws
const Aws::String & GetConnectInstanceId() const
Definition Campaign.h:87
Campaign & WithDialerConfig(DialerConfigT &&value)
Definition Campaign.h:111
Campaign & WithId(IdT &&value)
Definition Campaign.h:47
AWS_CONNECTCAMPAIGNS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CONNECTCAMPAIGNS_API Campaign & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetArn() const
Definition Campaign.h:55
Campaign & WithOutboundCallConfig(OutboundCallConfigT &&value)
Definition Campaign.h:127
AWS_CONNECTCAMPAIGNS_API Campaign(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetId() const
Definition Campaign.h:39
void SetOutboundCallConfig(OutboundCallConfigT &&value)
Definition Campaign.h:122
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition Campaign.h:135
AWS_CONNECTCAMPAIGNS_API Campaign()=default
Campaign & WithArn(ArnT &&value)
Definition Campaign.h:63
Campaign & AddTags(TagsKeyT &&key, TagsValueT &&value)
Definition Campaign.h:148
const OutboundCallConfig & GetOutboundCallConfig() const
Definition Campaign.h:119
Campaign & WithConnectInstanceId(ConnectInstanceIdT &&value)
Definition Campaign.h:95
Campaign & WithName(NameT &&value)
Definition Campaign.h:79
void SetDialerConfig(DialerConfigT &&value)
Definition Campaign.h:106
void SetConnectInstanceId(ConnectInstanceIdT &&value)
Definition Campaign.h:90
const Aws::String & GetName() const
Definition Campaign.h:71
Campaign & WithTags(TagsT &&value)
Definition Campaign.h:143
const DialerConfig & GetDialerConfig() const
Definition Campaign.h:103
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