AWS SDK for C++

AWS SDK for C++ Version 1.11.554

All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
Loading...
Searching...
No Matches
CreateRoutingProfileRequest.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/ConnectRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/connect/model/AgentAvailabilityTimer.h>
13#include <aws/connect/model/RoutingProfileQueueConfig.h>
14#include <aws/connect/model/MediaConcurrency.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Connect
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_CONNECT_API CreateRoutingProfileRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreateRoutingProfile"; }
36
37 AWS_CONNECT_API Aws::String SerializePayload() const override;
38
39
41
46 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
47 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
48 template<typename InstanceIdT = Aws::String>
49 void SetInstanceId(InstanceIdT&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::forward<InstanceIdT>(value); }
50 template<typename InstanceIdT = Aws::String>
51 CreateRoutingProfileRequest& WithInstanceId(InstanceIdT&& value) { SetInstanceId(std::forward<InstanceIdT>(value)); return *this;}
53
55
58 inline const Aws::String& GetName() const { return m_name; }
59 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
60 template<typename NameT = Aws::String>
61 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
62 template<typename NameT = Aws::String>
63 CreateRoutingProfileRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
65
67
70 inline const Aws::String& GetDescription() const { return m_description; }
71 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
72 template<typename DescriptionT = Aws::String>
73 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
74 template<typename DescriptionT = Aws::String>
75 CreateRoutingProfileRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
77
79
82 inline const Aws::String& GetDefaultOutboundQueueId() const { return m_defaultOutboundQueueId; }
83 inline bool DefaultOutboundQueueIdHasBeenSet() const { return m_defaultOutboundQueueIdHasBeenSet; }
84 template<typename DefaultOutboundQueueIdT = Aws::String>
85 void SetDefaultOutboundQueueId(DefaultOutboundQueueIdT&& value) { m_defaultOutboundQueueIdHasBeenSet = true; m_defaultOutboundQueueId = std::forward<DefaultOutboundQueueIdT>(value); }
86 template<typename DefaultOutboundQueueIdT = Aws::String>
87 CreateRoutingProfileRequest& WithDefaultOutboundQueueId(DefaultOutboundQueueIdT&& value) { SetDefaultOutboundQueueId(std::forward<DefaultOutboundQueueIdT>(value)); return *this;}
89
91
101 inline const Aws::Vector<RoutingProfileQueueConfig>& GetQueueConfigs() const { return m_queueConfigs; }
102 inline bool QueueConfigsHasBeenSet() const { return m_queueConfigsHasBeenSet; }
103 template<typename QueueConfigsT = Aws::Vector<RoutingProfileQueueConfig>>
104 void SetQueueConfigs(QueueConfigsT&& value) { m_queueConfigsHasBeenSet = true; m_queueConfigs = std::forward<QueueConfigsT>(value); }
105 template<typename QueueConfigsT = Aws::Vector<RoutingProfileQueueConfig>>
106 CreateRoutingProfileRequest& WithQueueConfigs(QueueConfigsT&& value) { SetQueueConfigs(std::forward<QueueConfigsT>(value)); return *this;}
107 template<typename QueueConfigsT = RoutingProfileQueueConfig>
108 CreateRoutingProfileRequest& AddQueueConfigs(QueueConfigsT&& value) { m_queueConfigsHasBeenSet = true; m_queueConfigs.emplace_back(std::forward<QueueConfigsT>(value)); return *this; }
110
112
116 inline const Aws::Vector<MediaConcurrency>& GetMediaConcurrencies() const { return m_mediaConcurrencies; }
117 inline bool MediaConcurrenciesHasBeenSet() const { return m_mediaConcurrenciesHasBeenSet; }
118 template<typename MediaConcurrenciesT = Aws::Vector<MediaConcurrency>>
119 void SetMediaConcurrencies(MediaConcurrenciesT&& value) { m_mediaConcurrenciesHasBeenSet = true; m_mediaConcurrencies = std::forward<MediaConcurrenciesT>(value); }
120 template<typename MediaConcurrenciesT = Aws::Vector<MediaConcurrency>>
121 CreateRoutingProfileRequest& WithMediaConcurrencies(MediaConcurrenciesT&& value) { SetMediaConcurrencies(std::forward<MediaConcurrenciesT>(value)); return *this;}
122 template<typename MediaConcurrenciesT = MediaConcurrency>
123 CreateRoutingProfileRequest& AddMediaConcurrencies(MediaConcurrenciesT&& value) { m_mediaConcurrenciesHasBeenSet = true; m_mediaConcurrencies.emplace_back(std::forward<MediaConcurrenciesT>(value)); return *this; }
125
127
131 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
132 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
133 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
134 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
135 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
136 CreateRoutingProfileRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
137 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
138 CreateRoutingProfileRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
139 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
140 }
142
144
149 inline AgentAvailabilityTimer GetAgentAvailabilityTimer() const { return m_agentAvailabilityTimer; }
150 inline bool AgentAvailabilityTimerHasBeenSet() const { return m_agentAvailabilityTimerHasBeenSet; }
151 inline void SetAgentAvailabilityTimer(AgentAvailabilityTimer value) { m_agentAvailabilityTimerHasBeenSet = true; m_agentAvailabilityTimer = value; }
154 private:
155
156 Aws::String m_instanceId;
157 bool m_instanceIdHasBeenSet = false;
158
159 Aws::String m_name;
160 bool m_nameHasBeenSet = false;
161
162 Aws::String m_description;
163 bool m_descriptionHasBeenSet = false;
164
165 Aws::String m_defaultOutboundQueueId;
166 bool m_defaultOutboundQueueIdHasBeenSet = false;
167
169 bool m_queueConfigsHasBeenSet = false;
170
171 Aws::Vector<MediaConcurrency> m_mediaConcurrencies;
172 bool m_mediaConcurrenciesHasBeenSet = false;
173
175 bool m_tagsHasBeenSet = false;
176
178 bool m_agentAvailabilityTimerHasBeenSet = false;
179 };
180
181} // namespace Model
182} // namespace Connect
183} // namespace Aws
CreateRoutingProfileRequest & WithTags(TagsT &&value)
CreateRoutingProfileRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateRoutingProfileRequest & WithAgentAvailabilityTimer(AgentAvailabilityTimer value)
CreateRoutingProfileRequest & AddMediaConcurrencies(MediaConcurrenciesT &&value)
void SetDefaultOutboundQueueId(DefaultOutboundQueueIdT &&value)
virtual const char * GetServiceRequestName() const override
CreateRoutingProfileRequest & WithDefaultOutboundQueueId(DefaultOutboundQueueIdT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateRoutingProfileRequest & WithQueueConfigs(QueueConfigsT &&value)
const Aws::Vector< RoutingProfileQueueConfig > & GetQueueConfigs() const
AWS_CONNECT_API CreateRoutingProfileRequest()=default
AWS_CONNECT_API Aws::String SerializePayload() const override
CreateRoutingProfileRequest & WithMediaConcurrencies(MediaConcurrenciesT &&value)
const Aws::Vector< MediaConcurrency > & GetMediaConcurrencies() const
CreateRoutingProfileRequest & WithInstanceId(InstanceIdT &&value)
CreateRoutingProfileRequest & WithName(NameT &&value)
CreateRoutingProfileRequest & AddQueueConfigs(QueueConfigsT &&value)
CreateRoutingProfileRequest & WithDescription(DescriptionT &&value)
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
std::vector< T, Aws::Allocator< T > > Vector