AWS SDK for C++  1.9.154
AWS SDK for C++
CreateInstanceRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Connect
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "CreateInstance"; }
32 
33  Aws::String SerializePayload() const override;
34 
35 
39  inline const Aws::String& GetClientToken() const{ return m_clientToken; }
40 
44  inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
45 
49  inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
50 
54  inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
55 
59  inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
60 
64  inline CreateInstanceRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
65 
69  inline CreateInstanceRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
70 
74  inline CreateInstanceRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
75 
76 
80  inline const DirectoryType& GetIdentityManagementType() const{ return m_identityManagementType; }
81 
85  inline bool IdentityManagementTypeHasBeenSet() const { return m_identityManagementTypeHasBeenSet; }
86 
90  inline void SetIdentityManagementType(const DirectoryType& value) { m_identityManagementTypeHasBeenSet = true; m_identityManagementType = value; }
91 
95  inline void SetIdentityManagementType(DirectoryType&& value) { m_identityManagementTypeHasBeenSet = true; m_identityManagementType = std::move(value); }
96 
100  inline CreateInstanceRequest& WithIdentityManagementType(const DirectoryType& value) { SetIdentityManagementType(value); return *this;}
101 
105  inline CreateInstanceRequest& WithIdentityManagementType(DirectoryType&& value) { SetIdentityManagementType(std::move(value)); return *this;}
106 
107 
111  inline const Aws::String& GetInstanceAlias() const{ return m_instanceAlias; }
112 
116  inline bool InstanceAliasHasBeenSet() const { return m_instanceAliasHasBeenSet; }
117 
121  inline void SetInstanceAlias(const Aws::String& value) { m_instanceAliasHasBeenSet = true; m_instanceAlias = value; }
122 
126  inline void SetInstanceAlias(Aws::String&& value) { m_instanceAliasHasBeenSet = true; m_instanceAlias = std::move(value); }
127 
131  inline void SetInstanceAlias(const char* value) { m_instanceAliasHasBeenSet = true; m_instanceAlias.assign(value); }
132 
136  inline CreateInstanceRequest& WithInstanceAlias(const Aws::String& value) { SetInstanceAlias(value); return *this;}
137 
141  inline CreateInstanceRequest& WithInstanceAlias(Aws::String&& value) { SetInstanceAlias(std::move(value)); return *this;}
142 
146  inline CreateInstanceRequest& WithInstanceAlias(const char* value) { SetInstanceAlias(value); return *this;}
147 
148 
152  inline const Aws::String& GetDirectoryId() const{ return m_directoryId; }
153 
157  inline bool DirectoryIdHasBeenSet() const { return m_directoryIdHasBeenSet; }
158 
162  inline void SetDirectoryId(const Aws::String& value) { m_directoryIdHasBeenSet = true; m_directoryId = value; }
163 
167  inline void SetDirectoryId(Aws::String&& value) { m_directoryIdHasBeenSet = true; m_directoryId = std::move(value); }
168 
172  inline void SetDirectoryId(const char* value) { m_directoryIdHasBeenSet = true; m_directoryId.assign(value); }
173 
177  inline CreateInstanceRequest& WithDirectoryId(const Aws::String& value) { SetDirectoryId(value); return *this;}
178 
182  inline CreateInstanceRequest& WithDirectoryId(Aws::String&& value) { SetDirectoryId(std::move(value)); return *this;}
183 
187  inline CreateInstanceRequest& WithDirectoryId(const char* value) { SetDirectoryId(value); return *this;}
188 
189 
193  inline bool GetInboundCallsEnabled() const{ return m_inboundCallsEnabled; }
194 
198  inline bool InboundCallsEnabledHasBeenSet() const { return m_inboundCallsEnabledHasBeenSet; }
199 
203  inline void SetInboundCallsEnabled(bool value) { m_inboundCallsEnabledHasBeenSet = true; m_inboundCallsEnabled = value; }
204 
208  inline CreateInstanceRequest& WithInboundCallsEnabled(bool value) { SetInboundCallsEnabled(value); return *this;}
209 
210 
214  inline bool GetOutboundCallsEnabled() const{ return m_outboundCallsEnabled; }
215 
219  inline bool OutboundCallsEnabledHasBeenSet() const { return m_outboundCallsEnabledHasBeenSet; }
220 
224  inline void SetOutboundCallsEnabled(bool value) { m_outboundCallsEnabledHasBeenSet = true; m_outboundCallsEnabled = value; }
225 
229  inline CreateInstanceRequest& WithOutboundCallsEnabled(bool value) { SetOutboundCallsEnabled(value); return *this;}
230 
231  private:
232 
233  Aws::String m_clientToken;
234  bool m_clientTokenHasBeenSet;
235 
236  DirectoryType m_identityManagementType;
237  bool m_identityManagementTypeHasBeenSet;
238 
239  Aws::String m_instanceAlias;
240  bool m_instanceAliasHasBeenSet;
241 
242  Aws::String m_directoryId;
243  bool m_directoryIdHasBeenSet;
244 
245  bool m_inboundCallsEnabled;
246  bool m_inboundCallsEnabledHasBeenSet;
247 
248  bool m_outboundCallsEnabled;
249  bool m_outboundCallsEnabledHasBeenSet;
250  };
251 
252 } // namespace Model
253 } // namespace Connect
254 } // namespace Aws
Aws::Connect::Model::CreateInstanceRequest::IdentityManagementTypeHasBeenSet
bool IdentityManagementTypeHasBeenSet() const
Definition: CreateInstanceRequest.h:85
Aws::Connect::Model::CreateInstanceRequest::SetClientToken
void SetClientToken(const Aws::String &value)
Definition: CreateInstanceRequest.h:49
Aws::Connect::Model::CreateInstanceRequest::GetDirectoryId
const Aws::String & GetDirectoryId() const
Definition: CreateInstanceRequest.h:152
Aws::Connect::Model::CreateInstanceRequest::OutboundCallsEnabledHasBeenSet
bool OutboundCallsEnabledHasBeenSet() const
Definition: CreateInstanceRequest.h:219
Aws::Connect::Model::CreateInstanceRequest::GetInstanceAlias
const Aws::String & GetInstanceAlias() const
Definition: CreateInstanceRequest.h:111
Aws::Connect::Model::CreateInstanceRequest::GetOutboundCallsEnabled
bool GetOutboundCallsEnabled() const
Definition: CreateInstanceRequest.h:214
Aws::Connect::Model::CreateInstanceRequest::SetDirectoryId
void SetDirectoryId(Aws::String &&value)
Definition: CreateInstanceRequest.h:167
DirectoryType.h
Aws::Connect::Model::CreateInstanceRequest::WithDirectoryId
CreateInstanceRequest & WithDirectoryId(const char *value)
Definition: CreateInstanceRequest.h:187
Aws::Connect::Model::CreateInstanceRequest::WithInstanceAlias
CreateInstanceRequest & WithInstanceAlias(Aws::String &&value)
Definition: CreateInstanceRequest.h:141
Aws::Connect::Model::CreateInstanceRequest::SetInboundCallsEnabled
void SetInboundCallsEnabled(bool value)
Definition: CreateInstanceRequest.h:203
Aws::Connect::Model::CreateInstanceRequest::SetInstanceAlias
void SetInstanceAlias(Aws::String &&value)
Definition: CreateInstanceRequest.h:126
Aws::Connect::Model::CreateInstanceRequest::WithIdentityManagementType
CreateInstanceRequest & WithIdentityManagementType(DirectoryType &&value)
Definition: CreateInstanceRequest.h:105
Aws::Connect::Model::CreateInstanceRequest::InstanceAliasHasBeenSet
bool InstanceAliasHasBeenSet() const
Definition: CreateInstanceRequest.h:116
Aws::Connect::Model::CreateInstanceRequest::SetIdentityManagementType
void SetIdentityManagementType(DirectoryType &&value)
Definition: CreateInstanceRequest.h:95
Aws::Connect::Model::CreateInstanceRequest::WithDirectoryId
CreateInstanceRequest & WithDirectoryId(const Aws::String &value)
Definition: CreateInstanceRequest.h:177
Aws::Connect::Model::CreateInstanceRequest::WithClientToken
CreateInstanceRequest & WithClientToken(Aws::String &&value)
Definition: CreateInstanceRequest.h:69
Aws::Connect::Model::CreateInstanceRequest::WithIdentityManagementType
CreateInstanceRequest & WithIdentityManagementType(const DirectoryType &value)
Definition: CreateInstanceRequest.h:100
Aws::Connect::Model::CreateInstanceRequest::WithClientToken
CreateInstanceRequest & WithClientToken(const Aws::String &value)
Definition: CreateInstanceRequest.h:64
Aws::Connect::Model::CreateInstanceRequest::GetClientToken
const Aws::String & GetClientToken() const
Definition: CreateInstanceRequest.h:39
Aws::Connect::Model::CreateInstanceRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateInstanceRequest.h:31
Aws::Connect::Model::CreateInstanceRequest::WithOutboundCallsEnabled
CreateInstanceRequest & WithOutboundCallsEnabled(bool value)
Definition: CreateInstanceRequest.h:229
Aws::Connect::Model::CreateInstanceRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Connect::ConnectRequest
Definition: ConnectRequest.h:17
Aws::Connect::Model::CreateInstanceRequest::DirectoryIdHasBeenSet
bool DirectoryIdHasBeenSet() const
Definition: CreateInstanceRequest.h:157
Aws::Connect::Model::CreateInstanceRequest::SetInstanceAlias
void SetInstanceAlias(const char *value)
Definition: CreateInstanceRequest.h:131
AWSString.h
Aws::Connect::Model::CreateInstanceRequest::SetIdentityManagementType
void SetIdentityManagementType(const DirectoryType &value)
Definition: CreateInstanceRequest.h:90
Aws::Connect::Model::CreateInstanceRequest::SetOutboundCallsEnabled
void SetOutboundCallsEnabled(bool value)
Definition: CreateInstanceRequest.h:224
Aws::Connect::Model::CreateInstanceRequest::InboundCallsEnabledHasBeenSet
bool InboundCallsEnabledHasBeenSet() const
Definition: CreateInstanceRequest.h:198
Aws::Connect::Model::CreateInstanceRequest::ClientTokenHasBeenSet
bool ClientTokenHasBeenSet() const
Definition: CreateInstanceRequest.h:44
Aws::Connect::Model::CreateInstanceRequest::GetInboundCallsEnabled
bool GetInboundCallsEnabled() const
Definition: CreateInstanceRequest.h:193
Aws::Connect::Model::CreateInstanceRequest::WithClientToken
CreateInstanceRequest & WithClientToken(const char *value)
Definition: CreateInstanceRequest.h:74
Aws::Connect::Model::DirectoryType
DirectoryType
Definition: DirectoryType.h:17
Aws::Connect::Model::CreateInstanceRequest::SetClientToken
void SetClientToken(const char *value)
Definition: CreateInstanceRequest.h:59
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Connect::Model::CreateInstanceRequest::SetClientToken
void SetClientToken(Aws::String &&value)
Definition: CreateInstanceRequest.h:54
Aws::Connect::Model::CreateInstanceRequest
Definition: CreateInstanceRequest.h:23
Aws::Connect::Model::CreateInstanceRequest::SetDirectoryId
void SetDirectoryId(const Aws::String &value)
Definition: CreateInstanceRequest.h:162
Aws::Connect::Model::CreateInstanceRequest::SetInstanceAlias
void SetInstanceAlias(const Aws::String &value)
Definition: CreateInstanceRequest.h:121
Aws::Connect::Model::CreateInstanceRequest::WithInboundCallsEnabled
CreateInstanceRequest & WithInboundCallsEnabled(bool value)
Definition: CreateInstanceRequest.h:208
Aws::Connect::Model::CreateInstanceRequest::SetDirectoryId
void SetDirectoryId(const char *value)
Definition: CreateInstanceRequest.h:172
AWS_CONNECT_API
#define AWS_CONNECT_API
Definition: Connect_EXPORTS.h:28
Aws::Connect::Model::CreateInstanceRequest::WithInstanceAlias
CreateInstanceRequest & WithInstanceAlias(const char *value)
Definition: CreateInstanceRequest.h:146
Connect_EXPORTS.h
Aws::Connect::Model::CreateInstanceRequest::WithDirectoryId
CreateInstanceRequest & WithDirectoryId(Aws::String &&value)
Definition: CreateInstanceRequest.h:182
ConnectRequest.h
Aws::Connect::Model::CreateInstanceRequest::CreateInstanceRequest
CreateInstanceRequest()
Aws::Connect::Model::CreateInstanceRequest::GetIdentityManagementType
const DirectoryType & GetIdentityManagementType() const
Definition: CreateInstanceRequest.h:80
Aws::Connect::Model::CreateInstanceRequest::WithInstanceAlias
CreateInstanceRequest & WithInstanceAlias(const Aws::String &value)
Definition: CreateInstanceRequest.h:136