AWS SDK for C++  1.9.161
AWS SDK for C++
Instance.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace Utils
18 {
19 namespace Json
20 {
21  class JsonValue;
22  class JsonView;
23 } // namespace Json
24 } // namespace Utils
25 namespace Connect
26 {
27 namespace Model
28 {
29 
36  {
37  public:
42 
43 
48  inline const Aws::String& GetId() const{ return m_id; }
49 
54  inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
55 
60  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
61 
66  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
67 
72  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
73 
78  inline Instance& WithId(const Aws::String& value) { SetId(value); return *this;}
79 
84  inline Instance& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
85 
90  inline Instance& WithId(const char* value) { SetId(value); return *this;}
91 
92 
96  inline const Aws::String& GetArn() const{ return m_arn; }
97 
101  inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
102 
106  inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
107 
111  inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
112 
116  inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
117 
121  inline Instance& WithArn(const Aws::String& value) { SetArn(value); return *this;}
122 
126  inline Instance& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
127 
131  inline Instance& WithArn(const char* value) { SetArn(value); return *this;}
132 
133 
137  inline const DirectoryType& GetIdentityManagementType() const{ return m_identityManagementType; }
138 
142  inline bool IdentityManagementTypeHasBeenSet() const { return m_identityManagementTypeHasBeenSet; }
143 
147  inline void SetIdentityManagementType(const DirectoryType& value) { m_identityManagementTypeHasBeenSet = true; m_identityManagementType = value; }
148 
152  inline void SetIdentityManagementType(DirectoryType&& value) { m_identityManagementTypeHasBeenSet = true; m_identityManagementType = std::move(value); }
153 
157  inline Instance& WithIdentityManagementType(const DirectoryType& value) { SetIdentityManagementType(value); return *this;}
158 
162  inline Instance& WithIdentityManagementType(DirectoryType&& value) { SetIdentityManagementType(std::move(value)); return *this;}
163 
164 
168  inline const Aws::String& GetInstanceAlias() const{ return m_instanceAlias; }
169 
173  inline bool InstanceAliasHasBeenSet() const { return m_instanceAliasHasBeenSet; }
174 
178  inline void SetInstanceAlias(const Aws::String& value) { m_instanceAliasHasBeenSet = true; m_instanceAlias = value; }
179 
183  inline void SetInstanceAlias(Aws::String&& value) { m_instanceAliasHasBeenSet = true; m_instanceAlias = std::move(value); }
184 
188  inline void SetInstanceAlias(const char* value) { m_instanceAliasHasBeenSet = true; m_instanceAlias.assign(value); }
189 
193  inline Instance& WithInstanceAlias(const Aws::String& value) { SetInstanceAlias(value); return *this;}
194 
198  inline Instance& WithInstanceAlias(Aws::String&& value) { SetInstanceAlias(std::move(value)); return *this;}
199 
203  inline Instance& WithInstanceAlias(const char* value) { SetInstanceAlias(value); return *this;}
204 
205 
209  inline const Aws::Utils::DateTime& GetCreatedTime() const{ return m_createdTime; }
210 
214  inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
215 
219  inline void SetCreatedTime(const Aws::Utils::DateTime& value) { m_createdTimeHasBeenSet = true; m_createdTime = value; }
220 
224  inline void SetCreatedTime(Aws::Utils::DateTime&& value) { m_createdTimeHasBeenSet = true; m_createdTime = std::move(value); }
225 
229  inline Instance& WithCreatedTime(const Aws::Utils::DateTime& value) { SetCreatedTime(value); return *this;}
230 
234  inline Instance& WithCreatedTime(Aws::Utils::DateTime&& value) { SetCreatedTime(std::move(value)); return *this;}
235 
236 
240  inline const Aws::String& GetServiceRole() const{ return m_serviceRole; }
241 
245  inline bool ServiceRoleHasBeenSet() const { return m_serviceRoleHasBeenSet; }
246 
250  inline void SetServiceRole(const Aws::String& value) { m_serviceRoleHasBeenSet = true; m_serviceRole = value; }
251 
255  inline void SetServiceRole(Aws::String&& value) { m_serviceRoleHasBeenSet = true; m_serviceRole = std::move(value); }
256 
260  inline void SetServiceRole(const char* value) { m_serviceRoleHasBeenSet = true; m_serviceRole.assign(value); }
261 
265  inline Instance& WithServiceRole(const Aws::String& value) { SetServiceRole(value); return *this;}
266 
270  inline Instance& WithServiceRole(Aws::String&& value) { SetServiceRole(std::move(value)); return *this;}
271 
275  inline Instance& WithServiceRole(const char* value) { SetServiceRole(value); return *this;}
276 
277 
281  inline const InstanceStatus& GetInstanceStatus() const{ return m_instanceStatus; }
282 
286  inline bool InstanceStatusHasBeenSet() const { return m_instanceStatusHasBeenSet; }
287 
291  inline void SetInstanceStatus(const InstanceStatus& value) { m_instanceStatusHasBeenSet = true; m_instanceStatus = value; }
292 
296  inline void SetInstanceStatus(InstanceStatus&& value) { m_instanceStatusHasBeenSet = true; m_instanceStatus = std::move(value); }
297 
301  inline Instance& WithInstanceStatus(const InstanceStatus& value) { SetInstanceStatus(value); return *this;}
302 
306  inline Instance& WithInstanceStatus(InstanceStatus&& value) { SetInstanceStatus(std::move(value)); return *this;}
307 
308 
312  inline const InstanceStatusReason& GetStatusReason() const{ return m_statusReason; }
313 
317  inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; }
318 
322  inline void SetStatusReason(const InstanceStatusReason& value) { m_statusReasonHasBeenSet = true; m_statusReason = value; }
323 
327  inline void SetStatusReason(InstanceStatusReason&& value) { m_statusReasonHasBeenSet = true; m_statusReason = std::move(value); }
328 
332  inline Instance& WithStatusReason(const InstanceStatusReason& value) { SetStatusReason(value); return *this;}
333 
337  inline Instance& WithStatusReason(InstanceStatusReason&& value) { SetStatusReason(std::move(value)); return *this;}
338 
339 
343  inline bool GetInboundCallsEnabled() const{ return m_inboundCallsEnabled; }
344 
348  inline bool InboundCallsEnabledHasBeenSet() const { return m_inboundCallsEnabledHasBeenSet; }
349 
353  inline void SetInboundCallsEnabled(bool value) { m_inboundCallsEnabledHasBeenSet = true; m_inboundCallsEnabled = value; }
354 
358  inline Instance& WithInboundCallsEnabled(bool value) { SetInboundCallsEnabled(value); return *this;}
359 
360 
364  inline bool GetOutboundCallsEnabled() const{ return m_outboundCallsEnabled; }
365 
369  inline bool OutboundCallsEnabledHasBeenSet() const { return m_outboundCallsEnabledHasBeenSet; }
370 
374  inline void SetOutboundCallsEnabled(bool value) { m_outboundCallsEnabledHasBeenSet = true; m_outboundCallsEnabled = value; }
375 
379  inline Instance& WithOutboundCallsEnabled(bool value) { SetOutboundCallsEnabled(value); return *this;}
380 
381  private:
382 
383  Aws::String m_id;
384  bool m_idHasBeenSet;
385 
386  Aws::String m_arn;
387  bool m_arnHasBeenSet;
388 
389  DirectoryType m_identityManagementType;
390  bool m_identityManagementTypeHasBeenSet;
391 
392  Aws::String m_instanceAlias;
393  bool m_instanceAliasHasBeenSet;
394 
395  Aws::Utils::DateTime m_createdTime;
396  bool m_createdTimeHasBeenSet;
397 
398  Aws::String m_serviceRole;
399  bool m_serviceRoleHasBeenSet;
400 
401  InstanceStatus m_instanceStatus;
402  bool m_instanceStatusHasBeenSet;
403 
404  InstanceStatusReason m_statusReason;
405  bool m_statusReasonHasBeenSet;
406 
407  bool m_inboundCallsEnabled;
408  bool m_inboundCallsEnabledHasBeenSet;
409 
410  bool m_outboundCallsEnabled;
411  bool m_outboundCallsEnabledHasBeenSet;
412  };
413 
414 } // namespace Model
415 } // namespace Connect
416 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::Connect::Model::Instance::GetArn
const Aws::String & GetArn() const
Definition: Instance.h:96
Aws::Connect::Model::Instance::WithStatusReason
Instance & WithStatusReason(const InstanceStatusReason &value)
Definition: Instance.h:332
Aws::Connect::Model::Instance::GetInstanceAlias
const Aws::String & GetInstanceAlias() const
Definition: Instance.h:168
Aws::Connect::Model::Instance::ArnHasBeenSet
bool ArnHasBeenSet() const
Definition: Instance.h:101
Aws::Connect::Model::Instance::Instance
Instance(Aws::Utils::Json::JsonView jsonValue)
Aws::Connect::Model::Instance::WithArn
Instance & WithArn(const Aws::String &value)
Definition: Instance.h:121
Aws::Connect::Model::Instance::WithStatusReason
Instance & WithStatusReason(InstanceStatusReason &&value)
Definition: Instance.h:337
Aws::Connect::Model::Instance::OutboundCallsEnabledHasBeenSet
bool OutboundCallsEnabledHasBeenSet() const
Definition: Instance.h:369
Aws::Connect::Model::Instance::WithCreatedTime
Instance & WithCreatedTime(Aws::Utils::DateTime &&value)
Definition: Instance.h:234
Aws::Connect::Model::Instance::SetId
void SetId(const Aws::String &value)
Definition: Instance.h:60
Aws::Connect::Model::Instance::SetArn
void SetArn(const char *value)
Definition: Instance.h:116
Aws::Connect::Model::Instance::SetInstanceAlias
void SetInstanceAlias(const char *value)
Definition: Instance.h:188
Aws::Connect::Model::Instance::SetInstanceAlias
void SetInstanceAlias(const Aws::String &value)
Definition: Instance.h:178
Aws::Connect::Model::Instance::GetStatusReason
const InstanceStatusReason & GetStatusReason() const
Definition: Instance.h:312
DirectoryType.h
Aws::Connect::Model::Instance::IdHasBeenSet
bool IdHasBeenSet() const
Definition: Instance.h:54
Aws::Connect::Model::Instance::GetInboundCallsEnabled
bool GetInboundCallsEnabled() const
Definition: Instance.h:343
DateTime.h
Aws::Connect::Model::Instance::SetId
void SetId(const char *value)
Definition: Instance.h:72
Aws::Connect::Model::Instance::SetInstanceAlias
void SetInstanceAlias(Aws::String &&value)
Definition: Instance.h:183
Aws::Connect::Model::Instance::SetServiceRole
void SetServiceRole(Aws::String &&value)
Definition: Instance.h:255
Aws::Connect::Model::Instance::ServiceRoleHasBeenSet
bool ServiceRoleHasBeenSet() const
Definition: Instance.h:245
Aws::Connect::Model::Instance::WithIdentityManagementType
Instance & WithIdentityManagementType(const DirectoryType &value)
Definition: Instance.h:157
Aws::Connect::Model::Instance::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Connect::Model::Instance
Definition: Instance.h:36
Aws::Connect::Model::Instance::SetArn
void SetArn(const Aws::String &value)
Definition: Instance.h:106
Aws::Connect::Model::Instance::WithInstanceAlias
Instance & WithInstanceAlias(const char *value)
Definition: Instance.h:203
Aws::Connect::Model::Instance::WithInstanceStatus
Instance & WithInstanceStatus(const InstanceStatus &value)
Definition: Instance.h:301
Aws::Connect::Model::InstanceStatusReason
Definition: InstanceStatusReason.h:33
Aws::Connect::Model::Instance::GetIdentityManagementType
const DirectoryType & GetIdentityManagementType() const
Definition: Instance.h:137
Aws::Connect::Model::Instance::WithId
Instance & WithId(const char *value)
Definition: Instance.h:90
Aws::Connect::Model::Instance::InstanceAliasHasBeenSet
bool InstanceAliasHasBeenSet() const
Definition: Instance.h:173
Aws::Connect::Model::Instance::Instance
Instance()
Aws::Connect::Model::Instance::operator=
Instance & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Connect::Model::Instance::WithOutboundCallsEnabled
Instance & WithOutboundCallsEnabled(bool value)
Definition: Instance.h:379
Aws::Connect::Model::Instance::WithInstanceAlias
Instance & WithInstanceAlias(const Aws::String &value)
Definition: Instance.h:193
Aws::Connect::Model::Instance::SetStatusReason
void SetStatusReason(const InstanceStatusReason &value)
Definition: Instance.h:322
Aws::Connect::Model::Instance::GetId
const Aws::String & GetId() const
Definition: Instance.h:48
Aws::Connect::Model::Instance::SetArn
void SetArn(Aws::String &&value)
Definition: Instance.h:111
Aws::Connect::Model::Instance::SetServiceRole
void SetServiceRole(const Aws::String &value)
Definition: Instance.h:250
Aws::Connect::Model::Instance::WithCreatedTime
Instance & WithCreatedTime(const Aws::Utils::DateTime &value)
Definition: Instance.h:229
Aws::Connect::Model::Instance::WithId
Instance & WithId(Aws::String &&value)
Definition: Instance.h:84
Aws::Connect::Model::Instance::WithId
Instance & WithId(const Aws::String &value)
Definition: Instance.h:78
Aws::Connect::Model::Instance::SetId
void SetId(Aws::String &&value)
Definition: Instance.h:66
Aws::Connect::Model::Instance::IdentityManagementTypeHasBeenSet
bool IdentityManagementTypeHasBeenSet() const
Definition: Instance.h:142
Aws::Connect::Model::Instance::SetInboundCallsEnabled
void SetInboundCallsEnabled(bool value)
Definition: Instance.h:353
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Connect::Model::Instance::WithIdentityManagementType
Instance & WithIdentityManagementType(DirectoryType &&value)
Definition: Instance.h:162
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
InstanceStatus.h
Aws::Connect::Model::Instance::SetIdentityManagementType
void SetIdentityManagementType(const DirectoryType &value)
Definition: Instance.h:147
Aws::Connect::Model::Instance::SetServiceRole
void SetServiceRole(const char *value)
Definition: Instance.h:260
Aws::Connect::Model::DirectoryType
DirectoryType
Definition: DirectoryType.h:17
Aws::Connect::Model::Instance::WithArn
Instance & WithArn(Aws::String &&value)
Definition: Instance.h:126
Aws::Connect::Model::Instance::StatusReasonHasBeenSet
bool StatusReasonHasBeenSet() const
Definition: Instance.h:317
Aws::Connect::Model::Instance::WithInboundCallsEnabled
Instance & WithInboundCallsEnabled(bool value)
Definition: Instance.h:358
Aws::Connect::Model::Instance::SetStatusReason
void SetStatusReason(InstanceStatusReason &&value)
Definition: Instance.h:327
Aws::Connect::Model::Instance::GetServiceRole
const Aws::String & GetServiceRole() const
Definition: Instance.h:240
Aws::Connect::Model::InstanceStatus
InstanceStatus
Definition: InstanceStatus.h:17
Aws::Connect::Model::Instance::WithInstanceStatus
Instance & WithInstanceStatus(InstanceStatus &&value)
Definition: Instance.h:306
Aws::Connect::Model::Instance::SetIdentityManagementType
void SetIdentityManagementType(DirectoryType &&value)
Definition: Instance.h:152
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::Connect::Model::Instance::WithServiceRole
Instance & WithServiceRole(Aws::String &&value)
Definition: Instance.h:270
Aws::Connect::Model::Instance::InboundCallsEnabledHasBeenSet
bool InboundCallsEnabledHasBeenSet() const
Definition: Instance.h:348
Aws::Connect::Model::Instance::InstanceStatusHasBeenSet
bool InstanceStatusHasBeenSet() const
Definition: Instance.h:286
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Connect::Model::Instance::SetInstanceStatus
void SetInstanceStatus(InstanceStatus &&value)
Definition: Instance.h:296
Aws::Connect::Model::Instance::CreatedTimeHasBeenSet
bool CreatedTimeHasBeenSet() const
Definition: Instance.h:214
Aws::Connect::Model::Instance::GetOutboundCallsEnabled
bool GetOutboundCallsEnabled() const
Definition: Instance.h:364
Aws::Connect::Model::Instance::WithInstanceAlias
Instance & WithInstanceAlias(Aws::String &&value)
Definition: Instance.h:198
AWS_CONNECT_API
#define AWS_CONNECT_API
Definition: Connect_EXPORTS.h:28
Aws::Connect::Model::Instance::WithServiceRole
Instance & WithServiceRole(const Aws::String &value)
Definition: Instance.h:265
InstanceStatusReason.h
Aws::Connect::Model::Instance::WithArn
Instance & WithArn(const char *value)
Definition: Instance.h:131
Aws::Connect::Model::Instance::SetCreatedTime
void SetCreatedTime(Aws::Utils::DateTime &&value)
Definition: Instance.h:224
Connect_EXPORTS.h
Aws::Connect::Model::Instance::SetOutboundCallsEnabled
void SetOutboundCallsEnabled(bool value)
Definition: Instance.h:374
Aws::Connect::Model::Instance::GetInstanceStatus
const InstanceStatus & GetInstanceStatus() const
Definition: Instance.h:281
Aws::Connect::Model::Instance::GetCreatedTime
const Aws::Utils::DateTime & GetCreatedTime() const
Definition: Instance.h:209
Aws::Connect::Model::Instance::WithServiceRole
Instance & WithServiceRole(const char *value)
Definition: Instance.h:275
Aws::Connect::Model::Instance::SetInstanceStatus
void SetInstanceStatus(const InstanceStatus &value)
Definition: Instance.h:291
Aws::Connect::Model::Instance::SetCreatedTime
void SetCreatedTime(const Aws::Utils::DateTime &value)
Definition: Instance.h:219