/** * 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 FSx { namespace Model { /** *

The configuration that Amazon FSx uses to join a FSx for Windows File Server * file system or an FSx for ONTAP storage virtual machine (SVM) to a self-managed * (including on-premises) Microsoft Active Directory (AD) directory. For more * information, see * Using Amazon FSx for Windows with your self-managed Microsoft Active * Directory or Managing * FSx for ONTAP SVMs.

See Also:

AWS * API Reference

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

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

*/ inline const Aws::String& GetDomainName() const{ return m_domainName; } /** *

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

*/ inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; } /** *

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

*/ inline void SetDomainName(const Aws::String& value) { m_domainNameHasBeenSet = true; m_domainName = value; } /** *

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

*/ inline void SetDomainName(Aws::String&& value) { m_domainNameHasBeenSet = true; m_domainName = std::move(value); } /** *

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

*/ inline void SetDomainName(const char* value) { m_domainNameHasBeenSet = true; m_domainName.assign(value); } /** *

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

*/ inline SelfManagedActiveDirectoryConfiguration& WithDomainName(const Aws::String& value) { SetDomainName(value); return *this;} /** *

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

*/ inline SelfManagedActiveDirectoryConfiguration& WithDomainName(Aws::String&& value) { SetDomainName(std::move(value)); return *this;} /** *

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

*/ inline SelfManagedActiveDirectoryConfiguration& WithDomainName(const char* value) { SetDomainName(value); return *this;} /** *

(Optional) The fully qualified distinguished name of the organizational unit * within your self-managed AD directory. Amazon FSx only accepts OU as the direct * parent of the file system. An example is * OU=FSx,DC=yourdomain,DC=corp,DC=com. To learn more, see RFC 2253. If none is provided, * the FSx file system is created in the default location of your self-managed AD * directory.

Only Organizational Unit (OU) objects can be the * direct parent of the file system that you're creating.

*/ inline const Aws::String& GetOrganizationalUnitDistinguishedName() const{ return m_organizationalUnitDistinguishedName; } /** *

(Optional) The fully qualified distinguished name of the organizational unit * within your self-managed AD directory. Amazon FSx only accepts OU as the direct * parent of the file system. An example is * OU=FSx,DC=yourdomain,DC=corp,DC=com. To learn more, see RFC 2253. If none is provided, * the FSx file system is created in the default location of your self-managed AD * directory.

Only Organizational Unit (OU) objects can be the * direct parent of the file system that you're creating.

*/ inline bool OrganizationalUnitDistinguishedNameHasBeenSet() const { return m_organizationalUnitDistinguishedNameHasBeenSet; } /** *

(Optional) The fully qualified distinguished name of the organizational unit * within your self-managed AD directory. Amazon FSx only accepts OU as the direct * parent of the file system. An example is * OU=FSx,DC=yourdomain,DC=corp,DC=com. To learn more, see RFC 2253. If none is provided, * the FSx file system is created in the default location of your self-managed AD * directory.

Only Organizational Unit (OU) objects can be the * direct parent of the file system that you're creating.

*/ inline void SetOrganizationalUnitDistinguishedName(const Aws::String& value) { m_organizationalUnitDistinguishedNameHasBeenSet = true; m_organizationalUnitDistinguishedName = value; } /** *

(Optional) The fully qualified distinguished name of the organizational unit * within your self-managed AD directory. Amazon FSx only accepts OU as the direct * parent of the file system. An example is * OU=FSx,DC=yourdomain,DC=corp,DC=com. To learn more, see RFC 2253. If none is provided, * the FSx file system is created in the default location of your self-managed AD * directory.

Only Organizational Unit (OU) objects can be the * direct parent of the file system that you're creating.

*/ inline void SetOrganizationalUnitDistinguishedName(Aws::String&& value) { m_organizationalUnitDistinguishedNameHasBeenSet = true; m_organizationalUnitDistinguishedName = std::move(value); } /** *

(Optional) The fully qualified distinguished name of the organizational unit * within your self-managed AD directory. Amazon FSx only accepts OU as the direct * parent of the file system. An example is * OU=FSx,DC=yourdomain,DC=corp,DC=com. To learn more, see RFC 2253. If none is provided, * the FSx file system is created in the default location of your self-managed AD * directory.

Only Organizational Unit (OU) objects can be the * direct parent of the file system that you're creating.

*/ inline void SetOrganizationalUnitDistinguishedName(const char* value) { m_organizationalUnitDistinguishedNameHasBeenSet = true; m_organizationalUnitDistinguishedName.assign(value); } /** *

(Optional) The fully qualified distinguished name of the organizational unit * within your self-managed AD directory. Amazon FSx only accepts OU as the direct * parent of the file system. An example is * OU=FSx,DC=yourdomain,DC=corp,DC=com. To learn more, see RFC 2253. If none is provided, * the FSx file system is created in the default location of your self-managed AD * directory.

Only Organizational Unit (OU) objects can be the * direct parent of the file system that you're creating.

*/ inline SelfManagedActiveDirectoryConfiguration& WithOrganizationalUnitDistinguishedName(const Aws::String& value) { SetOrganizationalUnitDistinguishedName(value); return *this;} /** *

(Optional) The fully qualified distinguished name of the organizational unit * within your self-managed AD directory. Amazon FSx only accepts OU as the direct * parent of the file system. An example is * OU=FSx,DC=yourdomain,DC=corp,DC=com. To learn more, see RFC 2253. If none is provided, * the FSx file system is created in the default location of your self-managed AD * directory.

Only Organizational Unit (OU) objects can be the * direct parent of the file system that you're creating.

*/ inline SelfManagedActiveDirectoryConfiguration& WithOrganizationalUnitDistinguishedName(Aws::String&& value) { SetOrganizationalUnitDistinguishedName(std::move(value)); return *this;} /** *

(Optional) The fully qualified distinguished name of the organizational unit * within your self-managed AD directory. Amazon FSx only accepts OU as the direct * parent of the file system. An example is * OU=FSx,DC=yourdomain,DC=corp,DC=com. To learn more, see RFC 2253. If none is provided, * the FSx file system is created in the default location of your self-managed AD * directory.

Only Organizational Unit (OU) objects can be the * direct parent of the file system that you're creating.

*/ inline SelfManagedActiveDirectoryConfiguration& WithOrganizationalUnitDistinguishedName(const char* value) { SetOrganizationalUnitDistinguishedName(value); return *this;} /** *

(Optional) The name of the domain group whose members are granted * administrative privileges for the file system. Administrative privileges include * taking ownership of files and folders, setting audit controls (audit ACLs) on * files and folders, and administering the file system remotely by using the FSx * Remote PowerShell. The group that you specify must already exist in your domain. * If you don't provide one, your AD domain's Domain Admins group is used.

*/ inline const Aws::String& GetFileSystemAdministratorsGroup() const{ return m_fileSystemAdministratorsGroup; } /** *

(Optional) The name of the domain group whose members are granted * administrative privileges for the file system. Administrative privileges include * taking ownership of files and folders, setting audit controls (audit ACLs) on * files and folders, and administering the file system remotely by using the FSx * Remote PowerShell. The group that you specify must already exist in your domain. * If you don't provide one, your AD domain's Domain Admins group is used.

*/ inline bool FileSystemAdministratorsGroupHasBeenSet() const { return m_fileSystemAdministratorsGroupHasBeenSet; } /** *

(Optional) The name of the domain group whose members are granted * administrative privileges for the file system. Administrative privileges include * taking ownership of files and folders, setting audit controls (audit ACLs) on * files and folders, and administering the file system remotely by using the FSx * Remote PowerShell. The group that you specify must already exist in your domain. * If you don't provide one, your AD domain's Domain Admins group is used.

*/ inline void SetFileSystemAdministratorsGroup(const Aws::String& value) { m_fileSystemAdministratorsGroupHasBeenSet = true; m_fileSystemAdministratorsGroup = value; } /** *

(Optional) The name of the domain group whose members are granted * administrative privileges for the file system. Administrative privileges include * taking ownership of files and folders, setting audit controls (audit ACLs) on * files and folders, and administering the file system remotely by using the FSx * Remote PowerShell. The group that you specify must already exist in your domain. * If you don't provide one, your AD domain's Domain Admins group is used.

*/ inline void SetFileSystemAdministratorsGroup(Aws::String&& value) { m_fileSystemAdministratorsGroupHasBeenSet = true; m_fileSystemAdministratorsGroup = std::move(value); } /** *

(Optional) The name of the domain group whose members are granted * administrative privileges for the file system. Administrative privileges include * taking ownership of files and folders, setting audit controls (audit ACLs) on * files and folders, and administering the file system remotely by using the FSx * Remote PowerShell. The group that you specify must already exist in your domain. * If you don't provide one, your AD domain's Domain Admins group is used.

*/ inline void SetFileSystemAdministratorsGroup(const char* value) { m_fileSystemAdministratorsGroupHasBeenSet = true; m_fileSystemAdministratorsGroup.assign(value); } /** *

(Optional) The name of the domain group whose members are granted * administrative privileges for the file system. Administrative privileges include * taking ownership of files and folders, setting audit controls (audit ACLs) on * files and folders, and administering the file system remotely by using the FSx * Remote PowerShell. The group that you specify must already exist in your domain. * If you don't provide one, your AD domain's Domain Admins group is used.

*/ inline SelfManagedActiveDirectoryConfiguration& WithFileSystemAdministratorsGroup(const Aws::String& value) { SetFileSystemAdministratorsGroup(value); return *this;} /** *

(Optional) The name of the domain group whose members are granted * administrative privileges for the file system. Administrative privileges include * taking ownership of files and folders, setting audit controls (audit ACLs) on * files and folders, and administering the file system remotely by using the FSx * Remote PowerShell. The group that you specify must already exist in your domain. * If you don't provide one, your AD domain's Domain Admins group is used.

*/ inline SelfManagedActiveDirectoryConfiguration& WithFileSystemAdministratorsGroup(Aws::String&& value) { SetFileSystemAdministratorsGroup(std::move(value)); return *this;} /** *

(Optional) The name of the domain group whose members are granted * administrative privileges for the file system. Administrative privileges include * taking ownership of files and folders, setting audit controls (audit ACLs) on * files and folders, and administering the file system remotely by using the FSx * Remote PowerShell. The group that you specify must already exist in your domain. * If you don't provide one, your AD domain's Domain Admins group is used.

*/ inline SelfManagedActiveDirectoryConfiguration& WithFileSystemAdministratorsGroup(const char* value) { SetFileSystemAdministratorsGroup(value); return *this;} /** *

The user name for the service account on your self-managed AD domain that * Amazon FSx will use to join to your AD domain. This account must have the * permission to join computers to the domain in the organizational unit provided * in OrganizationalUnitDistinguishedName, or in the default location * of your AD domain.

*/ inline const Aws::String& GetUserName() const{ return m_userName; } /** *

The user name for the service account on your self-managed AD domain that * Amazon FSx will use to join to your AD domain. This account must have the * permission to join computers to the domain in the organizational unit provided * in OrganizationalUnitDistinguishedName, or in the default location * of your AD domain.

*/ inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; } /** *

The user name for the service account on your self-managed AD domain that * Amazon FSx will use to join to your AD domain. This account must have the * permission to join computers to the domain in the organizational unit provided * in OrganizationalUnitDistinguishedName, or in the default location * of your AD domain.

*/ inline void SetUserName(const Aws::String& value) { m_userNameHasBeenSet = true; m_userName = value; } /** *

The user name for the service account on your self-managed AD domain that * Amazon FSx will use to join to your AD domain. This account must have the * permission to join computers to the domain in the organizational unit provided * in OrganizationalUnitDistinguishedName, or in the default location * of your AD domain.

*/ inline void SetUserName(Aws::String&& value) { m_userNameHasBeenSet = true; m_userName = std::move(value); } /** *

The user name for the service account on your self-managed AD domain that * Amazon FSx will use to join to your AD domain. This account must have the * permission to join computers to the domain in the organizational unit provided * in OrganizationalUnitDistinguishedName, or in the default location * of your AD domain.

*/ inline void SetUserName(const char* value) { m_userNameHasBeenSet = true; m_userName.assign(value); } /** *

The user name for the service account on your self-managed AD domain that * Amazon FSx will use to join to your AD domain. This account must have the * permission to join computers to the domain in the organizational unit provided * in OrganizationalUnitDistinguishedName, or in the default location * of your AD domain.

*/ inline SelfManagedActiveDirectoryConfiguration& WithUserName(const Aws::String& value) { SetUserName(value); return *this;} /** *

The user name for the service account on your self-managed AD domain that * Amazon FSx will use to join to your AD domain. This account must have the * permission to join computers to the domain in the organizational unit provided * in OrganizationalUnitDistinguishedName, or in the default location * of your AD domain.

*/ inline SelfManagedActiveDirectoryConfiguration& WithUserName(Aws::String&& value) { SetUserName(std::move(value)); return *this;} /** *

The user name for the service account on your self-managed AD domain that * Amazon FSx will use to join to your AD domain. This account must have the * permission to join computers to the domain in the organizational unit provided * in OrganizationalUnitDistinguishedName, or in the default location * of your AD domain.

*/ inline SelfManagedActiveDirectoryConfiguration& WithUserName(const char* value) { SetUserName(value); return *this;} /** *

The password for the service account on your self-managed AD domain that * Amazon FSx will use to join to your AD domain.

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

The password for the service account on your self-managed AD domain that * Amazon FSx will use to join to your AD domain.

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

The password for the service account on your self-managed AD domain that * Amazon FSx will use to join to your AD domain.

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

The password for the service account on your self-managed AD domain that * Amazon FSx will use to join to your AD domain.

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

The password for the service account on your self-managed AD domain that * Amazon FSx will use to join to your AD domain.

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

The password for the service account on your self-managed AD domain that * Amazon FSx will use to join to your AD domain.

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

The password for the service account on your self-managed AD domain that * Amazon FSx will use to join to your AD domain.

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

The password for the service account on your self-managed AD domain that * Amazon FSx will use to join to your AD domain.

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

A list of up to three IP addresses of DNS servers or domain controllers in * the self-managed AD directory.

*/ inline const Aws::Vector& GetDnsIps() const{ return m_dnsIps; } /** *

A list of up to three IP addresses of DNS servers or domain controllers in * the self-managed AD directory.

*/ inline bool DnsIpsHasBeenSet() const { return m_dnsIpsHasBeenSet; } /** *

A list of up to three IP addresses of DNS servers or domain controllers in * the self-managed AD directory.

*/ inline void SetDnsIps(const Aws::Vector& value) { m_dnsIpsHasBeenSet = true; m_dnsIps = value; } /** *

A list of up to three IP addresses of DNS servers or domain controllers in * the self-managed AD directory.

*/ inline void SetDnsIps(Aws::Vector&& value) { m_dnsIpsHasBeenSet = true; m_dnsIps = std::move(value); } /** *

A list of up to three IP addresses of DNS servers or domain controllers in * the self-managed AD directory.

*/ inline SelfManagedActiveDirectoryConfiguration& WithDnsIps(const Aws::Vector& value) { SetDnsIps(value); return *this;} /** *

A list of up to three IP addresses of DNS servers or domain controllers in * the self-managed AD directory.

*/ inline SelfManagedActiveDirectoryConfiguration& WithDnsIps(Aws::Vector&& value) { SetDnsIps(std::move(value)); return *this;} /** *

A list of up to three IP addresses of DNS servers or domain controllers in * the self-managed AD directory.

*/ inline SelfManagedActiveDirectoryConfiguration& AddDnsIps(const Aws::String& value) { m_dnsIpsHasBeenSet = true; m_dnsIps.push_back(value); return *this; } /** *

A list of up to three IP addresses of DNS servers or domain controllers in * the self-managed AD directory.

*/ inline SelfManagedActiveDirectoryConfiguration& AddDnsIps(Aws::String&& value) { m_dnsIpsHasBeenSet = true; m_dnsIps.push_back(std::move(value)); return *this; } /** *

A list of up to three IP addresses of DNS servers or domain controllers in * the self-managed AD directory.

*/ inline SelfManagedActiveDirectoryConfiguration& AddDnsIps(const char* value) { m_dnsIpsHasBeenSet = true; m_dnsIps.push_back(value); return *this; } private: Aws::String m_domainName; bool m_domainNameHasBeenSet = false; Aws::String m_organizationalUnitDistinguishedName; bool m_organizationalUnitDistinguishedNameHasBeenSet = false; Aws::String m_fileSystemAdministratorsGroup; bool m_fileSystemAdministratorsGroupHasBeenSet = false; Aws::String m_userName; bool m_userNameHasBeenSet = false; Aws::String m_password; bool m_passwordHasBeenSet = false; Aws::Vector m_dnsIps; bool m_dnsIpsHasBeenSet = false; }; } // namespace Model } // namespace FSx } // namespace Aws