AWS SDK for C++  1.8.152
AWS SDK for C++
CreateDirectoryRequest.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 
30  {
31  public:
33 
34  // Service request name is the Operation name which will send this request out,
35  // each operation should has unique request name, so that we can get operation's name from this request.
36  // Note: this is not true for response, multiple operations may have the same response name,
37  // so we can not get operation's name from response.
38  inline virtual const char* GetServiceRequestName() const override { return "CreateDirectory"; }
39 
40  Aws::String SerializePayload() const override;
41 
43 
44 
49  inline const Aws::String& GetName() const{ return m_name; }
50 
55  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
56 
61  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
62 
67  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
68 
73  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
74 
79  inline CreateDirectoryRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
80 
85  inline CreateDirectoryRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
86 
91  inline CreateDirectoryRequest& WithName(const char* value) { SetName(value); return *this;}
92 
93 
97  inline const Aws::String& GetShortName() const{ return m_shortName; }
98 
102  inline bool ShortNameHasBeenSet() const { return m_shortNameHasBeenSet; }
103 
107  inline void SetShortName(const Aws::String& value) { m_shortNameHasBeenSet = true; m_shortName = value; }
108 
112  inline void SetShortName(Aws::String&& value) { m_shortNameHasBeenSet = true; m_shortName = std::move(value); }
113 
117  inline void SetShortName(const char* value) { m_shortNameHasBeenSet = true; m_shortName.assign(value); }
118 
122  inline CreateDirectoryRequest& WithShortName(const Aws::String& value) { SetShortName(value); return *this;}
123 
127  inline CreateDirectoryRequest& WithShortName(Aws::String&& value) { SetShortName(std::move(value)); return *this;}
128 
132  inline CreateDirectoryRequest& WithShortName(const char* value) { SetShortName(value); return *this;}
133 
134 
154  inline const Aws::String& GetPassword() const{ return m_password; }
155 
175  inline bool PasswordHasBeenSet() const { return m_passwordHasBeenSet; }
176 
196  inline void SetPassword(const Aws::String& value) { m_passwordHasBeenSet = true; m_password = value; }
197 
217  inline void SetPassword(Aws::String&& value) { m_passwordHasBeenSet = true; m_password = std::move(value); }
218 
238  inline void SetPassword(const char* value) { m_passwordHasBeenSet = true; m_password.assign(value); }
239 
259  inline CreateDirectoryRequest& WithPassword(const Aws::String& value) { SetPassword(value); return *this;}
260 
280  inline CreateDirectoryRequest& WithPassword(Aws::String&& value) { SetPassword(std::move(value)); return *this;}
281 
301  inline CreateDirectoryRequest& WithPassword(const char* value) { SetPassword(value); return *this;}
302 
303 
307  inline const Aws::String& GetDescription() const{ return m_description; }
308 
312  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
313 
317  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
318 
322  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
323 
327  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
328 
332  inline CreateDirectoryRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
333 
337  inline CreateDirectoryRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
338 
342  inline CreateDirectoryRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
343 
344 
348  inline const DirectorySize& GetSize() const{ return m_size; }
349 
353  inline bool SizeHasBeenSet() const { return m_sizeHasBeenSet; }
354 
358  inline void SetSize(const DirectorySize& value) { m_sizeHasBeenSet = true; m_size = value; }
359 
363  inline void SetSize(DirectorySize&& value) { m_sizeHasBeenSet = true; m_size = std::move(value); }
364 
368  inline CreateDirectoryRequest& WithSize(const DirectorySize& value) { SetSize(value); return *this;}
369 
373  inline CreateDirectoryRequest& WithSize(DirectorySize&& value) { SetSize(std::move(value)); return *this;}
374 
375 
380  inline const DirectoryVpcSettings& GetVpcSettings() const{ return m_vpcSettings; }
381 
386  inline bool VpcSettingsHasBeenSet() const { return m_vpcSettingsHasBeenSet; }
387 
392  inline void SetVpcSettings(const DirectoryVpcSettings& value) { m_vpcSettingsHasBeenSet = true; m_vpcSettings = value; }
393 
398  inline void SetVpcSettings(DirectoryVpcSettings&& value) { m_vpcSettingsHasBeenSet = true; m_vpcSettings = std::move(value); }
399 
404  inline CreateDirectoryRequest& WithVpcSettings(const DirectoryVpcSettings& value) { SetVpcSettings(value); return *this;}
405 
410  inline CreateDirectoryRequest& WithVpcSettings(DirectoryVpcSettings&& value) { SetVpcSettings(std::move(value)); return *this;}
411 
412 
416  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
417 
421  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
422 
426  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
427 
431  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
432 
436  inline CreateDirectoryRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
437 
441  inline CreateDirectoryRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
442 
446  inline CreateDirectoryRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
447 
451  inline CreateDirectoryRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
452 
453  private:
454 
455  Aws::String m_name;
456  bool m_nameHasBeenSet;
457 
458  Aws::String m_shortName;
459  bool m_shortNameHasBeenSet;
460 
461  Aws::String m_password;
462  bool m_passwordHasBeenSet;
463 
464  Aws::String m_description;
465  bool m_descriptionHasBeenSet;
466 
467  DirectorySize m_size;
468  bool m_sizeHasBeenSet;
469 
470  DirectoryVpcSettings m_vpcSettings;
471  bool m_vpcSettingsHasBeenSet;
472 
473  Aws::Vector<Tag> m_tags;
474  bool m_tagsHasBeenSet;
475  };
476 
477 } // namespace Model
478 } // namespace DirectoryService
479 } // namespace Aws
Aws::DirectoryService::Model::CreateDirectoryRequest::SetDescription
void SetDescription(const char *value)
Definition: CreateDirectoryRequest.h:327
Aws::DirectoryService::Model::CreateDirectoryRequest::GetName
const Aws::String & GetName() const
Definition: CreateDirectoryRequest.h:49
Aws::DirectoryService::Model::CreateDirectoryRequest::WithSize
CreateDirectoryRequest & WithSize(const DirectorySize &value)
Definition: CreateDirectoryRequest.h:368
Aws::DirectoryService::Model::CreateDirectoryRequest::SetShortName
void SetShortName(const char *value)
Definition: CreateDirectoryRequest.h:117
Aws::DirectoryService::Model::CreateDirectoryRequest::WithDescription
CreateDirectoryRequest & WithDescription(Aws::String &&value)
Definition: CreateDirectoryRequest.h:337
Aws::DirectoryService::Model::CreateDirectoryRequest::WithPassword
CreateDirectoryRequest & WithPassword(const Aws::String &value)
Definition: CreateDirectoryRequest.h:259
DirectoryVpcSettings.h
AWS_DIRECTORYSERVICE_API
#define AWS_DIRECTORYSERVICE_API
Definition: DirectoryService_EXPORTS.h:28
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::DirectoryService::Model::CreateDirectoryRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateDirectoryRequest.h:421
Aws::DirectoryService::Model::CreateDirectoryRequest::WithDescription
CreateDirectoryRequest & WithDescription(const Aws::String &value)
Definition: CreateDirectoryRequest.h:332
Aws::DirectoryService::Model::CreateDirectoryRequest::WithTags
CreateDirectoryRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: CreateDirectoryRequest.h:441
Aws::DirectoryService::Model::CreateDirectoryRequest::WithSize
CreateDirectoryRequest & WithSize(DirectorySize &&value)
Definition: CreateDirectoryRequest.h:373
Aws::DirectoryService::Model::CreateDirectoryRequest::WithShortName
CreateDirectoryRequest & WithShortName(Aws::String &&value)
Definition: CreateDirectoryRequest.h:127
DirectoryService_EXPORTS.h
Aws::DirectoryService::Model::CreateDirectoryRequest::GetSize
const DirectorySize & GetSize() const
Definition: CreateDirectoryRequest.h:348
Aws::DirectoryService::Model::CreateDirectoryRequest::SetPassword
void SetPassword(Aws::String &&value)
Definition: CreateDirectoryRequest.h:217
Aws::DirectoryService::Model::DirectorySize
DirectorySize
Definition: DirectorySize.h:17
Aws::DirectoryService::Model::CreateDirectoryRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CreateDirectoryRequest.h:416
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::DirectoryService::Model::CreateDirectoryRequest::SetShortName
void SetShortName(const Aws::String &value)
Definition: CreateDirectoryRequest.h:107
Aws::DirectoryService::Model::CreateDirectoryRequest::GetVpcSettings
const DirectoryVpcSettings & GetVpcSettings() const
Definition: CreateDirectoryRequest.h:380
AWSVector.h
Aws::DirectoryService::DirectoryServiceRequest
Definition: DirectoryServiceRequest.h:17
Aws::DirectoryService::Model::CreateDirectoryRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: CreateDirectoryRequest.h:322
Tag.h
Aws::DirectoryService::Model::CreateDirectoryRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: CreateDirectoryRequest.h:55
Aws::DirectoryService::Model::CreateDirectoryRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::DirectoryService::Model::CreateDirectoryRequest::SetPassword
void SetPassword(const Aws::String &value)
Definition: CreateDirectoryRequest.h:196
Aws::DirectoryService::Model::CreateDirectoryRequest::SetPassword
void SetPassword(const char *value)
Definition: CreateDirectoryRequest.h:238
Aws::DirectoryService::Model::CreateDirectoryRequest::AddTags
CreateDirectoryRequest & AddTags(const Tag &value)
Definition: CreateDirectoryRequest.h:446
Aws::DirectoryService::Model::CreateDirectoryRequest::SetName
void SetName(const char *value)
Definition: CreateDirectoryRequest.h:73
Aws::DirectoryService::Model::CreateDirectoryRequest::VpcSettingsHasBeenSet
bool VpcSettingsHasBeenSet() const
Definition: CreateDirectoryRequest.h:386
Aws::DirectoryService::Model::CreateDirectoryRequest
Definition: CreateDirectoryRequest.h:30
Aws::DirectoryService::Model::CreateDirectoryRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: CreateDirectoryRequest.h:312
Aws::DirectoryService::Model::CreateDirectoryRequest::SetSize
void SetSize(const DirectorySize &value)
Definition: CreateDirectoryRequest.h:358
Aws::DirectoryService::Model::CreateDirectoryRequest::WithName
CreateDirectoryRequest & WithName(const char *value)
Definition: CreateDirectoryRequest.h:91
Aws::DirectoryService::Model::CreateDirectoryRequest::WithPassword
CreateDirectoryRequest & WithPassword(Aws::String &&value)
Definition: CreateDirectoryRequest.h:280
Aws::DirectoryService::Model::CreateDirectoryRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: CreateDirectoryRequest.h:317
AWSString.h
Aws::DirectoryService::Model::CreateDirectoryRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CreateDirectoryRequest.h:426
Aws::DirectoryService::Model::Tag
Definition: Tag.h:33
Aws::DirectoryService::Model::CreateDirectoryRequest::WithPassword
CreateDirectoryRequest & WithPassword(const char *value)
Definition: CreateDirectoryRequest.h:301
Aws::DirectoryService::Model::CreateDirectoryRequest::CreateDirectoryRequest
CreateDirectoryRequest()
Aws::DirectoryService::Model::CreateDirectoryRequest::ShortNameHasBeenSet
bool ShortNameHasBeenSet() const
Definition: CreateDirectoryRequest.h:102
Aws::DirectoryService::Model::CreateDirectoryRequest::WithVpcSettings
CreateDirectoryRequest & WithVpcSettings(const DirectoryVpcSettings &value)
Definition: CreateDirectoryRequest.h:404
Aws::DirectoryService::Model::CreateDirectoryRequest::SetVpcSettings
void SetVpcSettings(DirectoryVpcSettings &&value)
Definition: CreateDirectoryRequest.h:398
Aws::DirectoryService::Model::CreateDirectoryRequest::WithVpcSettings
CreateDirectoryRequest & WithVpcSettings(DirectoryVpcSettings &&value)
Definition: CreateDirectoryRequest.h:410
Aws::DirectoryService::Model::CreateDirectoryRequest::WithDescription
CreateDirectoryRequest & WithDescription(const char *value)
Definition: CreateDirectoryRequest.h:342
Aws::DirectoryService::Model::CreateDirectoryRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CreateDirectoryRequest.h:431
Aws::DirectoryService::Model::CreateDirectoryRequest::SetShortName
void SetShortName(Aws::String &&value)
Definition: CreateDirectoryRequest.h:112
Aws::DirectoryService::Model::CreateDirectoryRequest::WithShortName
CreateDirectoryRequest & WithShortName(const Aws::String &value)
Definition: CreateDirectoryRequest.h:122
Aws
Definition: AccessManagementClient.h:15
Aws::DirectoryService::Model::CreateDirectoryRequest::WithShortName
CreateDirectoryRequest & WithShortName(const char *value)
Definition: CreateDirectoryRequest.h:132
Aws::DirectoryService::Model::CreateDirectoryRequest::GetPassword
const Aws::String & GetPassword() const
Definition: CreateDirectoryRequest.h:154
Aws::DirectoryService::Model::CreateDirectoryRequest::WithName
CreateDirectoryRequest & WithName(const Aws::String &value)
Definition: CreateDirectoryRequest.h:79
Aws::DirectoryService::Model::CreateDirectoryRequest::WithTags
CreateDirectoryRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: CreateDirectoryRequest.h:436
Aws::DirectoryService::Model::CreateDirectoryRequest::AddTags
CreateDirectoryRequest & AddTags(Tag &&value)
Definition: CreateDirectoryRequest.h:451
Aws::DirectoryService::Model::CreateDirectoryRequest::GetDescription
const Aws::String & GetDescription() const
Definition: CreateDirectoryRequest.h:307
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
DirectorySize.h
Aws::DirectoryService::Model::CreateDirectoryRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::DirectoryService::Model::CreateDirectoryRequest::SizeHasBeenSet
bool SizeHasBeenSet() const
Definition: CreateDirectoryRequest.h:353
Aws::DirectoryService::Model::CreateDirectoryRequest::SetName
void SetName(Aws::String &&value)
Definition: CreateDirectoryRequest.h:67
Aws::DirectoryService::Model::CreateDirectoryRequest::WithName
CreateDirectoryRequest & WithName(Aws::String &&value)
Definition: CreateDirectoryRequest.h:85
Aws::DirectoryService::Model::CreateDirectoryRequest::PasswordHasBeenSet
bool PasswordHasBeenSet() const
Definition: CreateDirectoryRequest.h:175
Aws::DirectoryService::Model::CreateDirectoryRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateDirectoryRequest.h:38
DirectoryServiceRequest.h
Aws::DirectoryService::Model::CreateDirectoryRequest::SetSize
void SetSize(DirectorySize &&value)
Definition: CreateDirectoryRequest.h:363
Aws::DirectoryService::Model::DirectoryVpcSettings
Definition: DirectoryVpcSettings.h:34
Aws::DirectoryService::Model::CreateDirectoryRequest::GetShortName
const Aws::String & GetShortName() const
Definition: CreateDirectoryRequest.h:97
Aws::DirectoryService::Model::CreateDirectoryRequest::SetName
void SetName(const Aws::String &value)
Definition: CreateDirectoryRequest.h:61
Aws::DirectoryService::Model::CreateDirectoryRequest::SetVpcSettings
void SetVpcSettings(const DirectoryVpcSettings &value)
Definition: CreateDirectoryRequest.h:392