AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
ConnectDirectoryRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ds/DirectoryServiceRequest.h>
10#include <aws/ds/DirectoryService_EXPORTS.h>
11#include <aws/ds/model/DirectoryConnectSettings.h>
12#include <aws/ds/model/DirectorySize.h>
13#include <aws/ds/model/NetworkType.h>
14#include <aws/ds/model/Tag.h>
15
16#include <utility>
17
18namespace Aws {
19namespace DirectoryService {
20namespace Model {
21
29 public:
30 AWS_DIRECTORYSERVICE_API ConnectDirectoryRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "ConnectDirectory"; }
37
38 AWS_DIRECTORYSERVICE_API Aws::String SerializePayload() const override;
39
40 AWS_DIRECTORYSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
41
43
47 inline const Aws::String& GetName() const { return m_name; }
48 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
49 template <typename NameT = Aws::String>
50 void SetName(NameT&& value) {
51 m_nameHasBeenSet = true;
52 m_name = std::forward<NameT>(value);
53 }
54 template <typename NameT = Aws::String>
56 SetName(std::forward<NameT>(value));
57 return *this;
58 }
60
62
66 inline const Aws::String& GetShortName() const { return m_shortName; }
67 inline bool ShortNameHasBeenSet() const { return m_shortNameHasBeenSet; }
68 template <typename ShortNameT = Aws::String>
69 void SetShortName(ShortNameT&& value) {
70 m_shortNameHasBeenSet = true;
71 m_shortName = std::forward<ShortNameT>(value);
72 }
73 template <typename ShortNameT = Aws::String>
75 SetShortName(std::forward<ShortNameT>(value));
76 return *this;
77 }
79
81
84 inline const Aws::String& GetPassword() const { return m_password; }
85 inline bool PasswordHasBeenSet() const { return m_passwordHasBeenSet; }
86 template <typename PasswordT = Aws::String>
87 void SetPassword(PasswordT&& value) {
88 m_passwordHasBeenSet = true;
89 m_password = std::forward<PasswordT>(value);
90 }
91 template <typename PasswordT = Aws::String>
93 SetPassword(std::forward<PasswordT>(value));
94 return *this;
95 }
97
99
102 inline const Aws::String& GetDescription() const { return m_description; }
103 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
104 template <typename DescriptionT = Aws::String>
105 void SetDescription(DescriptionT&& value) {
106 m_descriptionHasBeenSet = true;
107 m_description = std::forward<DescriptionT>(value);
108 }
109 template <typename DescriptionT = Aws::String>
111 SetDescription(std::forward<DescriptionT>(value));
112 return *this;
113 }
115
117
120 inline DirectorySize GetSize() const { return m_size; }
121 inline bool SizeHasBeenSet() const { return m_sizeHasBeenSet; }
122 inline void SetSize(DirectorySize value) {
123 m_sizeHasBeenSet = true;
124 m_size = value;
125 }
127 SetSize(value);
128 return *this;
129 }
131
133
137 inline const DirectoryConnectSettings& GetConnectSettings() const { return m_connectSettings; }
138 inline bool ConnectSettingsHasBeenSet() const { return m_connectSettingsHasBeenSet; }
139 template <typename ConnectSettingsT = DirectoryConnectSettings>
140 void SetConnectSettings(ConnectSettingsT&& value) {
141 m_connectSettingsHasBeenSet = true;
142 m_connectSettings = std::forward<ConnectSettingsT>(value);
143 }
144 template <typename ConnectSettingsT = DirectoryConnectSettings>
145 ConnectDirectoryRequest& WithConnectSettings(ConnectSettingsT&& value) {
146 SetConnectSettings(std::forward<ConnectSettingsT>(value));
147 return *this;
148 }
150
152
155 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
156 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
157 template <typename TagsT = Aws::Vector<Tag>>
158 void SetTags(TagsT&& value) {
159 m_tagsHasBeenSet = true;
160 m_tags = std::forward<TagsT>(value);
161 }
162 template <typename TagsT = Aws::Vector<Tag>>
164 SetTags(std::forward<TagsT>(value));
165 return *this;
166 }
167 template <typename TagsT = Tag>
169 m_tagsHasBeenSet = true;
170 m_tags.emplace_back(std::forward<TagsT>(value));
171 return *this;
172 }
174
176
180 inline NetworkType GetNetworkType() const { return m_networkType; }
181 inline bool NetworkTypeHasBeenSet() const { return m_networkTypeHasBeenSet; }
182 inline void SetNetworkType(NetworkType value) {
183 m_networkTypeHasBeenSet = true;
184 m_networkType = value;
185 }
187 SetNetworkType(value);
188 return *this;
189 }
191 private:
192 Aws::String m_name;
193
194 Aws::String m_shortName;
195
196 Aws::String m_password;
197
198 Aws::String m_description;
199
201
202 DirectoryConnectSettings m_connectSettings;
203
204 Aws::Vector<Tag> m_tags;
205
206 NetworkType m_networkType{NetworkType::NOT_SET};
207 bool m_nameHasBeenSet = false;
208 bool m_shortNameHasBeenSet = false;
209 bool m_passwordHasBeenSet = false;
210 bool m_descriptionHasBeenSet = false;
211 bool m_sizeHasBeenSet = false;
212 bool m_connectSettingsHasBeenSet = false;
213 bool m_tagsHasBeenSet = false;
214 bool m_networkTypeHasBeenSet = false;
215};
216
217} // namespace Model
218} // namespace DirectoryService
219} // namespace Aws
ConnectDirectoryRequest & WithShortName(ShortNameT &&value)
virtual const char * GetServiceRequestName() const override
ConnectDirectoryRequest & WithDescription(DescriptionT &&value)
const DirectoryConnectSettings & GetConnectSettings() const
AWS_DIRECTORYSERVICE_API ConnectDirectoryRequest()=default
ConnectDirectoryRequest & WithSize(DirectorySize value)
AWS_DIRECTORYSERVICE_API Aws::String SerializePayload() const override
ConnectDirectoryRequest & WithPassword(PasswordT &&value)
AWS_DIRECTORYSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ConnectDirectoryRequest & WithNetworkType(NetworkType value)
ConnectDirectoryRequest & WithConnectSettings(ConnectSettingsT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector