/** * 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 { /** *

Creates an Managed Microsoft AD directory.

See Also:

AWS * API Reference

*/ class CreateMicrosoftADRequest : public DirectoryServiceRequest { public: AWS_DIRECTORYSERVICE_API CreateMicrosoftADRequest(); // 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 "CreateMicrosoftAD"; } AWS_DIRECTORYSERVICE_API Aws::String SerializePayload() const override; AWS_DIRECTORYSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The fully qualified domain name for the Managed Microsoft AD directory, such * as corp.example.com. This name will resolve inside your VPC only. * It does not need to be publicly resolvable.

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

The fully qualified domain name for the Managed Microsoft AD directory, such * as corp.example.com. This name will resolve inside your VPC only. * It does not need to be publicly resolvable.

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

The fully qualified domain name for the Managed Microsoft AD directory, such * as corp.example.com. This name will resolve inside your VPC only. * It does not need to be publicly resolvable.

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

The fully qualified domain name for the Managed Microsoft AD directory, such * as corp.example.com. This name will resolve inside your VPC only. * It does not need to be publicly resolvable.

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

The fully qualified domain name for the Managed Microsoft AD directory, such * as corp.example.com. This name will resolve inside your VPC only. * It does not need to be publicly resolvable.

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

The fully qualified domain name for the Managed Microsoft AD directory, such * as corp.example.com. This name will resolve inside your VPC only. * It does not need to be publicly resolvable.

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

The fully qualified domain name for the Managed Microsoft AD directory, such * as corp.example.com. This name will resolve inside your VPC only. * It does not need to be publicly resolvable.

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

The fully qualified domain name for the Managed Microsoft AD directory, such * as corp.example.com. This name will resolve inside your VPC only. * It does not need to be publicly resolvable.

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

The NetBIOS name for your domain, such as CORP. If you don't * specify a NetBIOS name, it will default to the first part of your directory DNS. * For example, CORP for the directory DNS * corp.example.com.

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

The NetBIOS name for your domain, such as CORP. If you don't * specify a NetBIOS name, it will default to the first part of your directory DNS. * For example, CORP for the directory DNS * corp.example.com.

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

The NetBIOS name for your domain, such as CORP. If you don't * specify a NetBIOS name, it will default to the first part of your directory DNS. * For example, CORP for the directory DNS * corp.example.com.

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

The NetBIOS name for your domain, such as CORP. If you don't * specify a NetBIOS name, it will default to the first part of your directory DNS. * For example, CORP for the directory DNS * corp.example.com.

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

The NetBIOS name for your domain, such as CORP. If you don't * specify a NetBIOS name, it will default to the first part of your directory DNS. * For example, CORP for the directory DNS * corp.example.com.

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

The NetBIOS name for your domain, such as CORP. If you don't * specify a NetBIOS name, it will default to the first part of your directory DNS. * For example, CORP for the directory DNS * corp.example.com.

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

The NetBIOS name for your domain, such as CORP. If you don't * specify a NetBIOS name, it will default to the first part of your directory DNS. * For example, CORP for the directory DNS * corp.example.com.

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

The NetBIOS name for your domain, such as CORP. If you don't * specify a NetBIOS name, it will default to the first part of your directory DNS. * For example, CORP for the directory DNS * corp.example.com.

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

The password for the default administrative user named * Admin.

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

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

The password for the default administrative user named * Admin.

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

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

The password for the default administrative user named * Admin.

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

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

The password for the default administrative user named * Admin.

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

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

The password for the default administrative user named * Admin.

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

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

The password for the default administrative user named * Admin.

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

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

The password for the default administrative user named * Admin.

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

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

The password for the default administrative user named * Admin.

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

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

A description for the directory. This label will appear on the Amazon Web * Services console Directory Details page after the directory is * created.

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

A description for the directory. This label will appear on the Amazon Web * Services console Directory Details page after the directory is * created.

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

A description for the directory. This label will appear on the Amazon Web * Services console Directory Details page after the directory is * created.

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

A description for the directory. This label will appear on the Amazon Web * Services console Directory Details page after the directory is * created.

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

A description for the directory. This label will appear on the Amazon Web * Services console Directory Details page after the directory is * created.

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

A description for the directory. This label will appear on the Amazon Web * Services console Directory Details page after the directory is * created.

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

A description for the directory. This label will appear on the Amazon Web * Services console Directory Details page after the directory is * created.

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

A description for the directory. This label will appear on the Amazon Web * Services console Directory Details page after the directory is * created.

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

Contains VPC information for the CreateDirectory or * CreateMicrosoftAD operation.

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

Contains VPC information for the CreateDirectory or * CreateMicrosoftAD operation.

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

Contains VPC information for the CreateDirectory or * CreateMicrosoftAD operation.

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

Contains VPC information for the CreateDirectory or * CreateMicrosoftAD operation.

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

Contains VPC information for the CreateDirectory or * CreateMicrosoftAD operation.

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

Contains VPC information for the CreateDirectory or * CreateMicrosoftAD operation.

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

Managed Microsoft AD is available in two editions: Standard and * Enterprise. Enterprise is the default.

*/ inline const DirectoryEdition& GetEdition() const{ return m_edition; } /** *

Managed Microsoft AD is available in two editions: Standard and * Enterprise. Enterprise is the default.

*/ inline bool EditionHasBeenSet() const { return m_editionHasBeenSet; } /** *

Managed Microsoft AD is available in two editions: Standard and * Enterprise. Enterprise is the default.

*/ inline void SetEdition(const DirectoryEdition& value) { m_editionHasBeenSet = true; m_edition = value; } /** *

Managed Microsoft AD is available in two editions: Standard and * Enterprise. Enterprise is the default.

*/ inline void SetEdition(DirectoryEdition&& value) { m_editionHasBeenSet = true; m_edition = std::move(value); } /** *

Managed Microsoft AD is available in two editions: Standard and * Enterprise. Enterprise is the default.

*/ inline CreateMicrosoftADRequest& WithEdition(const DirectoryEdition& value) { SetEdition(value); return *this;} /** *

Managed Microsoft AD is available in two editions: Standard and * Enterprise. Enterprise is the default.

*/ inline CreateMicrosoftADRequest& WithEdition(DirectoryEdition&& value) { SetEdition(std::move(value)); return *this;} /** *

The tags to be assigned to the Managed Microsoft AD directory.

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

The tags to be assigned to the Managed Microsoft AD directory.

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

The tags to be assigned to the Managed Microsoft AD directory.

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

The tags to be assigned to the Managed Microsoft AD directory.

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

The tags to be assigned to the Managed Microsoft AD directory.

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

The tags to be assigned to the Managed Microsoft AD directory.

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

The tags to be assigned to the Managed Microsoft AD directory.

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

The tags to be assigned to the Managed Microsoft AD directory.

*/ inline CreateMicrosoftADRequest& 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; DirectoryVpcSettings m_vpcSettings; bool m_vpcSettingsHasBeenSet = false; DirectoryEdition m_edition; bool m_editionHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace DirectoryService } // namespace Aws