AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
InstanceSummary.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 <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Connect
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_CONNECT_API InstanceSummary();
38 AWS_CONNECT_API InstanceSummary(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetId() const{ return m_id; }
48 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
49 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
50 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
51 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
52 inline InstanceSummary& WithId(const Aws::String& value) { SetId(value); return *this;}
53 inline InstanceSummary& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
54 inline InstanceSummary& WithId(const char* value) { SetId(value); return *this;}
56
58
61 inline const Aws::String& GetArn() const{ return m_arn; }
62 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
63 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
64 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
65 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
66 inline InstanceSummary& WithArn(const Aws::String& value) { SetArn(value); return *this;}
67 inline InstanceSummary& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
68 inline InstanceSummary& WithArn(const char* value) { SetArn(value); return *this;}
70
72
75 inline const DirectoryType& GetIdentityManagementType() const{ return m_identityManagementType; }
76 inline bool IdentityManagementTypeHasBeenSet() const { return m_identityManagementTypeHasBeenSet; }
77 inline void SetIdentityManagementType(const DirectoryType& value) { m_identityManagementTypeHasBeenSet = true; m_identityManagementType = value; }
78 inline void SetIdentityManagementType(DirectoryType&& value) { m_identityManagementTypeHasBeenSet = true; m_identityManagementType = std::move(value); }
80 inline InstanceSummary& WithIdentityManagementType(DirectoryType&& value) { SetIdentityManagementType(std::move(value)); return *this;}
82
84
87 inline const Aws::String& GetInstanceAlias() const{ return m_instanceAlias; }
88 inline bool InstanceAliasHasBeenSet() const { return m_instanceAliasHasBeenSet; }
89 inline void SetInstanceAlias(const Aws::String& value) { m_instanceAliasHasBeenSet = true; m_instanceAlias = value; }
90 inline void SetInstanceAlias(Aws::String&& value) { m_instanceAliasHasBeenSet = true; m_instanceAlias = std::move(value); }
91 inline void SetInstanceAlias(const char* value) { m_instanceAliasHasBeenSet = true; m_instanceAlias.assign(value); }
92 inline InstanceSummary& WithInstanceAlias(const Aws::String& value) { SetInstanceAlias(value); return *this;}
93 inline InstanceSummary& WithInstanceAlias(Aws::String&& value) { SetInstanceAlias(std::move(value)); return *this;}
94 inline InstanceSummary& WithInstanceAlias(const char* value) { SetInstanceAlias(value); return *this;}
96
98
101 inline const Aws::Utils::DateTime& GetCreatedTime() const{ return m_createdTime; }
102 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
103 inline void SetCreatedTime(const Aws::Utils::DateTime& value) { m_createdTimeHasBeenSet = true; m_createdTime = value; }
104 inline void SetCreatedTime(Aws::Utils::DateTime&& value) { m_createdTimeHasBeenSet = true; m_createdTime = std::move(value); }
105 inline InstanceSummary& WithCreatedTime(const Aws::Utils::DateTime& value) { SetCreatedTime(value); return *this;}
106 inline InstanceSummary& WithCreatedTime(Aws::Utils::DateTime&& value) { SetCreatedTime(std::move(value)); return *this;}
108
110
113 inline const Aws::String& GetServiceRole() const{ return m_serviceRole; }
114 inline bool ServiceRoleHasBeenSet() const { return m_serviceRoleHasBeenSet; }
115 inline void SetServiceRole(const Aws::String& value) { m_serviceRoleHasBeenSet = true; m_serviceRole = value; }
116 inline void SetServiceRole(Aws::String&& value) { m_serviceRoleHasBeenSet = true; m_serviceRole = std::move(value); }
117 inline void SetServiceRole(const char* value) { m_serviceRoleHasBeenSet = true; m_serviceRole.assign(value); }
118 inline InstanceSummary& WithServiceRole(const Aws::String& value) { SetServiceRole(value); return *this;}
119 inline InstanceSummary& WithServiceRole(Aws::String&& value) { SetServiceRole(std::move(value)); return *this;}
120 inline InstanceSummary& WithServiceRole(const char* value) { SetServiceRole(value); return *this;}
122
124
127 inline const InstanceStatus& GetInstanceStatus() const{ return m_instanceStatus; }
128 inline bool InstanceStatusHasBeenSet() const { return m_instanceStatusHasBeenSet; }
129 inline void SetInstanceStatus(const InstanceStatus& value) { m_instanceStatusHasBeenSet = true; m_instanceStatus = value; }
130 inline void SetInstanceStatus(InstanceStatus&& value) { m_instanceStatusHasBeenSet = true; m_instanceStatus = std::move(value); }
131 inline InstanceSummary& WithInstanceStatus(const InstanceStatus& value) { SetInstanceStatus(value); return *this;}
132 inline InstanceSummary& WithInstanceStatus(InstanceStatus&& value) { SetInstanceStatus(std::move(value)); return *this;}
134
136
139 inline bool GetInboundCallsEnabled() const{ return m_inboundCallsEnabled; }
140 inline bool InboundCallsEnabledHasBeenSet() const { return m_inboundCallsEnabledHasBeenSet; }
141 inline void SetInboundCallsEnabled(bool value) { m_inboundCallsEnabledHasBeenSet = true; m_inboundCallsEnabled = value; }
142 inline InstanceSummary& WithInboundCallsEnabled(bool value) { SetInboundCallsEnabled(value); return *this;}
144
146
149 inline bool GetOutboundCallsEnabled() const{ return m_outboundCallsEnabled; }
150 inline bool OutboundCallsEnabledHasBeenSet() const { return m_outboundCallsEnabledHasBeenSet; }
151 inline void SetOutboundCallsEnabled(bool value) { m_outboundCallsEnabledHasBeenSet = true; m_outboundCallsEnabled = value; }
152 inline InstanceSummary& WithOutboundCallsEnabled(bool value) { SetOutboundCallsEnabled(value); return *this;}
154
156
160 inline const Aws::String& GetInstanceAccessUrl() const{ return m_instanceAccessUrl; }
161 inline bool InstanceAccessUrlHasBeenSet() const { return m_instanceAccessUrlHasBeenSet; }
162 inline void SetInstanceAccessUrl(const Aws::String& value) { m_instanceAccessUrlHasBeenSet = true; m_instanceAccessUrl = value; }
163 inline void SetInstanceAccessUrl(Aws::String&& value) { m_instanceAccessUrlHasBeenSet = true; m_instanceAccessUrl = std::move(value); }
164 inline void SetInstanceAccessUrl(const char* value) { m_instanceAccessUrlHasBeenSet = true; m_instanceAccessUrl.assign(value); }
165 inline InstanceSummary& WithInstanceAccessUrl(const Aws::String& value) { SetInstanceAccessUrl(value); return *this;}
166 inline InstanceSummary& WithInstanceAccessUrl(Aws::String&& value) { SetInstanceAccessUrl(std::move(value)); return *this;}
167 inline InstanceSummary& WithInstanceAccessUrl(const char* value) { SetInstanceAccessUrl(value); return *this;}
169 private:
170
171 Aws::String m_id;
172 bool m_idHasBeenSet = false;
173
174 Aws::String m_arn;
175 bool m_arnHasBeenSet = false;
176
177 DirectoryType m_identityManagementType;
178 bool m_identityManagementTypeHasBeenSet = false;
179
180 Aws::String m_instanceAlias;
181 bool m_instanceAliasHasBeenSet = false;
182
183 Aws::Utils::DateTime m_createdTime;
184 bool m_createdTimeHasBeenSet = false;
185
186 Aws::String m_serviceRole;
187 bool m_serviceRoleHasBeenSet = false;
188
189 InstanceStatus m_instanceStatus;
190 bool m_instanceStatusHasBeenSet = false;
191
192 bool m_inboundCallsEnabled;
193 bool m_inboundCallsEnabledHasBeenSet = false;
194
195 bool m_outboundCallsEnabled;
196 bool m_outboundCallsEnabledHasBeenSet = false;
197
198 Aws::String m_instanceAccessUrl;
199 bool m_instanceAccessUrlHasBeenSet = false;
200 };
201
202} // namespace Model
203} // namespace Connect
204} // namespace Aws
InstanceSummary & WithInstanceStatus(InstanceStatus &&value)
void SetIdentityManagementType(const DirectoryType &value)
void SetInstanceStatus(const InstanceStatus &value)
const InstanceStatus & GetInstanceStatus() const
void SetCreatedTime(const Aws::Utils::DateTime &value)
InstanceSummary & WithArn(const Aws::String &value)
InstanceSummary & WithInboundCallsEnabled(bool value)
InstanceSummary & WithIdentityManagementType(DirectoryType &&value)
InstanceSummary & WithInstanceAlias(const char *value)
const Aws::Utils::DateTime & GetCreatedTime() const
InstanceSummary & WithInstanceAlias(Aws::String &&value)
InstanceSummary & WithId(Aws::String &&value)
AWS_CONNECT_API InstanceSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
InstanceSummary & WithInstanceAccessUrl(Aws::String &&value)
void SetInstanceAccessUrl(const char *value)
void SetId(Aws::String &&value)
InstanceSummary & WithArn(const char *value)
InstanceSummary & WithCreatedTime(const Aws::Utils::DateTime &value)
void SetInstanceStatus(InstanceStatus &&value)
void SetInstanceAlias(Aws::String &&value)
InstanceSummary & WithIdentityManagementType(const DirectoryType &value)
const DirectoryType & GetIdentityManagementType() const
InstanceSummary & WithId(const char *value)
void SetId(const Aws::String &value)
const Aws::String & GetArn() const
const Aws::String & GetInstanceAccessUrl() const
const Aws::String & GetInstanceAlias() const
InstanceSummary & WithOutboundCallsEnabled(bool value)
InstanceSummary & WithServiceRole(Aws::String &&value)
const Aws::String & GetId() const
InstanceSummary & WithServiceRole(const char *value)
InstanceSummary & WithInstanceAccessUrl(const char *value)
InstanceSummary & WithArn(Aws::String &&value)
void SetCreatedTime(Aws::Utils::DateTime &&value)
InstanceSummary & WithInstanceAccessUrl(const Aws::String &value)
InstanceSummary & WithInstanceAlias(const Aws::String &value)
void SetArn(const Aws::String &value)
void SetServiceRole(const char *value)
void SetInstanceAlias(const Aws::String &value)
const Aws::String & GetServiceRole() const
void SetArn(Aws::String &&value)
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CONNECT_API InstanceSummary(Aws::Utils::Json::JsonView jsonValue)
InstanceSummary & WithServiceRole(const Aws::String &value)
void SetInstanceAlias(const char *value)
InstanceSummary & WithId(const Aws::String &value)
void SetInstanceAccessUrl(const Aws::String &value)
void SetInstanceAccessUrl(Aws::String &&value)
void SetServiceRole(const Aws::String &value)
InstanceSummary & WithCreatedTime(Aws::Utils::DateTime &&value)
void SetIdentityManagementType(DirectoryType &&value)
InstanceSummary & WithInstanceStatus(const InstanceStatus &value)
void SetServiceRole(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue