AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
CreateMicrosoftADRequest.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/DirectoryEdition.h>
12#include <aws/ds/model/DirectoryVpcSettings.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
28 public:
29 AWS_DIRECTORYSERVICE_API CreateMicrosoftADRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreateMicrosoftAD"; }
36
37 AWS_DIRECTORYSERVICE_API Aws::String SerializePayload() const override;
38
39 AWS_DIRECTORYSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
40
42
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
68 inline const Aws::String& GetShortName() const { return m_shortName; }
69 inline bool ShortNameHasBeenSet() const { return m_shortNameHasBeenSet; }
70 template <typename ShortNameT = Aws::String>
71 void SetShortName(ShortNameT&& value) {
72 m_shortNameHasBeenSet = true;
73 m_shortName = std::forward<ShortNameT>(value);
74 }
75 template <typename ShortNameT = Aws::String>
77 SetShortName(std::forward<ShortNameT>(value));
78 return *this;
79 }
81
83
88 inline const Aws::String& GetPassword() const { return m_password; }
89 inline bool PasswordHasBeenSet() const { return m_passwordHasBeenSet; }
90 template <typename PasswordT = Aws::String>
91 void SetPassword(PasswordT&& value) {
92 m_passwordHasBeenSet = true;
93 m_password = std::forward<PasswordT>(value);
94 }
95 template <typename PasswordT = Aws::String>
97 SetPassword(std::forward<PasswordT>(value));
98 return *this;
99 }
101
103
108 inline const Aws::String& GetDescription() const { return m_description; }
109 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
110 template <typename DescriptionT = Aws::String>
111 void SetDescription(DescriptionT&& value) {
112 m_descriptionHasBeenSet = true;
113 m_description = std::forward<DescriptionT>(value);
114 }
115 template <typename DescriptionT = Aws::String>
117 SetDescription(std::forward<DescriptionT>(value));
118 return *this;
119 }
121
123
127 inline const DirectoryVpcSettings& GetVpcSettings() const { return m_vpcSettings; }
128 inline bool VpcSettingsHasBeenSet() const { return m_vpcSettingsHasBeenSet; }
129 template <typename VpcSettingsT = DirectoryVpcSettings>
130 void SetVpcSettings(VpcSettingsT&& value) {
131 m_vpcSettingsHasBeenSet = true;
132 m_vpcSettings = std::forward<VpcSettingsT>(value);
133 }
134 template <typename VpcSettingsT = DirectoryVpcSettings>
136 SetVpcSettings(std::forward<VpcSettingsT>(value));
137 return *this;
138 }
140
142
146 inline DirectoryEdition GetEdition() const { return m_edition; }
147 inline bool EditionHasBeenSet() const { return m_editionHasBeenSet; }
148 inline void SetEdition(DirectoryEdition value) {
149 m_editionHasBeenSet = true;
150 m_edition = value;
151 }
153 SetEdition(value);
154 return *this;
155 }
157
159
162 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
163 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
164 template <typename TagsT = Aws::Vector<Tag>>
165 void SetTags(TagsT&& value) {
166 m_tagsHasBeenSet = true;
167 m_tags = std::forward<TagsT>(value);
168 }
169 template <typename TagsT = Aws::Vector<Tag>>
171 SetTags(std::forward<TagsT>(value));
172 return *this;
173 }
174 template <typename TagsT = Tag>
176 m_tagsHasBeenSet = true;
177 m_tags.emplace_back(std::forward<TagsT>(value));
178 return *this;
179 }
181
183
187 inline NetworkType GetNetworkType() const { return m_networkType; }
188 inline bool NetworkTypeHasBeenSet() const { return m_networkTypeHasBeenSet; }
189 inline void SetNetworkType(NetworkType value) {
190 m_networkTypeHasBeenSet = true;
191 m_networkType = value;
192 }
194 SetNetworkType(value);
195 return *this;
196 }
198 private:
199 Aws::String m_name;
200
201 Aws::String m_shortName;
202
203 Aws::String m_password;
204
205 Aws::String m_description;
206
207 DirectoryVpcSettings m_vpcSettings;
208
210
211 Aws::Vector<Tag> m_tags;
212
213 NetworkType m_networkType{NetworkType::NOT_SET};
214 bool m_nameHasBeenSet = false;
215 bool m_shortNameHasBeenSet = false;
216 bool m_passwordHasBeenSet = false;
217 bool m_descriptionHasBeenSet = false;
218 bool m_vpcSettingsHasBeenSet = false;
219 bool m_editionHasBeenSet = false;
220 bool m_tagsHasBeenSet = false;
221 bool m_networkTypeHasBeenSet = false;
222};
223
224} // namespace Model
225} // namespace DirectoryService
226} // namespace Aws
AWS_DIRECTORYSERVICE_API Aws::String SerializePayload() const override
CreateMicrosoftADRequest & WithNetworkType(NetworkType value)
CreateMicrosoftADRequest & WithDescription(DescriptionT &&value)
CreateMicrosoftADRequest & WithVpcSettings(VpcSettingsT &&value)
CreateMicrosoftADRequest & WithShortName(ShortNameT &&value)
AWS_DIRECTORYSERVICE_API CreateMicrosoftADRequest()=default
AWS_DIRECTORYSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateMicrosoftADRequest & WithEdition(DirectoryEdition value)
CreateMicrosoftADRequest & WithPassword(PasswordT &&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