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/connectcampaigns/ConnectCampaigns_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.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 <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace ConnectCampaigns
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_CONNECTCAMPAIGNS_API Campaign() = default;
38 AWS_CONNECTCAMPAIGNS_API Campaign(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CONNECTCAMPAIGNS_API Campaign& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CONNECTCAMPAIGNS_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
45 inline const Aws::String& GetId() const { return m_id; }
46 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
47 template<typename IdT = Aws::String>
48 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
49 template<typename IdT = Aws::String>
50 Campaign& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
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) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
59 template<typename ArnT = Aws::String>
60 Campaign& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
62
64
65 inline const Aws::String& GetName() const { return m_name; }
66 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
67 template<typename NameT = Aws::String>
68 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
69 template<typename NameT = Aws::String>
70 Campaign& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
72
74
75 inline const Aws::String& GetConnectInstanceId() const { return m_connectInstanceId; }
76 inline bool ConnectInstanceIdHasBeenSet() const { return m_connectInstanceIdHasBeenSet; }
77 template<typename ConnectInstanceIdT = Aws::String>
78 void SetConnectInstanceId(ConnectInstanceIdT&& value) { m_connectInstanceIdHasBeenSet = true; m_connectInstanceId = std::forward<ConnectInstanceIdT>(value); }
79 template<typename ConnectInstanceIdT = Aws::String>
80 Campaign& WithConnectInstanceId(ConnectInstanceIdT&& value) { SetConnectInstanceId(std::forward<ConnectInstanceIdT>(value)); return *this;}
82
84
85 inline const DialerConfig& GetDialerConfig() const { return m_dialerConfig; }
86 inline bool DialerConfigHasBeenSet() const { return m_dialerConfigHasBeenSet; }
87 template<typename DialerConfigT = DialerConfig>
88 void SetDialerConfig(DialerConfigT&& value) { m_dialerConfigHasBeenSet = true; m_dialerConfig = std::forward<DialerConfigT>(value); }
89 template<typename DialerConfigT = DialerConfig>
90 Campaign& WithDialerConfig(DialerConfigT&& value) { SetDialerConfig(std::forward<DialerConfigT>(value)); return *this;}
92
94
95 inline const OutboundCallConfig& GetOutboundCallConfig() const { return m_outboundCallConfig; }
96 inline bool OutboundCallConfigHasBeenSet() const { return m_outboundCallConfigHasBeenSet; }
97 template<typename OutboundCallConfigT = OutboundCallConfig>
98 void SetOutboundCallConfig(OutboundCallConfigT&& value) { m_outboundCallConfigHasBeenSet = true; m_outboundCallConfig = std::forward<OutboundCallConfigT>(value); }
99 template<typename OutboundCallConfigT = OutboundCallConfig>
100 Campaign& WithOutboundCallConfig(OutboundCallConfigT&& value) { SetOutboundCallConfig(std::forward<OutboundCallConfigT>(value)); return *this;}
102
104
105 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
106 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
107 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
108 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
109 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
110 Campaign& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
111 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
112 Campaign& AddTags(TagsKeyT&& key, TagsValueT&& value) {
113 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
114 }
116 private:
117
118 Aws::String m_id;
119 bool m_idHasBeenSet = false;
120
121 Aws::String m_arn;
122 bool m_arnHasBeenSet = false;
123
124 Aws::String m_name;
125 bool m_nameHasBeenSet = false;
126
127 Aws::String m_connectInstanceId;
128 bool m_connectInstanceIdHasBeenSet = false;
129
130 DialerConfig m_dialerConfig;
131 bool m_dialerConfigHasBeenSet = false;
132
133 OutboundCallConfig m_outboundCallConfig;
134 bool m_outboundCallConfigHasBeenSet = false;
135
137 bool m_tagsHasBeenSet = false;
138 };
139
140} // namespace Model
141} // namespace ConnectCampaigns
142} // namespace Aws
const Aws::String & GetConnectInstanceId() const
Definition Campaign.h:75
Campaign & WithDialerConfig(DialerConfigT &&value)
Definition Campaign.h:90
Campaign & WithId(IdT &&value)
Definition Campaign.h:50
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:100
AWS_CONNECTCAMPAIGNS_API Campaign(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetId() const
Definition Campaign.h:45
void SetOutboundCallConfig(OutboundCallConfigT &&value)
Definition Campaign.h:98
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition Campaign.h:105
AWS_CONNECTCAMPAIGNS_API Campaign()=default
Campaign & WithArn(ArnT &&value)
Definition Campaign.h:60
Campaign & AddTags(TagsKeyT &&key, TagsValueT &&value)
Definition Campaign.h:112
const OutboundCallConfig & GetOutboundCallConfig() const
Definition Campaign.h:95
Campaign & WithConnectInstanceId(ConnectInstanceIdT &&value)
Definition Campaign.h:80
Campaign & WithName(NameT &&value)
Definition Campaign.h:70
void SetDialerConfig(DialerConfigT &&value)
Definition Campaign.h:88
void SetConnectInstanceId(ConnectInstanceIdT &&value)
Definition Campaign.h:78
const Aws::String & GetName() const
Definition Campaign.h:65
Campaign & WithTags(TagsT &&value)
Definition Campaign.h:110
const DialerConfig & GetDialerConfig() const
Definition Campaign.h:85
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