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

Contains information for the ConnectDirectory operation when an AD * Connector directory is being created.

See Also:

AWS * API Reference

*/ class DirectoryConnectSettings { public: AWS_DIRECTORYSERVICE_API DirectoryConnectSettings(); AWS_DIRECTORYSERVICE_API DirectoryConnectSettings(Aws::Utils::Json::JsonView jsonValue); AWS_DIRECTORYSERVICE_API DirectoryConnectSettings& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_DIRECTORYSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The identifier of the VPC in which the AD Connector is created.

*/ inline const Aws::String& GetVpcId() const{ return m_vpcId; } /** *

The identifier of the VPC in which the AD Connector is created.

*/ inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; } /** *

The identifier of the VPC in which the AD Connector is created.

*/ inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; } /** *

The identifier of the VPC in which the AD Connector is created.

*/ inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); } /** *

The identifier of the VPC in which the AD Connector is created.

*/ inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); } /** *

The identifier of the VPC in which the AD Connector is created.

*/ inline DirectoryConnectSettings& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;} /** *

The identifier of the VPC in which the AD Connector is created.

*/ inline DirectoryConnectSettings& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;} /** *

The identifier of the VPC in which the AD Connector is created.

*/ inline DirectoryConnectSettings& WithVpcId(const char* value) { SetVpcId(value); return *this;} /** *

A list of subnet identifiers in the VPC in which the AD Connector is * created.

*/ inline const Aws::Vector& GetSubnetIds() const{ return m_subnetIds; } /** *

A list of subnet identifiers in the VPC in which the AD Connector is * created.

*/ inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; } /** *

A list of subnet identifiers in the VPC in which the AD Connector is * created.

*/ inline void SetSubnetIds(const Aws::Vector& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = value; } /** *

A list of subnet identifiers in the VPC in which the AD Connector is * created.

*/ inline void SetSubnetIds(Aws::Vector&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::move(value); } /** *

A list of subnet identifiers in the VPC in which the AD Connector is * created.

*/ inline DirectoryConnectSettings& WithSubnetIds(const Aws::Vector& value) { SetSubnetIds(value); return *this;} /** *

A list of subnet identifiers in the VPC in which the AD Connector is * created.

*/ inline DirectoryConnectSettings& WithSubnetIds(Aws::Vector&& value) { SetSubnetIds(std::move(value)); return *this;} /** *

A list of subnet identifiers in the VPC in which the AD Connector is * created.

*/ inline DirectoryConnectSettings& AddSubnetIds(const Aws::String& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; } /** *

A list of subnet identifiers in the VPC in which the AD Connector is * created.

*/ inline DirectoryConnectSettings& AddSubnetIds(Aws::String&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(std::move(value)); return *this; } /** *

A list of subnet identifiers in the VPC in which the AD Connector is * created.

*/ inline DirectoryConnectSettings& AddSubnetIds(const char* value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; } /** *

A list of one or more IP addresses of DNS servers or domain controllers in * your self-managed directory.

*/ inline const Aws::Vector& GetCustomerDnsIps() const{ return m_customerDnsIps; } /** *

A list of one or more IP addresses of DNS servers or domain controllers in * your self-managed directory.

*/ inline bool CustomerDnsIpsHasBeenSet() const { return m_customerDnsIpsHasBeenSet; } /** *

A list of one or more IP addresses of DNS servers or domain controllers in * your self-managed directory.

*/ inline void SetCustomerDnsIps(const Aws::Vector& value) { m_customerDnsIpsHasBeenSet = true; m_customerDnsIps = value; } /** *

A list of one or more IP addresses of DNS servers or domain controllers in * your self-managed directory.

*/ inline void SetCustomerDnsIps(Aws::Vector&& value) { m_customerDnsIpsHasBeenSet = true; m_customerDnsIps = std::move(value); } /** *

A list of one or more IP addresses of DNS servers or domain controllers in * your self-managed directory.

*/ inline DirectoryConnectSettings& WithCustomerDnsIps(const Aws::Vector& value) { SetCustomerDnsIps(value); return *this;} /** *

A list of one or more IP addresses of DNS servers or domain controllers in * your self-managed directory.

*/ inline DirectoryConnectSettings& WithCustomerDnsIps(Aws::Vector&& value) { SetCustomerDnsIps(std::move(value)); return *this;} /** *

A list of one or more IP addresses of DNS servers or domain controllers in * your self-managed directory.

*/ inline DirectoryConnectSettings& AddCustomerDnsIps(const Aws::String& value) { m_customerDnsIpsHasBeenSet = true; m_customerDnsIps.push_back(value); return *this; } /** *

A list of one or more IP addresses of DNS servers or domain controllers in * your self-managed directory.

*/ inline DirectoryConnectSettings& AddCustomerDnsIps(Aws::String&& value) { m_customerDnsIpsHasBeenSet = true; m_customerDnsIps.push_back(std::move(value)); return *this; } /** *

A list of one or more IP addresses of DNS servers or domain controllers in * your self-managed directory.

*/ inline DirectoryConnectSettings& AddCustomerDnsIps(const char* value) { m_customerDnsIpsHasBeenSet = true; m_customerDnsIps.push_back(value); return *this; } /** *

The user name of an account in your self-managed directory that is used to * connect to the directory. This account must have the following permissions:

*
  • Read users and groups

  • Create computer objects

    *
  • Join computers to the domain

*/ inline const Aws::String& GetCustomerUserName() const{ return m_customerUserName; } /** *

The user name of an account in your self-managed directory that is used to * connect to the directory. This account must have the following permissions:

*
  • Read users and groups

  • Create computer objects

    *
  • Join computers to the domain

*/ inline bool CustomerUserNameHasBeenSet() const { return m_customerUserNameHasBeenSet; } /** *

The user name of an account in your self-managed directory that is used to * connect to the directory. This account must have the following permissions:

*
  • Read users and groups

  • Create computer objects

    *
  • Join computers to the domain

*/ inline void SetCustomerUserName(const Aws::String& value) { m_customerUserNameHasBeenSet = true; m_customerUserName = value; } /** *

The user name of an account in your self-managed directory that is used to * connect to the directory. This account must have the following permissions:

*
  • Read users and groups

  • Create computer objects

    *
  • Join computers to the domain

*/ inline void SetCustomerUserName(Aws::String&& value) { m_customerUserNameHasBeenSet = true; m_customerUserName = std::move(value); } /** *

The user name of an account in your self-managed directory that is used to * connect to the directory. This account must have the following permissions:

*
  • Read users and groups

  • Create computer objects

    *
  • Join computers to the domain

*/ inline void SetCustomerUserName(const char* value) { m_customerUserNameHasBeenSet = true; m_customerUserName.assign(value); } /** *

The user name of an account in your self-managed directory that is used to * connect to the directory. This account must have the following permissions:

*
  • Read users and groups

  • Create computer objects

    *
  • Join computers to the domain

*/ inline DirectoryConnectSettings& WithCustomerUserName(const Aws::String& value) { SetCustomerUserName(value); return *this;} /** *

The user name of an account in your self-managed directory that is used to * connect to the directory. This account must have the following permissions:

*
  • Read users and groups

  • Create computer objects

    *
  • Join computers to the domain

*/ inline DirectoryConnectSettings& WithCustomerUserName(Aws::String&& value) { SetCustomerUserName(std::move(value)); return *this;} /** *

The user name of an account in your self-managed directory that is used to * connect to the directory. This account must have the following permissions:

*
  • Read users and groups

  • Create computer objects

    *
  • Join computers to the domain

*/ inline DirectoryConnectSettings& WithCustomerUserName(const char* value) { SetCustomerUserName(value); return *this;} private: Aws::String m_vpcId; bool m_vpcIdHasBeenSet = false; Aws::Vector m_subnetIds; bool m_subnetIdsHasBeenSet = false; Aws::Vector m_customerDnsIps; bool m_customerDnsIpsHasBeenSet = false; Aws::String m_customerUserName; bool m_customerUserNameHasBeenSet = false; }; } // namespace Model } // namespace DirectoryService } // namespace Aws