AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Instance.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/DirectoryType.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/connect/model/InstanceStatus.h>
12#include <aws/connect/model/InstanceStatusReason.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace Connect
27{
28namespace Model
29{
30
37 {
38 public:
39 AWS_CONNECT_API Instance();
40 AWS_CONNECT_API Instance(Aws::Utils::Json::JsonView jsonValue);
41 AWS_CONNECT_API Instance& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
51 inline const Aws::String& GetId() const{ return m_id; }
52 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
53 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
54 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
55 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
56 inline Instance& WithId(const Aws::String& value) { SetId(value); return *this;}
57 inline Instance& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
58 inline Instance& WithId(const char* value) { SetId(value); return *this;}
60
62
65 inline const Aws::String& GetArn() const{ return m_arn; }
66 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
67 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
68 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
69 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
70 inline Instance& WithArn(const Aws::String& value) { SetArn(value); return *this;}
71 inline Instance& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
72 inline Instance& WithArn(const char* value) { SetArn(value); return *this;}
74
76
79 inline const DirectoryType& GetIdentityManagementType() const{ return m_identityManagementType; }
80 inline bool IdentityManagementTypeHasBeenSet() const { return m_identityManagementTypeHasBeenSet; }
81 inline void SetIdentityManagementType(const DirectoryType& value) { m_identityManagementTypeHasBeenSet = true; m_identityManagementType = value; }
82 inline void SetIdentityManagementType(DirectoryType&& value) { m_identityManagementTypeHasBeenSet = true; m_identityManagementType = std::move(value); }
83 inline Instance& WithIdentityManagementType(const DirectoryType& value) { SetIdentityManagementType(value); return *this;}
84 inline Instance& WithIdentityManagementType(DirectoryType&& value) { SetIdentityManagementType(std::move(value)); return *this;}
86
88
91 inline const Aws::String& GetInstanceAlias() const{ return m_instanceAlias; }
92 inline bool InstanceAliasHasBeenSet() const { return m_instanceAliasHasBeenSet; }
93 inline void SetInstanceAlias(const Aws::String& value) { m_instanceAliasHasBeenSet = true; m_instanceAlias = value; }
94 inline void SetInstanceAlias(Aws::String&& value) { m_instanceAliasHasBeenSet = true; m_instanceAlias = std::move(value); }
95 inline void SetInstanceAlias(const char* value) { m_instanceAliasHasBeenSet = true; m_instanceAlias.assign(value); }
96 inline Instance& WithInstanceAlias(const Aws::String& value) { SetInstanceAlias(value); return *this;}
97 inline Instance& WithInstanceAlias(Aws::String&& value) { SetInstanceAlias(std::move(value)); return *this;}
98 inline Instance& WithInstanceAlias(const char* value) { SetInstanceAlias(value); return *this;}
100
102
105 inline const Aws::Utils::DateTime& GetCreatedTime() const{ return m_createdTime; }
106 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
107 inline void SetCreatedTime(const Aws::Utils::DateTime& value) { m_createdTimeHasBeenSet = true; m_createdTime = value; }
108 inline void SetCreatedTime(Aws::Utils::DateTime&& value) { m_createdTimeHasBeenSet = true; m_createdTime = std::move(value); }
109 inline Instance& WithCreatedTime(const Aws::Utils::DateTime& value) { SetCreatedTime(value); return *this;}
110 inline Instance& WithCreatedTime(Aws::Utils::DateTime&& value) { SetCreatedTime(std::move(value)); return *this;}
112
114
117 inline const Aws::String& GetServiceRole() const{ return m_serviceRole; }
118 inline bool ServiceRoleHasBeenSet() const { return m_serviceRoleHasBeenSet; }
119 inline void SetServiceRole(const Aws::String& value) { m_serviceRoleHasBeenSet = true; m_serviceRole = value; }
120 inline void SetServiceRole(Aws::String&& value) { m_serviceRoleHasBeenSet = true; m_serviceRole = std::move(value); }
121 inline void SetServiceRole(const char* value) { m_serviceRoleHasBeenSet = true; m_serviceRole.assign(value); }
122 inline Instance& WithServiceRole(const Aws::String& value) { SetServiceRole(value); return *this;}
123 inline Instance& WithServiceRole(Aws::String&& value) { SetServiceRole(std::move(value)); return *this;}
124 inline Instance& WithServiceRole(const char* value) { SetServiceRole(value); return *this;}
126
128
131 inline const InstanceStatus& GetInstanceStatus() const{ return m_instanceStatus; }
132 inline bool InstanceStatusHasBeenSet() const { return m_instanceStatusHasBeenSet; }
133 inline void SetInstanceStatus(const InstanceStatus& value) { m_instanceStatusHasBeenSet = true; m_instanceStatus = value; }
134 inline void SetInstanceStatus(InstanceStatus&& value) { m_instanceStatusHasBeenSet = true; m_instanceStatus = std::move(value); }
135 inline Instance& WithInstanceStatus(const InstanceStatus& value) { SetInstanceStatus(value); return *this;}
136 inline Instance& WithInstanceStatus(InstanceStatus&& value) { SetInstanceStatus(std::move(value)); return *this;}
138
140
143 inline const InstanceStatusReason& GetStatusReason() const{ return m_statusReason; }
144 inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; }
145 inline void SetStatusReason(const InstanceStatusReason& value) { m_statusReasonHasBeenSet = true; m_statusReason = value; }
146 inline void SetStatusReason(InstanceStatusReason&& value) { m_statusReasonHasBeenSet = true; m_statusReason = std::move(value); }
147 inline Instance& WithStatusReason(const InstanceStatusReason& value) { SetStatusReason(value); return *this;}
148 inline Instance& WithStatusReason(InstanceStatusReason&& value) { SetStatusReason(std::move(value)); return *this;}
150
152
155 inline bool GetInboundCallsEnabled() const{ return m_inboundCallsEnabled; }
156 inline bool InboundCallsEnabledHasBeenSet() const { return m_inboundCallsEnabledHasBeenSet; }
157 inline void SetInboundCallsEnabled(bool value) { m_inboundCallsEnabledHasBeenSet = true; m_inboundCallsEnabled = value; }
158 inline Instance& WithInboundCallsEnabled(bool value) { SetInboundCallsEnabled(value); return *this;}
160
162
165 inline bool GetOutboundCallsEnabled() const{ return m_outboundCallsEnabled; }
166 inline bool OutboundCallsEnabledHasBeenSet() const { return m_outboundCallsEnabledHasBeenSet; }
167 inline void SetOutboundCallsEnabled(bool value) { m_outboundCallsEnabledHasBeenSet = true; m_outboundCallsEnabled = value; }
168 inline Instance& WithOutboundCallsEnabled(bool value) { SetOutboundCallsEnabled(value); return *this;}
170
172
176 inline const Aws::String& GetInstanceAccessUrl() const{ return m_instanceAccessUrl; }
177 inline bool InstanceAccessUrlHasBeenSet() const { return m_instanceAccessUrlHasBeenSet; }
178 inline void SetInstanceAccessUrl(const Aws::String& value) { m_instanceAccessUrlHasBeenSet = true; m_instanceAccessUrl = value; }
179 inline void SetInstanceAccessUrl(Aws::String&& value) { m_instanceAccessUrlHasBeenSet = true; m_instanceAccessUrl = std::move(value); }
180 inline void SetInstanceAccessUrl(const char* value) { m_instanceAccessUrlHasBeenSet = true; m_instanceAccessUrl.assign(value); }
181 inline Instance& WithInstanceAccessUrl(const Aws::String& value) { SetInstanceAccessUrl(value); return *this;}
182 inline Instance& WithInstanceAccessUrl(Aws::String&& value) { SetInstanceAccessUrl(std::move(value)); return *this;}
183 inline Instance& WithInstanceAccessUrl(const char* value) { SetInstanceAccessUrl(value); return *this;}
185
187
190 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
191 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
192 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
193 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
194 inline Instance& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
195 inline Instance& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
196 inline Instance& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
197 inline Instance& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
198 inline Instance& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
199 inline Instance& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
200 inline Instance& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
201 inline Instance& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
202 inline Instance& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
204 private:
205
206 Aws::String m_id;
207 bool m_idHasBeenSet = false;
208
209 Aws::String m_arn;
210 bool m_arnHasBeenSet = false;
211
212 DirectoryType m_identityManagementType;
213 bool m_identityManagementTypeHasBeenSet = false;
214
215 Aws::String m_instanceAlias;
216 bool m_instanceAliasHasBeenSet = false;
217
218 Aws::Utils::DateTime m_createdTime;
219 bool m_createdTimeHasBeenSet = false;
220
221 Aws::String m_serviceRole;
222 bool m_serviceRoleHasBeenSet = false;
223
224 InstanceStatus m_instanceStatus;
225 bool m_instanceStatusHasBeenSet = false;
226
227 InstanceStatusReason m_statusReason;
228 bool m_statusReasonHasBeenSet = false;
229
230 bool m_inboundCallsEnabled;
231 bool m_inboundCallsEnabledHasBeenSet = false;
232
233 bool m_outboundCallsEnabled;
234 bool m_outboundCallsEnabledHasBeenSet = false;
235
236 Aws::String m_instanceAccessUrl;
237 bool m_instanceAccessUrlHasBeenSet = false;
238
240 bool m_tagsHasBeenSet = false;
241 };
242
243} // namespace Model
244} // namespace Connect
245} // namespace Aws
void SetInstanceAlias(const char *value)
Definition Instance.h:95
Instance & WithId(Aws::String &&value)
Definition Instance.h:57
Instance & WithCreatedTime(const Aws::Utils::DateTime &value)
Definition Instance.h:109
Instance & WithInstanceStatus(const InstanceStatus &value)
Definition Instance.h:135
void SetServiceRole(const Aws::String &value)
Definition Instance.h:119
Instance & WithInstanceAlias(const char *value)
Definition Instance.h:98
void SetCreatedTime(Aws::Utils::DateTime &&value)
Definition Instance.h:108
bool OutboundCallsEnabledHasBeenSet() const
Definition Instance.h:166
Instance & AddTags(const char *key, Aws::String &&value)
Definition Instance.h:200
Instance & WithCreatedTime(Aws::Utils::DateTime &&value)
Definition Instance.h:110
bool InstanceStatusHasBeenSet() const
Definition Instance.h:132
const Aws::String & GetInstanceAlias() const
Definition Instance.h:91
Instance & AddTags(Aws::String &&key, const char *value)
Definition Instance.h:201
bool CreatedTimeHasBeenSet() const
Definition Instance.h:106
const Aws::String & GetArn() const
Definition Instance.h:65
const Aws::Utils::DateTime & GetCreatedTime() const
Definition Instance.h:105
Instance & WithArn(const Aws::String &value)
Definition Instance.h:70
Instance & WithOutboundCallsEnabled(bool value)
Definition Instance.h:168
void SetServiceRole(Aws::String &&value)
Definition Instance.h:120
void SetInstanceAccessUrl(const Aws::String &value)
Definition Instance.h:178
void SetIdentityManagementType(const DirectoryType &value)
Definition Instance.h:81
Instance & WithInstanceStatus(InstanceStatus &&value)
Definition Instance.h:136
Instance & WithInstanceAccessUrl(Aws::String &&value)
Definition Instance.h:182
void SetId(const Aws::String &value)
Definition Instance.h:53
Instance & WithServiceRole(const char *value)
Definition Instance.h:124
void SetArn(const Aws::String &value)
Definition Instance.h:67
const Aws::String & GetInstanceAccessUrl() const
Definition Instance.h:176
const Aws::String & GetId() const
Definition Instance.h:51
AWS_CONNECT_API Instance()
Instance & AddTags(Aws::String &&key, Aws::String &&value)
Definition Instance.h:199
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetInstanceStatus(const InstanceStatus &value)
Definition Instance.h:133
void SetInstanceAlias(const Aws::String &value)
Definition Instance.h:93
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition Instance.h:192
Instance & WithServiceRole(const Aws::String &value)
Definition Instance.h:122
Instance & WithArn(Aws::String &&value)
Definition Instance.h:71
void SetArn(Aws::String &&value)
Definition Instance.h:68
Instance & WithId(const char *value)
Definition Instance.h:58
const InstanceStatusReason & GetStatusReason() const
Definition Instance.h:143
void SetInboundCallsEnabled(bool value)
Definition Instance.h:157
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition Instance.h:190
void SetOutboundCallsEnabled(bool value)
Definition Instance.h:167
Instance & AddTags(Aws::String &&key, const Aws::String &value)
Definition Instance.h:197
void SetInstanceAlias(Aws::String &&value)
Definition Instance.h:94
Instance & WithArn(const char *value)
Definition Instance.h:72
Instance & WithInstanceAccessUrl(const Aws::String &value)
Definition Instance.h:181
bool GetInboundCallsEnabled() const
Definition Instance.h:155
void SetInstanceAccessUrl(const char *value)
Definition Instance.h:180
Instance & AddTags(const Aws::String &key, Aws::String &&value)
Definition Instance.h:198
Instance & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition Instance.h:194
Instance & WithId(const Aws::String &value)
Definition Instance.h:56
AWS_CONNECT_API Instance & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CONNECT_API Instance(Aws::Utils::Json::JsonView jsonValue)
Instance & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition Instance.h:195
void SetId(const char *value)
Definition Instance.h:55
void SetArn(const char *value)
Definition Instance.h:69
Instance & WithStatusReason(InstanceStatusReason &&value)
Definition Instance.h:148
const Aws::String & GetServiceRole() const
Definition Instance.h:117
Instance & WithInstanceAlias(const Aws::String &value)
Definition Instance.h:96
Instance & WithStatusReason(const InstanceStatusReason &value)
Definition Instance.h:147
Instance & WithIdentityManagementType(const DirectoryType &value)
Definition Instance.h:83
void SetStatusReason(const InstanceStatusReason &value)
Definition Instance.h:145
void SetIdentityManagementType(DirectoryType &&value)
Definition Instance.h:82
void SetInstanceAccessUrl(Aws::String &&value)
Definition Instance.h:179
bool InstanceAliasHasBeenSet() const
Definition Instance.h:92
Instance & AddTags(const char *key, const char *value)
Definition Instance.h:202
Instance & AddTags(const Aws::String &key, const Aws::String &value)
Definition Instance.h:196
const DirectoryType & GetIdentityManagementType() const
Definition Instance.h:79
bool InstanceAccessUrlHasBeenSet() const
Definition Instance.h:177
void SetStatusReason(InstanceStatusReason &&value)
Definition Instance.h:146
Instance & WithServiceRole(Aws::String &&value)
Definition Instance.h:123
void SetId(Aws::String &&value)
Definition Instance.h:54
bool ServiceRoleHasBeenSet() const
Definition Instance.h:118
void SetInstanceStatus(InstanceStatus &&value)
Definition Instance.h:134
bool GetOutboundCallsEnabled() const
Definition Instance.h:165
Instance & WithInstanceAccessUrl(const char *value)
Definition Instance.h:183
bool IdentityManagementTypeHasBeenSet() const
Definition Instance.h:80
void SetCreatedTime(const Aws::Utils::DateTime &value)
Definition Instance.h:107
Instance & WithInboundCallsEnabled(bool value)
Definition Instance.h:158
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition Instance.h:193
Instance & WithInstanceAlias(Aws::String &&value)
Definition Instance.h:97
Instance & WithIdentityManagementType(DirectoryType &&value)
Definition Instance.h:84
const InstanceStatus & GetInstanceStatus() const
Definition Instance.h:131
bool InboundCallsEnabledHasBeenSet() const
Definition Instance.h:156
bool StatusReasonHasBeenSet() const
Definition Instance.h:144
void SetServiceRole(const char *value)
Definition Instance.h:121
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