/** * 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 about an AD Connector directory.

See * Also:

AWS * API Reference

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

The identifier of the VPC that the AD Connector is in.

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

The identifier of the VPC that the AD Connector is in.

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

The identifier of the VPC that the AD Connector is in.

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

The identifier of the VPC that the AD Connector is in.

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

The identifier of the VPC that the AD Connector is in.

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

The identifier of the VPC that the AD Connector is in.

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

The identifier of the VPC that the AD Connector is in.

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

The identifier of the VPC that the AD Connector is in.

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

A list of subnet identifiers in the VPC that the AD Connector is in.

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

A list of subnet identifiers in the VPC that the AD Connector is in.

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

A list of subnet identifiers in the VPC that the AD Connector is in.

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

A list of subnet identifiers in the VPC that the AD Connector is in.

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

A list of subnet identifiers in the VPC that the AD Connector is in.

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

A list of subnet identifiers in the VPC that the AD Connector is in.

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

A list of subnet identifiers in the VPC that the AD Connector is in.

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

A list of subnet identifiers in the VPC that the AD Connector is in.

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

A list of subnet identifiers in the VPC that the AD Connector is in.

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

The user name of the service account in your self-managed directory.

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

The user name of the service account in your self-managed directory.

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

The user name of the service account in your self-managed directory.

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

The user name of the service account in your self-managed directory.

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

The user name of the service account in your self-managed directory.

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

The user name of the service account in your self-managed directory.

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

The user name of the service account in your self-managed directory.

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

The user name of the service account in your self-managed directory.

*/ inline DirectoryConnectSettingsDescription& WithCustomerUserName(const char* value) { SetCustomerUserName(value); return *this;} /** *

The security group identifier for the AD Connector directory.

*/ inline const Aws::String& GetSecurityGroupId() const{ return m_securityGroupId; } /** *

The security group identifier for the AD Connector directory.

*/ inline bool SecurityGroupIdHasBeenSet() const { return m_securityGroupIdHasBeenSet; } /** *

The security group identifier for the AD Connector directory.

*/ inline void SetSecurityGroupId(const Aws::String& value) { m_securityGroupIdHasBeenSet = true; m_securityGroupId = value; } /** *

The security group identifier for the AD Connector directory.

*/ inline void SetSecurityGroupId(Aws::String&& value) { m_securityGroupIdHasBeenSet = true; m_securityGroupId = std::move(value); } /** *

The security group identifier for the AD Connector directory.

*/ inline void SetSecurityGroupId(const char* value) { m_securityGroupIdHasBeenSet = true; m_securityGroupId.assign(value); } /** *

The security group identifier for the AD Connector directory.

*/ inline DirectoryConnectSettingsDescription& WithSecurityGroupId(const Aws::String& value) { SetSecurityGroupId(value); return *this;} /** *

The security group identifier for the AD Connector directory.

*/ inline DirectoryConnectSettingsDescription& WithSecurityGroupId(Aws::String&& value) { SetSecurityGroupId(std::move(value)); return *this;} /** *

The security group identifier for the AD Connector directory.

*/ inline DirectoryConnectSettingsDescription& WithSecurityGroupId(const char* value) { SetSecurityGroupId(value); return *this;} /** *

A list of the Availability Zones that the directory is in.

*/ inline const Aws::Vector& GetAvailabilityZones() const{ return m_availabilityZones; } /** *

A list of the Availability Zones that the directory is in.

*/ inline bool AvailabilityZonesHasBeenSet() const { return m_availabilityZonesHasBeenSet; } /** *

A list of the Availability Zones that the directory is in.

*/ inline void SetAvailabilityZones(const Aws::Vector& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones = value; } /** *

A list of the Availability Zones that the directory is in.

*/ inline void SetAvailabilityZones(Aws::Vector&& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones = std::move(value); } /** *

A list of the Availability Zones that the directory is in.

*/ inline DirectoryConnectSettingsDescription& WithAvailabilityZones(const Aws::Vector& value) { SetAvailabilityZones(value); return *this;} /** *

A list of the Availability Zones that the directory is in.

*/ inline DirectoryConnectSettingsDescription& WithAvailabilityZones(Aws::Vector&& value) { SetAvailabilityZones(std::move(value)); return *this;} /** *

A list of the Availability Zones that the directory is in.

*/ inline DirectoryConnectSettingsDescription& AddAvailabilityZones(const Aws::String& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones.push_back(value); return *this; } /** *

A list of the Availability Zones that the directory is in.

*/ inline DirectoryConnectSettingsDescription& AddAvailabilityZones(Aws::String&& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones.push_back(std::move(value)); return *this; } /** *

A list of the Availability Zones that the directory is in.

*/ inline DirectoryConnectSettingsDescription& AddAvailabilityZones(const char* value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones.push_back(value); return *this; } /** *

The IP addresses of the AD Connector servers.

*/ inline const Aws::Vector& GetConnectIps() const{ return m_connectIps; } /** *

The IP addresses of the AD Connector servers.

*/ inline bool ConnectIpsHasBeenSet() const { return m_connectIpsHasBeenSet; } /** *

The IP addresses of the AD Connector servers.

*/ inline void SetConnectIps(const Aws::Vector& value) { m_connectIpsHasBeenSet = true; m_connectIps = value; } /** *

The IP addresses of the AD Connector servers.

*/ inline void SetConnectIps(Aws::Vector&& value) { m_connectIpsHasBeenSet = true; m_connectIps = std::move(value); } /** *

The IP addresses of the AD Connector servers.

*/ inline DirectoryConnectSettingsDescription& WithConnectIps(const Aws::Vector& value) { SetConnectIps(value); return *this;} /** *

The IP addresses of the AD Connector servers.

*/ inline DirectoryConnectSettingsDescription& WithConnectIps(Aws::Vector&& value) { SetConnectIps(std::move(value)); return *this;} /** *

The IP addresses of the AD Connector servers.

*/ inline DirectoryConnectSettingsDescription& AddConnectIps(const Aws::String& value) { m_connectIpsHasBeenSet = true; m_connectIps.push_back(value); return *this; } /** *

The IP addresses of the AD Connector servers.

*/ inline DirectoryConnectSettingsDescription& AddConnectIps(Aws::String&& value) { m_connectIpsHasBeenSet = true; m_connectIps.push_back(std::move(value)); return *this; } /** *

The IP addresses of the AD Connector servers.

*/ inline DirectoryConnectSettingsDescription& AddConnectIps(const char* value) { m_connectIpsHasBeenSet = true; m_connectIps.push_back(value); return *this; } private: Aws::String m_vpcId; bool m_vpcIdHasBeenSet = false; Aws::Vector m_subnetIds; bool m_subnetIdsHasBeenSet = false; Aws::String m_customerUserName; bool m_customerUserNameHasBeenSet = false; Aws::String m_securityGroupId; bool m_securityGroupIdHasBeenSet = false; Aws::Vector m_availabilityZones; bool m_availabilityZonesHasBeenSet = false; Aws::Vector m_connectIps; bool m_connectIpsHasBeenSet = false; }; } // namespace Model } // namespace DirectoryService } // namespace Aws