AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
ContactDataRequest.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/model/Campaign.h>
9#include <aws/connect/model/Endpoint.h>
10#include <aws/connect/model/OutboundStrategy.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Connect {
24namespace Model {
25
33 public:
34 AWS_CONNECT_API ContactDataRequest() = default;
37 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
44 inline const Endpoint& GetSystemEndpoint() const { return m_systemEndpoint; }
45 inline bool SystemEndpointHasBeenSet() const { return m_systemEndpointHasBeenSet; }
46 template <typename SystemEndpointT = Endpoint>
47 void SetSystemEndpoint(SystemEndpointT&& value) {
48 m_systemEndpointHasBeenSet = true;
49 m_systemEndpoint = std::forward<SystemEndpointT>(value);
50 }
51 template <typename SystemEndpointT = Endpoint>
52 ContactDataRequest& WithSystemEndpoint(SystemEndpointT&& value) {
53 SetSystemEndpoint(std::forward<SystemEndpointT>(value));
54 return *this;
55 }
57
59
62 inline const Endpoint& GetCustomerEndpoint() const { return m_customerEndpoint; }
63 inline bool CustomerEndpointHasBeenSet() const { return m_customerEndpointHasBeenSet; }
64 template <typename CustomerEndpointT = Endpoint>
65 void SetCustomerEndpoint(CustomerEndpointT&& value) {
66 m_customerEndpointHasBeenSet = true;
67 m_customerEndpoint = std::forward<CustomerEndpointT>(value);
68 }
69 template <typename CustomerEndpointT = Endpoint>
70 ContactDataRequest& WithCustomerEndpoint(CustomerEndpointT&& value) {
71 SetCustomerEndpoint(std::forward<CustomerEndpointT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetRequestIdentifier() const { return m_requestIdentifier; }
81 inline bool RequestIdentifierHasBeenSet() const { return m_requestIdentifierHasBeenSet; }
82 template <typename RequestIdentifierT = Aws::String>
83 void SetRequestIdentifier(RequestIdentifierT&& value) {
84 m_requestIdentifierHasBeenSet = true;
85 m_requestIdentifier = std::forward<RequestIdentifierT>(value);
86 }
87 template <typename RequestIdentifierT = Aws::String>
88 ContactDataRequest& WithRequestIdentifier(RequestIdentifierT&& value) {
89 SetRequestIdentifier(std::forward<RequestIdentifierT>(value));
90 return *this;
91 }
93
95
99 inline const Aws::String& GetQueueId() const { return m_queueId; }
100 inline bool QueueIdHasBeenSet() const { return m_queueIdHasBeenSet; }
101 template <typename QueueIdT = Aws::String>
102 void SetQueueId(QueueIdT&& value) {
103 m_queueIdHasBeenSet = true;
104 m_queueId = std::forward<QueueIdT>(value);
105 }
106 template <typename QueueIdT = Aws::String>
107 ContactDataRequest& WithQueueId(QueueIdT&& value) {
108 SetQueueId(std::forward<QueueIdT>(value));
109 return *this;
110 }
112
114
117 inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const { return m_attributes; }
118 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
119 template <typename AttributesT = Aws::Map<Aws::String, Aws::String>>
120 void SetAttributes(AttributesT&& value) {
121 m_attributesHasBeenSet = true;
122 m_attributes = std::forward<AttributesT>(value);
123 }
124 template <typename AttributesT = Aws::Map<Aws::String, Aws::String>>
125 ContactDataRequest& WithAttributes(AttributesT&& value) {
126 SetAttributes(std::forward<AttributesT>(value));
127 return *this;
128 }
129 template <typename AttributesKeyT = Aws::String, typename AttributesValueT = Aws::String>
130 ContactDataRequest& AddAttributes(AttributesKeyT&& key, AttributesValueT&& value) {
131 m_attributesHasBeenSet = true;
132 m_attributes.emplace(std::forward<AttributesKeyT>(key), std::forward<AttributesValueT>(value));
133 return *this;
134 }
136
138
141 inline const Campaign& GetCampaign() const { return m_campaign; }
142 inline bool CampaignHasBeenSet() const { return m_campaignHasBeenSet; }
143 template <typename CampaignT = Campaign>
144 void SetCampaign(CampaignT&& value) {
145 m_campaignHasBeenSet = true;
146 m_campaign = std::forward<CampaignT>(value);
147 }
148 template <typename CampaignT = Campaign>
149 ContactDataRequest& WithCampaign(CampaignT&& value) {
150 SetCampaign(std::forward<CampaignT>(value));
151 return *this;
152 }
154
156
159 inline const OutboundStrategy& GetOutboundStrategy() const { return m_outboundStrategy; }
160 inline bool OutboundStrategyHasBeenSet() const { return m_outboundStrategyHasBeenSet; }
161 template <typename OutboundStrategyT = OutboundStrategy>
162 void SetOutboundStrategy(OutboundStrategyT&& value) {
163 m_outboundStrategyHasBeenSet = true;
164 m_outboundStrategy = std::forward<OutboundStrategyT>(value);
165 }
166 template <typename OutboundStrategyT = OutboundStrategy>
167 ContactDataRequest& WithOutboundStrategy(OutboundStrategyT&& value) {
168 SetOutboundStrategy(std::forward<OutboundStrategyT>(value));
169 return *this;
170 }
172 private:
173 Endpoint m_systemEndpoint;
174
175 Endpoint m_customerEndpoint;
176
177 Aws::String m_requestIdentifier;
178
179 Aws::String m_queueId;
180
182
183 Campaign m_campaign;
184
185 OutboundStrategy m_outboundStrategy;
186 bool m_systemEndpointHasBeenSet = false;
187 bool m_customerEndpointHasBeenSet = false;
188 bool m_requestIdentifierHasBeenSet = false;
189 bool m_queueIdHasBeenSet = false;
190 bool m_attributesHasBeenSet = false;
191 bool m_campaignHasBeenSet = false;
192 bool m_outboundStrategyHasBeenSet = false;
193};
194
195} // namespace Model
196} // namespace Connect
197} // namespace Aws
AWS_CONNECT_API ContactDataRequest & operator=(Aws::Utils::Json::JsonView jsonValue)
ContactDataRequest & AddAttributes(AttributesKeyT &&key, AttributesValueT &&value)
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetCustomerEndpoint(CustomerEndpointT &&value)
AWS_CONNECT_API ContactDataRequest(Aws::Utils::Json::JsonView jsonValue)
void SetOutboundStrategy(OutboundStrategyT &&value)
ContactDataRequest & WithCustomerEndpoint(CustomerEndpointT &&value)
ContactDataRequest & WithQueueId(QueueIdT &&value)
void SetSystemEndpoint(SystemEndpointT &&value)
const OutboundStrategy & GetOutboundStrategy() const
ContactDataRequest & WithOutboundStrategy(OutboundStrategyT &&value)
const Aws::Map< Aws::String, Aws::String > & GetAttributes() const
ContactDataRequest & WithCampaign(CampaignT &&value)
AWS_CONNECT_API ContactDataRequest()=default
ContactDataRequest & WithAttributes(AttributesT &&value)
ContactDataRequest & WithSystemEndpoint(SystemEndpointT &&value)
const Aws::String & GetRequestIdentifier() const
void SetRequestIdentifier(RequestIdentifierT &&value)
ContactDataRequest & WithRequestIdentifier(RequestIdentifierT &&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
Aws::Utils::Json::JsonValue JsonValue