AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
48 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
49 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
50 inline Campaign& WithId(const Aws::String& value) { SetId(value); return *this;}
51 inline Campaign& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
52 inline Campaign& WithId(const char* value) { SetId(value); return *this;}
54
56
57 inline const Aws::String& GetArn() const{ return m_arn; }
58 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
59 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
60 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
61 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
62 inline Campaign& WithArn(const Aws::String& value) { SetArn(value); return *this;}
63 inline Campaign& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
64 inline Campaign& WithArn(const char* value) { SetArn(value); return *this;}
66
68
69 inline const Aws::String& GetName() const{ return m_name; }
70 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
71 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
72 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
73 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
74 inline Campaign& WithName(const Aws::String& value) { SetName(value); return *this;}
75 inline Campaign& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
76 inline Campaign& WithName(const char* value) { SetName(value); return *this;}
78
80
81 inline const Aws::String& GetConnectInstanceId() const{ return m_connectInstanceId; }
82 inline bool ConnectInstanceIdHasBeenSet() const { return m_connectInstanceIdHasBeenSet; }
83 inline void SetConnectInstanceId(const Aws::String& value) { m_connectInstanceIdHasBeenSet = true; m_connectInstanceId = value; }
84 inline void SetConnectInstanceId(Aws::String&& value) { m_connectInstanceIdHasBeenSet = true; m_connectInstanceId = std::move(value); }
85 inline void SetConnectInstanceId(const char* value) { m_connectInstanceIdHasBeenSet = true; m_connectInstanceId.assign(value); }
86 inline Campaign& WithConnectInstanceId(const Aws::String& value) { SetConnectInstanceId(value); return *this;}
87 inline Campaign& WithConnectInstanceId(Aws::String&& value) { SetConnectInstanceId(std::move(value)); return *this;}
88 inline Campaign& WithConnectInstanceId(const char* value) { SetConnectInstanceId(value); return *this;}
90
92
93 inline const DialerConfig& GetDialerConfig() const{ return m_dialerConfig; }
94 inline bool DialerConfigHasBeenSet() const { return m_dialerConfigHasBeenSet; }
95 inline void SetDialerConfig(const DialerConfig& value) { m_dialerConfigHasBeenSet = true; m_dialerConfig = value; }
96 inline void SetDialerConfig(DialerConfig&& value) { m_dialerConfigHasBeenSet = true; m_dialerConfig = std::move(value); }
97 inline Campaign& WithDialerConfig(const DialerConfig& value) { SetDialerConfig(value); return *this;}
98 inline Campaign& WithDialerConfig(DialerConfig&& value) { SetDialerConfig(std::move(value)); return *this;}
100
102
103 inline const OutboundCallConfig& GetOutboundCallConfig() const{ return m_outboundCallConfig; }
104 inline bool OutboundCallConfigHasBeenSet() const { return m_outboundCallConfigHasBeenSet; }
105 inline void SetOutboundCallConfig(const OutboundCallConfig& value) { m_outboundCallConfigHasBeenSet = true; m_outboundCallConfig = value; }
106 inline void SetOutboundCallConfig(OutboundCallConfig&& value) { m_outboundCallConfigHasBeenSet = true; m_outboundCallConfig = std::move(value); }
107 inline Campaign& WithOutboundCallConfig(const OutboundCallConfig& value) { SetOutboundCallConfig(value); return *this;}
108 inline Campaign& WithOutboundCallConfig(OutboundCallConfig&& value) { SetOutboundCallConfig(std::move(value)); return *this;}
110
112
113 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
114 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
115 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
116 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
117 inline Campaign& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
118 inline Campaign& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
119 inline Campaign& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
120 inline Campaign& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
121 inline Campaign& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
122 inline Campaign& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
123 inline Campaign& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
124 inline Campaign& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
125 inline Campaign& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
127 private:
128
129 Aws::String m_id;
130 bool m_idHasBeenSet = false;
131
132 Aws::String m_arn;
133 bool m_arnHasBeenSet = false;
134
135 Aws::String m_name;
136 bool m_nameHasBeenSet = false;
137
138 Aws::String m_connectInstanceId;
139 bool m_connectInstanceIdHasBeenSet = false;
140
141 DialerConfig m_dialerConfig;
142 bool m_dialerConfigHasBeenSet = false;
143
144 OutboundCallConfig m_outboundCallConfig;
145 bool m_outboundCallConfigHasBeenSet = false;
146
148 bool m_tagsHasBeenSet = false;
149 };
150
151} // namespace Model
152} // namespace ConnectCampaigns
153} // namespace Aws
Campaign & WithId(const char *value)
Definition Campaign.h:52
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition Campaign.h:116
void SetConnectInstanceId(const char *value)
Definition Campaign.h:85
Campaign & WithName(Aws::String &&value)
Definition Campaign.h:75
Campaign & WithConnectInstanceId(Aws::String &&value)
Definition Campaign.h:87
void SetName(Aws::String &&value)
Definition Campaign.h:72
Campaign & WithId(Aws::String &&value)
Definition Campaign.h:51
void SetConnectInstanceId(const Aws::String &value)
Definition Campaign.h:83
const Aws::String & GetConnectInstanceId() const
Definition Campaign.h:81
Campaign & WithOutboundCallConfig(const OutboundCallConfig &value)
Definition Campaign.h:107
void SetId(const char *value)
Definition Campaign.h:49
Campaign & WithConnectInstanceId(const char *value)
Definition Campaign.h:88
Campaign & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition Campaign.h:118
AWS_CONNECTCAMPAIGNS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetConnectInstanceId(Aws::String &&value)
Definition Campaign.h:84
Campaign & WithArn(Aws::String &&value)
Definition Campaign.h:63
AWS_CONNECTCAMPAIGNS_API Campaign & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetArn() const
Definition Campaign.h:57
Campaign & AddTags(const char *key, const char *value)
Definition Campaign.h:125
AWS_CONNECTCAMPAIGNS_API Campaign(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetId() const
Definition Campaign.h:45
Campaign & WithId(const Aws::String &value)
Definition Campaign.h:50
Campaign & AddTags(const char *key, Aws::String &&value)
Definition Campaign.h:123
void SetName(const char *value)
Definition Campaign.h:73
Campaign & WithName(const char *value)
Definition Campaign.h:76
Campaign & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition Campaign.h:117
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition Campaign.h:113
void SetOutboundCallConfig(const OutboundCallConfig &value)
Definition Campaign.h:105
void SetArn(Aws::String &&value)
Definition Campaign.h:60
void SetDialerConfig(const DialerConfig &value)
Definition Campaign.h:95
void SetArn(const char *value)
Definition Campaign.h:61
Campaign & AddTags(Aws::String &&key, const char *value)
Definition Campaign.h:124
Campaign & WithOutboundCallConfig(OutboundCallConfig &&value)
Definition Campaign.h:108
const OutboundCallConfig & GetOutboundCallConfig() const
Definition Campaign.h:103
Campaign & AddTags(const Aws::String &key, Aws::String &&value)
Definition Campaign.h:121
AWS_CONNECTCAMPAIGNS_API Campaign()
void SetOutboundCallConfig(OutboundCallConfig &&value)
Definition Campaign.h:106
void SetId(Aws::String &&value)
Definition Campaign.h:48
Campaign & WithConnectInstanceId(const Aws::String &value)
Definition Campaign.h:86
Campaign & AddTags(Aws::String &&key, const Aws::String &value)
Definition Campaign.h:120
Campaign & WithDialerConfig(const DialerConfig &value)
Definition Campaign.h:97
void SetDialerConfig(DialerConfig &&value)
Definition Campaign.h:96
Campaign & WithDialerConfig(DialerConfig &&value)
Definition Campaign.h:98
void SetId(const Aws::String &value)
Definition Campaign.h:47
Campaign & WithName(const Aws::String &value)
Definition Campaign.h:74
Campaign & WithArn(const char *value)
Definition Campaign.h:64
Campaign & AddTags(const Aws::String &key, const Aws::String &value)
Definition Campaign.h:119
Campaign & WithArn(const Aws::String &value)
Definition Campaign.h:62
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition Campaign.h:115
Campaign & AddTags(Aws::String &&key, Aws::String &&value)
Definition Campaign.h:122
const Aws::String & GetName() const
Definition Campaign.h:69
const DialerConfig & GetDialerConfig() const
Definition Campaign.h:93
void SetArn(const Aws::String &value)
Definition Campaign.h:59
void SetName(const Aws::String &value)
Definition Campaign.h:71
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