AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateInstanceRequest.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/ConnectRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/connect/model/DirectoryType.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Connect
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_CONNECT_API CreateInstanceRequest();
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateInstance"; }
33
34 AWS_CONNECT_API Aws::String SerializePayload() const override;
35
36
38
41 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
42 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
43 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
44 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
45 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
46 inline CreateInstanceRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
47 inline CreateInstanceRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
48 inline CreateInstanceRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
50
52
55 inline const DirectoryType& GetIdentityManagementType() const{ return m_identityManagementType; }
56 inline bool IdentityManagementTypeHasBeenSet() const { return m_identityManagementTypeHasBeenSet; }
57 inline void SetIdentityManagementType(const DirectoryType& value) { m_identityManagementTypeHasBeenSet = true; m_identityManagementType = value; }
58 inline void SetIdentityManagementType(DirectoryType&& value) { m_identityManagementTypeHasBeenSet = true; m_identityManagementType = std::move(value); }
62
64
67 inline const Aws::String& GetInstanceAlias() const{ return m_instanceAlias; }
68 inline bool InstanceAliasHasBeenSet() const { return m_instanceAliasHasBeenSet; }
69 inline void SetInstanceAlias(const Aws::String& value) { m_instanceAliasHasBeenSet = true; m_instanceAlias = value; }
70 inline void SetInstanceAlias(Aws::String&& value) { m_instanceAliasHasBeenSet = true; m_instanceAlias = std::move(value); }
71 inline void SetInstanceAlias(const char* value) { m_instanceAliasHasBeenSet = true; m_instanceAlias.assign(value); }
72 inline CreateInstanceRequest& WithInstanceAlias(const Aws::String& value) { SetInstanceAlias(value); return *this;}
73 inline CreateInstanceRequest& WithInstanceAlias(Aws::String&& value) { SetInstanceAlias(std::move(value)); return *this;}
74 inline CreateInstanceRequest& WithInstanceAlias(const char* value) { SetInstanceAlias(value); return *this;}
76
78
81 inline const Aws::String& GetDirectoryId() const{ return m_directoryId; }
82 inline bool DirectoryIdHasBeenSet() const { return m_directoryIdHasBeenSet; }
83 inline void SetDirectoryId(const Aws::String& value) { m_directoryIdHasBeenSet = true; m_directoryId = value; }
84 inline void SetDirectoryId(Aws::String&& value) { m_directoryIdHasBeenSet = true; m_directoryId = std::move(value); }
85 inline void SetDirectoryId(const char* value) { m_directoryIdHasBeenSet = true; m_directoryId.assign(value); }
86 inline CreateInstanceRequest& WithDirectoryId(const Aws::String& value) { SetDirectoryId(value); return *this;}
87 inline CreateInstanceRequest& WithDirectoryId(Aws::String&& value) { SetDirectoryId(std::move(value)); return *this;}
88 inline CreateInstanceRequest& WithDirectoryId(const char* value) { SetDirectoryId(value); return *this;}
90
92
95 inline bool GetInboundCallsEnabled() const{ return m_inboundCallsEnabled; }
96 inline bool InboundCallsEnabledHasBeenSet() const { return m_inboundCallsEnabledHasBeenSet; }
97 inline void SetInboundCallsEnabled(bool value) { m_inboundCallsEnabledHasBeenSet = true; m_inboundCallsEnabled = value; }
98 inline CreateInstanceRequest& WithInboundCallsEnabled(bool value) { SetInboundCallsEnabled(value); return *this;}
100
102
105 inline bool GetOutboundCallsEnabled() const{ return m_outboundCallsEnabled; }
106 inline bool OutboundCallsEnabledHasBeenSet() const { return m_outboundCallsEnabledHasBeenSet; }
107 inline void SetOutboundCallsEnabled(bool value) { m_outboundCallsEnabledHasBeenSet = true; m_outboundCallsEnabled = value; }
108 inline CreateInstanceRequest& WithOutboundCallsEnabled(bool value) { SetOutboundCallsEnabled(value); return *this;}
110
112
116 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
117 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
118 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
119 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
120 inline CreateInstanceRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
121 inline CreateInstanceRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
122 inline CreateInstanceRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
123 inline CreateInstanceRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
124 inline CreateInstanceRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
125 inline CreateInstanceRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
126 inline CreateInstanceRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
127 inline CreateInstanceRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
128 inline CreateInstanceRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
130 private:
131
132 Aws::String m_clientToken;
133 bool m_clientTokenHasBeenSet = false;
134
135 DirectoryType m_identityManagementType;
136 bool m_identityManagementTypeHasBeenSet = false;
137
138 Aws::String m_instanceAlias;
139 bool m_instanceAliasHasBeenSet = false;
140
141 Aws::String m_directoryId;
142 bool m_directoryIdHasBeenSet = false;
143
144 bool m_inboundCallsEnabled;
145 bool m_inboundCallsEnabledHasBeenSet = false;
146
147 bool m_outboundCallsEnabled;
148 bool m_outboundCallsEnabledHasBeenSet = false;
149
151 bool m_tagsHasBeenSet = false;
152 };
153
154} // namespace Model
155} // namespace Connect
156} // namespace Aws
CreateInstanceRequest & AddTags(const char *key, const char *value)
void SetInstanceAlias(const Aws::String &value)
CreateInstanceRequest & WithIdentityManagementType(const DirectoryType &value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateInstanceRequest & WithDirectoryId(const char *value)
void SetClientToken(const Aws::String &value)
const DirectoryType & GetIdentityManagementType() const
CreateInstanceRequest & AddTags(const Aws::String &key, const Aws::String &value)
AWS_CONNECT_API Aws::String SerializePayload() const override
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateInstanceRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateInstanceRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateInstanceRequest & WithInstanceAlias(const Aws::String &value)
CreateInstanceRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateInstanceRequest & WithIdentityManagementType(DirectoryType &&value)
CreateInstanceRequest & AddTags(const char *key, Aws::String &&value)
CreateInstanceRequest & AddTags(Aws::String &&key, const char *value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateInstanceRequest & WithClientToken(const char *value)
CreateInstanceRequest & WithOutboundCallsEnabled(bool value)
void SetDirectoryId(const Aws::String &value)
CreateInstanceRequest & WithInstanceAlias(Aws::String &&value)
CreateInstanceRequest & WithClientToken(const Aws::String &value)
CreateInstanceRequest & WithDirectoryId(Aws::String &&value)
CreateInstanceRequest & WithClientToken(Aws::String &&value)
CreateInstanceRequest & WithInstanceAlias(const char *value)
virtual const char * GetServiceRequestName() const override
CreateInstanceRequest & WithDirectoryId(const Aws::String &value)
CreateInstanceRequest & AddTags(Aws::String &&key, const Aws::String &value)
void SetIdentityManagementType(const DirectoryType &value)
CreateInstanceRequest & WithInboundCallsEnabled(bool value)
CreateInstanceRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetIdentityManagementType(DirectoryType &&value)
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