AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename NameT = Aws::String>
46 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
47 template<typename NameT = Aws::String>
48 CreateCampaignRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
50
52
53 inline const Aws::String& GetConnectInstanceId() const { return m_connectInstanceId; }
54 inline bool ConnectInstanceIdHasBeenSet() const { return m_connectInstanceIdHasBeenSet; }
55 template<typename ConnectInstanceIdT = Aws::String>
56 void SetConnectInstanceId(ConnectInstanceIdT&& value) { m_connectInstanceIdHasBeenSet = true; m_connectInstanceId = std::forward<ConnectInstanceIdT>(value); }
57 template<typename ConnectInstanceIdT = Aws::String>
58 CreateCampaignRequest& WithConnectInstanceId(ConnectInstanceIdT&& value) { SetConnectInstanceId(std::forward<ConnectInstanceIdT>(value)); return *this;}
60
62
63 inline const DialerConfig& GetDialerConfig() const { return m_dialerConfig; }
64 inline bool DialerConfigHasBeenSet() const { return m_dialerConfigHasBeenSet; }
65 template<typename DialerConfigT = DialerConfig>
66 void SetDialerConfig(DialerConfigT&& value) { m_dialerConfigHasBeenSet = true; m_dialerConfig = std::forward<DialerConfigT>(value); }
67 template<typename DialerConfigT = DialerConfig>
68 CreateCampaignRequest& WithDialerConfig(DialerConfigT&& value) { SetDialerConfig(std::forward<DialerConfigT>(value)); return *this;}
70
72
73 inline const OutboundCallConfig& GetOutboundCallConfig() const { return m_outboundCallConfig; }
74 inline bool OutboundCallConfigHasBeenSet() const { return m_outboundCallConfigHasBeenSet; }
75 template<typename OutboundCallConfigT = OutboundCallConfig>
76 void SetOutboundCallConfig(OutboundCallConfigT&& value) { m_outboundCallConfigHasBeenSet = true; m_outboundCallConfig = std::forward<OutboundCallConfigT>(value); }
77 template<typename OutboundCallConfigT = OutboundCallConfig>
78 CreateCampaignRequest& WithOutboundCallConfig(OutboundCallConfigT&& value) { SetOutboundCallConfig(std::forward<OutboundCallConfigT>(value)); return *this;}
80
82
83 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
84 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
85 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
86 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
87 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
88 CreateCampaignRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
89 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
90 CreateCampaignRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
91 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
92 }
94 private:
95
96 Aws::String m_name;
97 bool m_nameHasBeenSet = false;
98
99 Aws::String m_connectInstanceId;
100 bool m_connectInstanceIdHasBeenSet = false;
101
102 DialerConfig m_dialerConfig;
103 bool m_dialerConfigHasBeenSet = false;
104
105 OutboundCallConfig m_outboundCallConfig;
106 bool m_outboundCallConfigHasBeenSet = false;
107
109 bool m_tagsHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace ConnectCampaigns
114} // namespace Aws
CreateCampaignRequest & WithTags(TagsT &&value)
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