/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include namespace Aws { namespace DirectoryService { namespace Model { /** *

Contains the inputs for the CreateDirectory operation.

See * Also:

AWS * API Reference

*/ class CreateDirectoryRequest : public DirectoryServiceRequest { public: AWS_DIRECTORYSERVICE_API CreateDirectoryRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CreateDirectory"; } AWS_DIRECTORYSERVICE_API Aws::String SerializePayload() const override; AWS_DIRECTORYSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The fully qualified name for the directory, such as * corp.example.com.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The fully qualified name for the directory, such as * corp.example.com.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The fully qualified name for the directory, such as * corp.example.com.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The fully qualified name for the directory, such as * corp.example.com.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The fully qualified name for the directory, such as * corp.example.com.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The fully qualified name for the directory, such as * corp.example.com.

*/ inline CreateDirectoryRequest& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The fully qualified name for the directory, such as * corp.example.com.

*/ inline CreateDirectoryRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The fully qualified name for the directory, such as * corp.example.com.

*/ inline CreateDirectoryRequest& WithName(const char* value) { SetName(value); return *this;} /** *

The NetBIOS name of the directory, such as CORP.

*/ inline const Aws::String& GetShortName() const{ return m_shortName; } /** *

The NetBIOS name of the directory, such as CORP.

*/ inline bool ShortNameHasBeenSet() const { return m_shortNameHasBeenSet; } /** *

The NetBIOS name of the directory, such as CORP.

*/ inline void SetShortName(const Aws::String& value) { m_shortNameHasBeenSet = true; m_shortName = value; } /** *

The NetBIOS name of the directory, such as CORP.

*/ inline void SetShortName(Aws::String&& value) { m_shortNameHasBeenSet = true; m_shortName = std::move(value); } /** *

The NetBIOS name of the directory, such as CORP.

*/ inline void SetShortName(const char* value) { m_shortNameHasBeenSet = true; m_shortName.assign(value); } /** *

The NetBIOS name of the directory, such as CORP.

*/ inline CreateDirectoryRequest& WithShortName(const Aws::String& value) { SetShortName(value); return *this;} /** *

The NetBIOS name of the directory, such as CORP.

*/ inline CreateDirectoryRequest& WithShortName(Aws::String&& value) { SetShortName(std::move(value)); return *this;} /** *

The NetBIOS name of the directory, such as CORP.

*/ inline CreateDirectoryRequest& WithShortName(const char* value) { SetShortName(value); return *this;} /** *

The password for the directory administrator. The directory creation process * creates a directory administrator account with the user name * Administrator and this password.

If you need to change the * password for the administrator account, you can use the ResetUserPassword * API call.

The regex pattern for this string is made up of the following * conditions:

  • Length (?=^.{8,64}$) – Must be between 8 and 64 * characters

AND any 3 of the following password complexity * rules required by Active Directory:

  • Numbers and upper case and * lowercase (?=.*\d)(?=.*[A-Z])(?=.*[a-z])

  • Numbers and special * characters and lower case (?=.*\d)(?=.*[^A-Za-z0-9\s])(?=.*[a-z])

  • *

    Special characters and upper case and lower case * (?=.*[^A-Za-z0-9\s])(?=.*[A-Z])(?=.*[a-z])

  • Numbers and upper * case and special characters (?=.*\d)(?=.*[A-Z])(?=.*[^A-Za-z0-9\s])

  • *

For additional information about how Active Directory passwords are * enforced, see Password * must meet complexity requirements on the Microsoft website.

*/ inline const Aws::String& GetPassword() const{ return m_password; } /** *

The password for the directory administrator. The directory creation process * creates a directory administrator account with the user name * Administrator and this password.

If you need to change the * password for the administrator account, you can use the ResetUserPassword * API call.

The regex pattern for this string is made up of the following * conditions:

  • Length (?=^.{8,64}$) – Must be between 8 and 64 * characters

AND any 3 of the following password complexity * rules required by Active Directory:

  • Numbers and upper case and * lowercase (?=.*\d)(?=.*[A-Z])(?=.*[a-z])

  • Numbers and special * characters and lower case (?=.*\d)(?=.*[^A-Za-z0-9\s])(?=.*[a-z])

  • *

    Special characters and upper case and lower case * (?=.*[^A-Za-z0-9\s])(?=.*[A-Z])(?=.*[a-z])

  • Numbers and upper * case and special characters (?=.*\d)(?=.*[A-Z])(?=.*[^A-Za-z0-9\s])

  • *

For additional information about how Active Directory passwords are * enforced, see Password * must meet complexity requirements on the Microsoft website.

*/ inline bool PasswordHasBeenSet() const { return m_passwordHasBeenSet; } /** *

The password for the directory administrator. The directory creation process * creates a directory administrator account with the user name * Administrator and this password.

If you need to change the * password for the administrator account, you can use the ResetUserPassword * API call.

The regex pattern for this string is made up of the following * conditions:

  • Length (?=^.{8,64}$) – Must be between 8 and 64 * characters

AND any 3 of the following password complexity * rules required by Active Directory:

  • Numbers and upper case and * lowercase (?=.*\d)(?=.*[A-Z])(?=.*[a-z])

  • Numbers and special * characters and lower case (?=.*\d)(?=.*[^A-Za-z0-9\s])(?=.*[a-z])

  • *

    Special characters and upper case and lower case * (?=.*[^A-Za-z0-9\s])(?=.*[A-Z])(?=.*[a-z])

  • Numbers and upper * case and special characters (?=.*\d)(?=.*[A-Z])(?=.*[^A-Za-z0-9\s])

  • *

For additional information about how Active Directory passwords are * enforced, see Password * must meet complexity requirements on the Microsoft website.

*/ inline void SetPassword(const Aws::String& value) { m_passwordHasBeenSet = true; m_password = value; } /** *

The password for the directory administrator. The directory creation process * creates a directory administrator account with the user name * Administrator and this password.

If you need to change the * password for the administrator account, you can use the ResetUserPassword * API call.

The regex pattern for this string is made up of the following * conditions:

  • Length (?=^.{8,64}$) – Must be between 8 and 64 * characters

AND any 3 of the following password complexity * rules required by Active Directory:

  • Numbers and upper case and * lowercase (?=.*\d)(?=.*[A-Z])(?=.*[a-z])

  • Numbers and special * characters and lower case (?=.*\d)(?=.*[^A-Za-z0-9\s])(?=.*[a-z])

  • *

    Special characters and upper case and lower case * (?=.*[^A-Za-z0-9\s])(?=.*[A-Z])(?=.*[a-z])

  • Numbers and upper * case and special characters (?=.*\d)(?=.*[A-Z])(?=.*[^A-Za-z0-9\s])

  • *

For additional information about how Active Directory passwords are * enforced, see Password * must meet complexity requirements on the Microsoft website.

*/ inline void SetPassword(Aws::String&& value) { m_passwordHasBeenSet = true; m_password = std::move(value); } /** *

The password for the directory administrator. The directory creation process * creates a directory administrator account with the user name * Administrator and this password.

If you need to change the * password for the administrator account, you can use the ResetUserPassword * API call.

The regex pattern for this string is made up of the following * conditions:

  • Length (?=^.{8,64}$) – Must be between 8 and 64 * characters

AND any 3 of the following password complexity * rules required by Active Directory:

  • Numbers and upper case and * lowercase (?=.*\d)(?=.*[A-Z])(?=.*[a-z])

  • Numbers and special * characters and lower case (?=.*\d)(?=.*[^A-Za-z0-9\s])(?=.*[a-z])

  • *

    Special characters and upper case and lower case * (?=.*[^A-Za-z0-9\s])(?=.*[A-Z])(?=.*[a-z])

  • Numbers and upper * case and special characters (?=.*\d)(?=.*[A-Z])(?=.*[^A-Za-z0-9\s])

  • *

For additional information about how Active Directory passwords are * enforced, see Password * must meet complexity requirements on the Microsoft website.

*/ inline void SetPassword(const char* value) { m_passwordHasBeenSet = true; m_password.assign(value); } /** *

The password for the directory administrator. The directory creation process * creates a directory administrator account with the user name * Administrator and this password.

If you need to change the * password for the administrator account, you can use the ResetUserPassword * API call.

The regex pattern for this string is made up of the following * conditions:

  • Length (?=^.{8,64}$) – Must be between 8 and 64 * characters

AND any 3 of the following password complexity * rules required by Active Directory:

  • Numbers and upper case and * lowercase (?=.*\d)(?=.*[A-Z])(?=.*[a-z])

  • Numbers and special * characters and lower case (?=.*\d)(?=.*[^A-Za-z0-9\s])(?=.*[a-z])

  • *

    Special characters and upper case and lower case * (?=.*[^A-Za-z0-9\s])(?=.*[A-Z])(?=.*[a-z])

  • Numbers and upper * case and special characters (?=.*\d)(?=.*[A-Z])(?=.*[^A-Za-z0-9\s])

  • *

For additional information about how Active Directory passwords are * enforced, see Password * must meet complexity requirements on the Microsoft website.

*/ inline CreateDirectoryRequest& WithPassword(const Aws::String& value) { SetPassword(value); return *this;} /** *

The password for the directory administrator. The directory creation process * creates a directory administrator account with the user name * Administrator and this password.

If you need to change the * password for the administrator account, you can use the ResetUserPassword * API call.

The regex pattern for this string is made up of the following * conditions:

  • Length (?=^.{8,64}$) – Must be between 8 and 64 * characters

AND any 3 of the following password complexity * rules required by Active Directory:

  • Numbers and upper case and * lowercase (?=.*\d)(?=.*[A-Z])(?=.*[a-z])

  • Numbers and special * characters and lower case (?=.*\d)(?=.*[^A-Za-z0-9\s])(?=.*[a-z])

  • *

    Special characters and upper case and lower case * (?=.*[^A-Za-z0-9\s])(?=.*[A-Z])(?=.*[a-z])

  • Numbers and upper * case and special characters (?=.*\d)(?=.*[A-Z])(?=.*[^A-Za-z0-9\s])

  • *

For additional information about how Active Directory passwords are * enforced, see Password * must meet complexity requirements on the Microsoft website.

*/ inline CreateDirectoryRequest& WithPassword(Aws::String&& value) { SetPassword(std::move(value)); return *this;} /** *

The password for the directory administrator. The directory creation process * creates a directory administrator account with the user name * Administrator and this password.

If you need to change the * password for the administrator account, you can use the ResetUserPassword * API call.

The regex pattern for this string is made up of the following * conditions:

  • Length (?=^.{8,64}$) – Must be between 8 and 64 * characters

AND any 3 of the following password complexity * rules required by Active Directory:

  • Numbers and upper case and * lowercase (?=.*\d)(?=.*[A-Z])(?=.*[a-z])

  • Numbers and special * characters and lower case (?=.*\d)(?=.*[^A-Za-z0-9\s])(?=.*[a-z])

  • *

    Special characters and upper case and lower case * (?=.*[^A-Za-z0-9\s])(?=.*[A-Z])(?=.*[a-z])

  • Numbers and upper * case and special characters (?=.*\d)(?=.*[A-Z])(?=.*[^A-Za-z0-9\s])

  • *

For additional information about how Active Directory passwords are * enforced, see Password * must meet complexity requirements on the Microsoft website.

*/ inline CreateDirectoryRequest& WithPassword(const char* value) { SetPassword(value); return *this;} /** *

A description for the directory.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

A description for the directory.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

A description for the directory.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

A description for the directory.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

A description for the directory.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

A description for the directory.

*/ inline CreateDirectoryRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

A description for the directory.

*/ inline CreateDirectoryRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

A description for the directory.

*/ inline CreateDirectoryRequest& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The size of the directory.

*/ inline const DirectorySize& GetSize() const{ return m_size; } /** *

The size of the directory.

*/ inline bool SizeHasBeenSet() const { return m_sizeHasBeenSet; } /** *

The size of the directory.

*/ inline void SetSize(const DirectorySize& value) { m_sizeHasBeenSet = true; m_size = value; } /** *

The size of the directory.

*/ inline void SetSize(DirectorySize&& value) { m_sizeHasBeenSet = true; m_size = std::move(value); } /** *

The size of the directory.

*/ inline CreateDirectoryRequest& WithSize(const DirectorySize& value) { SetSize(value); return *this;} /** *

The size of the directory.

*/ inline CreateDirectoryRequest& WithSize(DirectorySize&& value) { SetSize(std::move(value)); return *this;} /** *

A DirectoryVpcSettings object that contains additional information for * the operation.

*/ inline const DirectoryVpcSettings& GetVpcSettings() const{ return m_vpcSettings; } /** *

A DirectoryVpcSettings object that contains additional information for * the operation.

*/ inline bool VpcSettingsHasBeenSet() const { return m_vpcSettingsHasBeenSet; } /** *

A DirectoryVpcSettings object that contains additional information for * the operation.

*/ inline void SetVpcSettings(const DirectoryVpcSettings& value) { m_vpcSettingsHasBeenSet = true; m_vpcSettings = value; } /** *

A DirectoryVpcSettings object that contains additional information for * the operation.

*/ inline void SetVpcSettings(DirectoryVpcSettings&& value) { m_vpcSettingsHasBeenSet = true; m_vpcSettings = std::move(value); } /** *

A DirectoryVpcSettings object that contains additional information for * the operation.

*/ inline CreateDirectoryRequest& WithVpcSettings(const DirectoryVpcSettings& value) { SetVpcSettings(value); return *this;} /** *

A DirectoryVpcSettings object that contains additional information for * the operation.

*/ inline CreateDirectoryRequest& WithVpcSettings(DirectoryVpcSettings&& value) { SetVpcSettings(std::move(value)); return *this;} /** *

The tags to be assigned to the Simple AD directory.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

The tags to be assigned to the Simple AD directory.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

The tags to be assigned to the Simple AD directory.

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

The tags to be assigned to the Simple AD directory.

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

The tags to be assigned to the Simple AD directory.

*/ inline CreateDirectoryRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

The tags to be assigned to the Simple AD directory.

*/ inline CreateDirectoryRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

The tags to be assigned to the Simple AD directory.

*/ inline CreateDirectoryRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

The tags to be assigned to the Simple AD directory.

*/ inline CreateDirectoryRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_shortName; bool m_shortNameHasBeenSet = false; Aws::String m_password; bool m_passwordHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; DirectorySize m_size; bool m_sizeHasBeenSet = false; DirectoryVpcSettings m_vpcSettings; bool m_vpcSettingsHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace DirectoryService } // namespace Aws