AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Queue.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/connect/model/OutboundCallerConfig.h>
10#include <aws/connect/model/QueueStatus.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/core/utils/DateTime.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace Connect
26{
27namespace Model
28{
29
35 class Queue
36 {
37 public:
38 AWS_CONNECT_API Queue();
39 AWS_CONNECT_API Queue(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CONNECT_API Queue& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetName() const{ return m_name; }
49 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
50 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
51 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
52 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
53 inline Queue& WithName(const Aws::String& value) { SetName(value); return *this;}
54 inline Queue& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
55 inline Queue& WithName(const char* value) { SetName(value); return *this;}
57
59
62 inline const Aws::String& GetQueueArn() const{ return m_queueArn; }
63 inline bool QueueArnHasBeenSet() const { return m_queueArnHasBeenSet; }
64 inline void SetQueueArn(const Aws::String& value) { m_queueArnHasBeenSet = true; m_queueArn = value; }
65 inline void SetQueueArn(Aws::String&& value) { m_queueArnHasBeenSet = true; m_queueArn = std::move(value); }
66 inline void SetQueueArn(const char* value) { m_queueArnHasBeenSet = true; m_queueArn.assign(value); }
67 inline Queue& WithQueueArn(const Aws::String& value) { SetQueueArn(value); return *this;}
68 inline Queue& WithQueueArn(Aws::String&& value) { SetQueueArn(std::move(value)); return *this;}
69 inline Queue& WithQueueArn(const char* value) { SetQueueArn(value); return *this;}
71
73
76 inline const Aws::String& GetQueueId() const{ return m_queueId; }
77 inline bool QueueIdHasBeenSet() const { return m_queueIdHasBeenSet; }
78 inline void SetQueueId(const Aws::String& value) { m_queueIdHasBeenSet = true; m_queueId = value; }
79 inline void SetQueueId(Aws::String&& value) { m_queueIdHasBeenSet = true; m_queueId = std::move(value); }
80 inline void SetQueueId(const char* value) { m_queueIdHasBeenSet = true; m_queueId.assign(value); }
81 inline Queue& WithQueueId(const Aws::String& value) { SetQueueId(value); return *this;}
82 inline Queue& WithQueueId(Aws::String&& value) { SetQueueId(std::move(value)); return *this;}
83 inline Queue& WithQueueId(const char* value) { SetQueueId(value); return *this;}
85
87
90 inline const Aws::String& GetDescription() const{ return m_description; }
91 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
92 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
93 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
94 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
95 inline Queue& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
96 inline Queue& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
97 inline Queue& WithDescription(const char* value) { SetDescription(value); return *this;}
99
101
104 inline const OutboundCallerConfig& GetOutboundCallerConfig() const{ return m_outboundCallerConfig; }
105 inline bool OutboundCallerConfigHasBeenSet() const { return m_outboundCallerConfigHasBeenSet; }
106 inline void SetOutboundCallerConfig(const OutboundCallerConfig& value) { m_outboundCallerConfigHasBeenSet = true; m_outboundCallerConfig = value; }
107 inline void SetOutboundCallerConfig(OutboundCallerConfig&& value) { m_outboundCallerConfigHasBeenSet = true; m_outboundCallerConfig = std::move(value); }
108 inline Queue& WithOutboundCallerConfig(const OutboundCallerConfig& value) { SetOutboundCallerConfig(value); return *this;}
109 inline Queue& WithOutboundCallerConfig(OutboundCallerConfig&& value) { SetOutboundCallerConfig(std::move(value)); return *this;}
111
113
116 inline const Aws::String& GetHoursOfOperationId() const{ return m_hoursOfOperationId; }
117 inline bool HoursOfOperationIdHasBeenSet() const { return m_hoursOfOperationIdHasBeenSet; }
118 inline void SetHoursOfOperationId(const Aws::String& value) { m_hoursOfOperationIdHasBeenSet = true; m_hoursOfOperationId = value; }
119 inline void SetHoursOfOperationId(Aws::String&& value) { m_hoursOfOperationIdHasBeenSet = true; m_hoursOfOperationId = std::move(value); }
120 inline void SetHoursOfOperationId(const char* value) { m_hoursOfOperationIdHasBeenSet = true; m_hoursOfOperationId.assign(value); }
121 inline Queue& WithHoursOfOperationId(const Aws::String& value) { SetHoursOfOperationId(value); return *this;}
122 inline Queue& WithHoursOfOperationId(Aws::String&& value) { SetHoursOfOperationId(std::move(value)); return *this;}
123 inline Queue& WithHoursOfOperationId(const char* value) { SetHoursOfOperationId(value); return *this;}
125
127
131 inline int GetMaxContacts() const{ return m_maxContacts; }
132 inline bool MaxContactsHasBeenSet() const { return m_maxContactsHasBeenSet; }
133 inline void SetMaxContacts(int value) { m_maxContactsHasBeenSet = true; m_maxContacts = value; }
134 inline Queue& WithMaxContacts(int value) { SetMaxContacts(value); return *this;}
136
138
141 inline const QueueStatus& GetStatus() const{ return m_status; }
142 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
143 inline void SetStatus(const QueueStatus& value) { m_statusHasBeenSet = true; m_status = value; }
144 inline void SetStatus(QueueStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
145 inline Queue& WithStatus(const QueueStatus& value) { SetStatus(value); return *this;}
146 inline Queue& WithStatus(QueueStatus&& value) { SetStatus(std::move(value)); return *this;}
148
150
154 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
155 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
156 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
157 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
158 inline Queue& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
159 inline Queue& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
160 inline Queue& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
161 inline Queue& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
162 inline Queue& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
163 inline Queue& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
164 inline Queue& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
165 inline Queue& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
166 inline Queue& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
168
170
173 inline const Aws::Utils::DateTime& GetLastModifiedTime() const{ return m_lastModifiedTime; }
174 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
175 inline void SetLastModifiedTime(const Aws::Utils::DateTime& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = value; }
176 inline void SetLastModifiedTime(Aws::Utils::DateTime&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::move(value); }
177 inline Queue& WithLastModifiedTime(const Aws::Utils::DateTime& value) { SetLastModifiedTime(value); return *this;}
178 inline Queue& WithLastModifiedTime(Aws::Utils::DateTime&& value) { SetLastModifiedTime(std::move(value)); return *this;}
180
182
185 inline const Aws::String& GetLastModifiedRegion() const{ return m_lastModifiedRegion; }
186 inline bool LastModifiedRegionHasBeenSet() const { return m_lastModifiedRegionHasBeenSet; }
187 inline void SetLastModifiedRegion(const Aws::String& value) { m_lastModifiedRegionHasBeenSet = true; m_lastModifiedRegion = value; }
188 inline void SetLastModifiedRegion(Aws::String&& value) { m_lastModifiedRegionHasBeenSet = true; m_lastModifiedRegion = std::move(value); }
189 inline void SetLastModifiedRegion(const char* value) { m_lastModifiedRegionHasBeenSet = true; m_lastModifiedRegion.assign(value); }
190 inline Queue& WithLastModifiedRegion(const Aws::String& value) { SetLastModifiedRegion(value); return *this;}
191 inline Queue& WithLastModifiedRegion(Aws::String&& value) { SetLastModifiedRegion(std::move(value)); return *this;}
192 inline Queue& WithLastModifiedRegion(const char* value) { SetLastModifiedRegion(value); return *this;}
194 private:
195
196 Aws::String m_name;
197 bool m_nameHasBeenSet = false;
198
199 Aws::String m_queueArn;
200 bool m_queueArnHasBeenSet = false;
201
202 Aws::String m_queueId;
203 bool m_queueIdHasBeenSet = false;
204
205 Aws::String m_description;
206 bool m_descriptionHasBeenSet = false;
207
208 OutboundCallerConfig m_outboundCallerConfig;
209 bool m_outboundCallerConfigHasBeenSet = false;
210
211 Aws::String m_hoursOfOperationId;
212 bool m_hoursOfOperationIdHasBeenSet = false;
213
214 int m_maxContacts;
215 bool m_maxContactsHasBeenSet = false;
216
217 QueueStatus m_status;
218 bool m_statusHasBeenSet = false;
219
221 bool m_tagsHasBeenSet = false;
222
223 Aws::Utils::DateTime m_lastModifiedTime;
224 bool m_lastModifiedTimeHasBeenSet = false;
225
226 Aws::String m_lastModifiedRegion;
227 bool m_lastModifiedRegionHasBeenSet = false;
228 };
229
230} // namespace Model
231} // namespace Connect
232} // namespace Aws
bool QueueArnHasBeenSet() const
Definition Queue.h:63
bool StatusHasBeenSet() const
Definition Queue.h:142
void SetQueueId(const char *value)
Definition Queue.h:80
bool HoursOfOperationIdHasBeenSet() const
Definition Queue.h:117
bool QueueIdHasBeenSet() const
Definition Queue.h:77
void SetName(const Aws::String &value)
Definition Queue.h:50
Queue & WithDescription(const char *value)
Definition Queue.h:97
Queue & WithQueueId(const char *value)
Definition Queue.h:83
void SetStatus(const QueueStatus &value)
Definition Queue.h:143
void SetDescription(const char *value)
Definition Queue.h:94
Queue & WithName(const char *value)
Definition Queue.h:55
Queue & WithStatus(QueueStatus &&value)
Definition Queue.h:146
Queue & AddTags(const Aws::String &key, Aws::String &&value)
Definition Queue.h:162
void SetHoursOfOperationId(const Aws::String &value)
Definition Queue.h:118
const Aws::String & GetLastModifiedRegion() const
Definition Queue.h:185
Queue & WithQueueId(const Aws::String &value)
Definition Queue.h:81
Queue & WithLastModifiedTime(Aws::Utils::DateTime &&value)
Definition Queue.h:178
Queue & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition Queue.h:158
bool NameHasBeenSet() const
Definition Queue.h:49
Queue & WithName(const Aws::String &value)
Definition Queue.h:53
Queue & WithHoursOfOperationId(const Aws::String &value)
Definition Queue.h:121
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition Queue.h:154
Queue & WithLastModifiedTime(const Aws::Utils::DateTime &value)
Definition Queue.h:177
void SetLastModifiedRegion(const Aws::String &value)
Definition Queue.h:187
Queue & AddTags(const char *key, const char *value)
Definition Queue.h:166
Queue & WithLastModifiedRegion(Aws::String &&value)
Definition Queue.h:191
Queue & AddTags(Aws::String &&key, const char *value)
Definition Queue.h:165
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition Queue.h:156
Queue & WithName(Aws::String &&value)
Definition Queue.h:54
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition Queue.h:157
void SetMaxContacts(int value)
Definition Queue.h:133
int GetMaxContacts() const
Definition Queue.h:131
Queue & WithStatus(const QueueStatus &value)
Definition Queue.h:145
Queue & WithMaxContacts(int value)
Definition Queue.h:134
void SetQueueArn(const Aws::String &value)
Definition Queue.h:64
void SetLastModifiedRegion(Aws::String &&value)
Definition Queue.h:188
const Aws::String & GetHoursOfOperationId() const
Definition Queue.h:116
Queue & AddTags(const char *key, Aws::String &&value)
Definition Queue.h:164
Queue & AddTags(Aws::String &&key, const Aws::String &value)
Definition Queue.h:161
void SetLastModifiedTime(const Aws::Utils::DateTime &value)
Definition Queue.h:175
bool OutboundCallerConfigHasBeenSet() const
Definition Queue.h:105
Queue & AddTags(const Aws::String &key, const Aws::String &value)
Definition Queue.h:160
Queue & WithQueueArn(Aws::String &&value)
Definition Queue.h:68
Queue & WithDescription(Aws::String &&value)
Definition Queue.h:96
Queue & WithQueueArn(const char *value)
Definition Queue.h:69
void SetHoursOfOperationId(Aws::String &&value)
Definition Queue.h:119
AWS_CONNECT_API Queue & operator=(Aws::Utils::Json::JsonView jsonValue)
Queue & AddTags(Aws::String &&key, Aws::String &&value)
Definition Queue.h:163
void SetName(Aws::String &&value)
Definition Queue.h:51
void SetQueueId(const Aws::String &value)
Definition Queue.h:78
Queue & WithOutboundCallerConfig(OutboundCallerConfig &&value)
Definition Queue.h:109
const Aws::String & GetName() const
Definition Queue.h:48
void SetHoursOfOperationId(const char *value)
Definition Queue.h:120
bool LastModifiedTimeHasBeenSet() const
Definition Queue.h:174
void SetDescription(const Aws::String &value)
Definition Queue.h:92
bool TagsHasBeenSet() const
Definition Queue.h:155
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetOutboundCallerConfig(const OutboundCallerConfig &value)
Definition Queue.h:106
AWS_CONNECT_API Queue()
Queue & WithLastModifiedRegion(const Aws::String &value)
Definition Queue.h:190
const Aws::String & GetQueueArn() const
Definition Queue.h:62
void SetQueueArn(Aws::String &&value)
Definition Queue.h:65
void SetName(const char *value)
Definition Queue.h:52
void SetLastModifiedTime(Aws::Utils::DateTime &&value)
Definition Queue.h:176
Queue & WithHoursOfOperationId(const char *value)
Definition Queue.h:123
const QueueStatus & GetStatus() const
Definition Queue.h:141
const Aws::String & GetQueueId() const
Definition Queue.h:76
Queue & WithOutboundCallerConfig(const OutboundCallerConfig &value)
Definition Queue.h:108
void SetOutboundCallerConfig(OutboundCallerConfig &&value)
Definition Queue.h:107
void SetQueueId(Aws::String &&value)
Definition Queue.h:79
void SetLastModifiedRegion(const char *value)
Definition Queue.h:189
const Aws::Utils::DateTime & GetLastModifiedTime() const
Definition Queue.h:173
Queue & WithDescription(const Aws::String &value)
Definition Queue.h:95
AWS_CONNECT_API Queue(Aws::Utils::Json::JsonView jsonValue)
void SetDescription(Aws::String &&value)
Definition Queue.h:93
Queue & WithQueueArn(const Aws::String &value)
Definition Queue.h:67
bool LastModifiedRegionHasBeenSet() const
Definition Queue.h:186
bool MaxContactsHasBeenSet() const
Definition Queue.h:132
Queue & WithLastModifiedRegion(const char *value)
Definition Queue.h:192
Queue & WithHoursOfOperationId(Aws::String &&value)
Definition Queue.h:122
void SetQueueArn(const char *value)
Definition Queue.h:66
bool DescriptionHasBeenSet() const
Definition Queue.h:91
const Aws::String & GetDescription() const
Definition Queue.h:90
Queue & WithQueueId(Aws::String &&value)
Definition Queue.h:82
Queue & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition Queue.h:159
const OutboundCallerConfig & GetOutboundCallerConfig() const
Definition Queue.h:104
void SetStatus(QueueStatus &&value)
Definition Queue.h:144
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