AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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