/** * 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 ConnectDirectory operation.

See * Also:

AWS * API Reference

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

The fully qualified name of your self-managed directory, such as * corp.example.com.

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

The fully qualified name of your self-managed directory, such as * corp.example.com.

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

The fully qualified name of your self-managed directory, such as * corp.example.com.

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

The fully qualified name of your self-managed directory, such as * corp.example.com.

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

The fully qualified name of your self-managed directory, such as * corp.example.com.

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

The fully qualified name of your self-managed directory, such as * corp.example.com.

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

The fully qualified name of your self-managed directory, such as * corp.example.com.

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

The fully qualified name of your self-managed directory, such as * corp.example.com.

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

The NetBIOS name of your self-managed directory, such as * CORP.

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

The NetBIOS name of your self-managed directory, such as * CORP.

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

The NetBIOS name of your self-managed directory, such as * CORP.

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

The NetBIOS name of your self-managed directory, such as * CORP.

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

The NetBIOS name of your self-managed directory, such as * CORP.

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

The NetBIOS name of your self-managed directory, such as * CORP.

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

The NetBIOS name of your self-managed directory, such as * CORP.

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

The NetBIOS name of your self-managed directory, such as * CORP.

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

The password for your self-managed user account.

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

The password for your self-managed user account.

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

The password for your self-managed user account.

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

The password for your self-managed user account.

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

The password for your self-managed user account.

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

The password for your self-managed user account.

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

The password for your self-managed user account.

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

The password for your self-managed user account.

*/ inline ConnectDirectoryRequest& 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 ConnectDirectoryRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

A description for the directory.

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

A description for the directory.

*/ inline ConnectDirectoryRequest& 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 ConnectDirectoryRequest& WithSize(const DirectorySize& value) { SetSize(value); return *this;} /** *

The size of the directory.

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

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

*/ inline const DirectoryConnectSettings& GetConnectSettings() const{ return m_connectSettings; } /** *

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

*/ inline bool ConnectSettingsHasBeenSet() const { return m_connectSettingsHasBeenSet; } /** *

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

*/ inline void SetConnectSettings(const DirectoryConnectSettings& value) { m_connectSettingsHasBeenSet = true; m_connectSettings = value; } /** *

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

*/ inline void SetConnectSettings(DirectoryConnectSettings&& value) { m_connectSettingsHasBeenSet = true; m_connectSettings = std::move(value); } /** *

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

*/ inline ConnectDirectoryRequest& WithConnectSettings(const DirectoryConnectSettings& value) { SetConnectSettings(value); return *this;} /** *

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

*/ inline ConnectDirectoryRequest& WithConnectSettings(DirectoryConnectSettings&& value) { SetConnectSettings(std::move(value)); return *this;} /** *

The tags to be assigned to AD Connector.

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

The tags to be assigned to AD Connector.

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

The tags to be assigned to AD Connector.

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

The tags to be assigned to AD Connector.

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

The tags to be assigned to AD Connector.

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

The tags to be assigned to AD Connector.

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

The tags to be assigned to AD Connector.

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

The tags to be assigned to AD Connector.

*/ inline ConnectDirectoryRequest& 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; DirectoryConnectSettings m_connectSettings; bool m_connectSettingsHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace DirectoryService } // namespace Aws