AWS SDK for C++  1.9.20
AWS SDK for C++
CreateMicrosoftADRequest.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <aws/ds/model/Tag.h>
14 #include <utility>
15 
16 namespace Aws
17 {
18 namespace DirectoryService
19 {
20 namespace Model
21 {
22 
29  {
30  public:
32 
33  // Service request name is the Operation name which will send this request out,
34  // each operation should has unique request name, so that we can get operation's name from this request.
35  // Note: this is not true for response, multiple operations may have the same response name,
36  // so we can not get operation's name from response.
37  inline virtual const char* GetServiceRequestName() const override { return "CreateMicrosoftAD"; }
38 
39  Aws::String SerializePayload() const override;
40 
42 
43 
49  inline const Aws::String& GetName() const{ return m_name; }
50 
56  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
57 
63  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
64 
70  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
71 
77  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
78 
84  inline CreateMicrosoftADRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
85 
91  inline CreateMicrosoftADRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
92 
98  inline CreateMicrosoftADRequest& WithName(const char* value) { SetName(value); return *this;}
99 
100 
107  inline const Aws::String& GetShortName() const{ return m_shortName; }
108 
115  inline bool ShortNameHasBeenSet() const { return m_shortNameHasBeenSet; }
116 
123  inline void SetShortName(const Aws::String& value) { m_shortNameHasBeenSet = true; m_shortName = value; }
124 
131  inline void SetShortName(Aws::String&& value) { m_shortNameHasBeenSet = true; m_shortName = std::move(value); }
132 
139  inline void SetShortName(const char* value) { m_shortNameHasBeenSet = true; m_shortName.assign(value); }
140 
147  inline CreateMicrosoftADRequest& WithShortName(const Aws::String& value) { SetShortName(value); return *this;}
148 
155  inline CreateMicrosoftADRequest& WithShortName(Aws::String&& value) { SetShortName(std::move(value)); return *this;}
156 
163  inline CreateMicrosoftADRequest& WithShortName(const char* value) { SetShortName(value); return *this;}
164 
165 
171  inline const Aws::String& GetPassword() const{ return m_password; }
172 
178  inline bool PasswordHasBeenSet() const { return m_passwordHasBeenSet; }
179 
185  inline void SetPassword(const Aws::String& value) { m_passwordHasBeenSet = true; m_password = value; }
186 
192  inline void SetPassword(Aws::String&& value) { m_passwordHasBeenSet = true; m_password = std::move(value); }
193 
199  inline void SetPassword(const char* value) { m_passwordHasBeenSet = true; m_password.assign(value); }
200 
206  inline CreateMicrosoftADRequest& WithPassword(const Aws::String& value) { SetPassword(value); return *this;}
207 
213  inline CreateMicrosoftADRequest& WithPassword(Aws::String&& value) { SetPassword(std::move(value)); return *this;}
214 
220  inline CreateMicrosoftADRequest& WithPassword(const char* value) { SetPassword(value); return *this;}
221 
222 
227  inline const Aws::String& GetDescription() const{ return m_description; }
228 
233  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
234 
239  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
240 
245  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
246 
251  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
252 
257  inline CreateMicrosoftADRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
258 
263  inline CreateMicrosoftADRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
264 
269  inline CreateMicrosoftADRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
270 
271 
276  inline const DirectoryVpcSettings& GetVpcSettings() const{ return m_vpcSettings; }
277 
282  inline bool VpcSettingsHasBeenSet() const { return m_vpcSettingsHasBeenSet; }
283 
288  inline void SetVpcSettings(const DirectoryVpcSettings& value) { m_vpcSettingsHasBeenSet = true; m_vpcSettings = value; }
289 
294  inline void SetVpcSettings(DirectoryVpcSettings&& value) { m_vpcSettingsHasBeenSet = true; m_vpcSettings = std::move(value); }
295 
300  inline CreateMicrosoftADRequest& WithVpcSettings(const DirectoryVpcSettings& value) { SetVpcSettings(value); return *this;}
301 
306  inline CreateMicrosoftADRequest& WithVpcSettings(DirectoryVpcSettings&& value) { SetVpcSettings(std::move(value)); return *this;}
307 
308 
313  inline const DirectoryEdition& GetEdition() const{ return m_edition; }
314 
319  inline bool EditionHasBeenSet() const { return m_editionHasBeenSet; }
320 
325  inline void SetEdition(const DirectoryEdition& value) { m_editionHasBeenSet = true; m_edition = value; }
326 
331  inline void SetEdition(DirectoryEdition&& value) { m_editionHasBeenSet = true; m_edition = std::move(value); }
332 
337  inline CreateMicrosoftADRequest& WithEdition(const DirectoryEdition& value) { SetEdition(value); return *this;}
338 
343  inline CreateMicrosoftADRequest& WithEdition(DirectoryEdition&& value) { SetEdition(std::move(value)); return *this;}
344 
345 
349  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
350 
354  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
355 
359  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
360 
364  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
365 
369  inline CreateMicrosoftADRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
370 
374  inline CreateMicrosoftADRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
375 
379  inline CreateMicrosoftADRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
380 
384  inline CreateMicrosoftADRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
385 
386  private:
387 
388  Aws::String m_name;
389  bool m_nameHasBeenSet;
390 
391  Aws::String m_shortName;
392  bool m_shortNameHasBeenSet;
393 
394  Aws::String m_password;
395  bool m_passwordHasBeenSet;
396 
397  Aws::String m_description;
398  bool m_descriptionHasBeenSet;
399 
400  DirectoryVpcSettings m_vpcSettings;
401  bool m_vpcSettingsHasBeenSet;
402 
403  DirectoryEdition m_edition;
404  bool m_editionHasBeenSet;
405 
406  Aws::Vector<Tag> m_tags;
407  bool m_tagsHasBeenSet;
408  };
409 
410 } // namespace Model
411 } // namespace DirectoryService
412 } // namespace Aws
Aws::DirectoryService::Model::CreateMicrosoftADRequest::WithName
CreateMicrosoftADRequest & WithName(Aws::String &&value)
Definition: CreateMicrosoftADRequest.h:91
Aws::DirectoryService::Model::CreateMicrosoftADRequest::SetEdition
void SetEdition(DirectoryEdition &&value)
Definition: CreateMicrosoftADRequest.h:331
DirectoryVpcSettings.h
AWS_DIRECTORYSERVICE_API
#define AWS_DIRECTORYSERVICE_API
Definition: DirectoryService_EXPORTS.h:28
Aws::DirectoryService::Model::CreateMicrosoftADRequest::WithPassword
CreateMicrosoftADRequest & WithPassword(const Aws::String &value)
Definition: CreateMicrosoftADRequest.h:206
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::DirectoryService::Model::CreateMicrosoftADRequest::WithTags
CreateMicrosoftADRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: CreateMicrosoftADRequest.h:369
Aws::DirectoryService::Model::CreateMicrosoftADRequest::EditionHasBeenSet
bool EditionHasBeenSet() const
Definition: CreateMicrosoftADRequest.h:319
Aws::DirectoryService::Model::CreateMicrosoftADRequest::SetName
void SetName(const char *value)
Definition: CreateMicrosoftADRequest.h:77
Aws::DirectoryService::Model::CreateMicrosoftADRequest::SetShortName
void SetShortName(const Aws::String &value)
Definition: CreateMicrosoftADRequest.h:123
Aws::DirectoryService::Model::CreateMicrosoftADRequest::WithTags
CreateMicrosoftADRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: CreateMicrosoftADRequest.h:374
Aws::DirectoryService::Model::CreateMicrosoftADRequest::WithVpcSettings
CreateMicrosoftADRequest & WithVpcSettings(const DirectoryVpcSettings &value)
Definition: CreateMicrosoftADRequest.h:300
DirectoryService_EXPORTS.h
Aws::DirectoryService::Model::CreateMicrosoftADRequest::ShortNameHasBeenSet
bool ShortNameHasBeenSet() const
Definition: CreateMicrosoftADRequest.h:115
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::DirectoryService::Model::CreateMicrosoftADRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: CreateMicrosoftADRequest.h:239
Aws::DirectoryService::Model::CreateMicrosoftADRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: CreateMicrosoftADRequest.h:56
Aws::DirectoryService::Model::CreateMicrosoftADRequest::SetName
void SetName(Aws::String &&value)
Definition: CreateMicrosoftADRequest.h:70
Aws::DirectoryService::Model::CreateMicrosoftADRequest::AddTags
CreateMicrosoftADRequest & AddTags(const Tag &value)
Definition: CreateMicrosoftADRequest.h:379
AWSVector.h
Aws::DirectoryService::DirectoryServiceRequest
Definition: DirectoryServiceRequest.h:17
Aws::DirectoryService::Model::CreateMicrosoftADRequest::CreateMicrosoftADRequest
CreateMicrosoftADRequest()
Aws::DirectoryService::Model::CreateMicrosoftADRequest::SetEdition
void SetEdition(const DirectoryEdition &value)
Definition: CreateMicrosoftADRequest.h:325
Aws::DirectoryService::Model::CreateMicrosoftADRequest::GetPassword
const Aws::String & GetPassword() const
Definition: CreateMicrosoftADRequest.h:171
Aws::DirectoryService::Model::CreateMicrosoftADRequest::SetPassword
void SetPassword(const char *value)
Definition: CreateMicrosoftADRequest.h:199
Aws::DirectoryService::Model::CreateMicrosoftADRequest::WithEdition
CreateMicrosoftADRequest & WithEdition(DirectoryEdition &&value)
Definition: CreateMicrosoftADRequest.h:343
Aws::DirectoryService::Model::CreateMicrosoftADRequest::GetName
const Aws::String & GetName() const
Definition: CreateMicrosoftADRequest.h:49
Tag.h
Aws::DirectoryService::Model::CreateMicrosoftADRequest::VpcSettingsHasBeenSet
bool VpcSettingsHasBeenSet() const
Definition: CreateMicrosoftADRequest.h:282
Aws::DirectoryService::Model::CreateMicrosoftADRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CreateMicrosoftADRequest.h:364
Aws::DirectoryService::Model::DirectoryEdition
DirectoryEdition
Definition: DirectoryEdition.h:17
Aws::DirectoryService::Model::CreateMicrosoftADRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::DirectoryService::Model::CreateMicrosoftADRequest::WithName
CreateMicrosoftADRequest & WithName(const Aws::String &value)
Definition: CreateMicrosoftADRequest.h:84
Aws::DirectoryService::Model::CreateMicrosoftADRequest::SetPassword
void SetPassword(Aws::String &&value)
Definition: CreateMicrosoftADRequest.h:192
Aws::DirectoryService::Model::CreateMicrosoftADRequest::SetShortName
void SetShortName(const char *value)
Definition: CreateMicrosoftADRequest.h:139
Aws::DirectoryService::Model::CreateMicrosoftADRequest::WithPassword
CreateMicrosoftADRequest & WithPassword(Aws::String &&value)
Definition: CreateMicrosoftADRequest.h:213
Aws::DirectoryService::Model::CreateMicrosoftADRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateMicrosoftADRequest.h:354
Aws::DirectoryService::Model::CreateMicrosoftADRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CreateMicrosoftADRequest.h:349
AWSString.h
Aws::DirectoryService::Model::CreateMicrosoftADRequest::WithName
CreateMicrosoftADRequest & WithName(const char *value)
Definition: CreateMicrosoftADRequest.h:98
Aws::DirectoryService::Model::CreateMicrosoftADRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::DirectoryService::Model::Tag
Definition: Tag.h:33
Aws::DirectoryService::Model::CreateMicrosoftADRequest::WithPassword
CreateMicrosoftADRequest & WithPassword(const char *value)
Definition: CreateMicrosoftADRequest.h:220
Aws::DirectoryService::Model::CreateMicrosoftADRequest::WithDescription
CreateMicrosoftADRequest & WithDescription(const char *value)
Definition: CreateMicrosoftADRequest.h:269
Aws::DirectoryService::Model::CreateMicrosoftADRequest::GetEdition
const DirectoryEdition & GetEdition() const
Definition: CreateMicrosoftADRequest.h:313
Aws::DirectoryService::Model::CreateMicrosoftADRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateMicrosoftADRequest.h:37
Aws::DirectoryService::Model::CreateMicrosoftADRequest
Definition: CreateMicrosoftADRequest.h:29
Aws::DirectoryService::Model::CreateMicrosoftADRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: CreateMicrosoftADRequest.h:245
Aws::DirectoryService::Model::CreateMicrosoftADRequest::SetName
void SetName(const Aws::String &value)
Definition: CreateMicrosoftADRequest.h:63
Aws::DirectoryService::Model::CreateMicrosoftADRequest::SetVpcSettings
void SetVpcSettings(DirectoryVpcSettings &&value)
Definition: CreateMicrosoftADRequest.h:294
Aws
Definition: AccessManagementClient.h:15
DirectoryEdition.h
Aws::DirectoryService::Model::CreateMicrosoftADRequest::WithShortName
CreateMicrosoftADRequest & WithShortName(const Aws::String &value)
Definition: CreateMicrosoftADRequest.h:147
Aws::DirectoryService::Model::CreateMicrosoftADRequest::GetVpcSettings
const DirectoryVpcSettings & GetVpcSettings() const
Definition: CreateMicrosoftADRequest.h:276
Aws::DirectoryService::Model::CreateMicrosoftADRequest::WithDescription
CreateMicrosoftADRequest & WithDescription(const Aws::String &value)
Definition: CreateMicrosoftADRequest.h:257
Aws::DirectoryService::Model::CreateMicrosoftADRequest::SetDescription
void SetDescription(const char *value)
Definition: CreateMicrosoftADRequest.h:251
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::DirectoryService::Model::CreateMicrosoftADRequest::WithVpcSettings
CreateMicrosoftADRequest & WithVpcSettings(DirectoryVpcSettings &&value)
Definition: CreateMicrosoftADRequest.h:306
Aws::DirectoryService::Model::CreateMicrosoftADRequest::AddTags
CreateMicrosoftADRequest & AddTags(Tag &&value)
Definition: CreateMicrosoftADRequest.h:384
Aws::DirectoryService::Model::CreateMicrosoftADRequest::PasswordHasBeenSet
bool PasswordHasBeenSet() const
Definition: CreateMicrosoftADRequest.h:178
Aws::DirectoryService::Model::CreateMicrosoftADRequest::SetShortName
void SetShortName(Aws::String &&value)
Definition: CreateMicrosoftADRequest.h:131
Aws::DirectoryService::Model::CreateMicrosoftADRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CreateMicrosoftADRequest.h:359
Aws::DirectoryService::Model::CreateMicrosoftADRequest::WithDescription
CreateMicrosoftADRequest & WithDescription(Aws::String &&value)
Definition: CreateMicrosoftADRequest.h:263
Aws::DirectoryService::Model::CreateMicrosoftADRequest::SetVpcSettings
void SetVpcSettings(const DirectoryVpcSettings &value)
Definition: CreateMicrosoftADRequest.h:288
DirectoryServiceRequest.h
Aws::DirectoryService::Model::CreateMicrosoftADRequest::SetPassword
void SetPassword(const Aws::String &value)
Definition: CreateMicrosoftADRequest.h:185
Aws::DirectoryService::Model::CreateMicrosoftADRequest::WithEdition
CreateMicrosoftADRequest & WithEdition(const DirectoryEdition &value)
Definition: CreateMicrosoftADRequest.h:337
Aws::DirectoryService::Model::DirectoryVpcSettings
Definition: DirectoryVpcSettings.h:34
Aws::DirectoryService::Model::CreateMicrosoftADRequest::WithShortName
CreateMicrosoftADRequest & WithShortName(Aws::String &&value)
Definition: CreateMicrosoftADRequest.h:155
Aws::DirectoryService::Model::CreateMicrosoftADRequest::GetShortName
const Aws::String & GetShortName() const
Definition: CreateMicrosoftADRequest.h:107
Aws::DirectoryService::Model::CreateMicrosoftADRequest::WithShortName
CreateMicrosoftADRequest & WithShortName(const char *value)
Definition: CreateMicrosoftADRequest.h:163
Aws::DirectoryService::Model::CreateMicrosoftADRequest::GetDescription
const Aws::String & GetDescription() const
Definition: CreateMicrosoftADRequest.h:227
Aws::DirectoryService::Model::CreateMicrosoftADRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: CreateMicrosoftADRequest.h:233