/** * 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 namespace Aws { namespace AppStream { namespace Model { /** */ class CreateDirectoryConfigRequest : public AppStreamRequest { public: AWS_APPSTREAM_API CreateDirectoryConfigRequest(); // 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 "CreateDirectoryConfig"; } AWS_APPSTREAM_API Aws::String SerializePayload() const override; AWS_APPSTREAM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The fully qualified name of the directory (for example, * corp.example.com).

*/ inline const Aws::String& GetDirectoryName() const{ return m_directoryName; } /** *

The fully qualified name of the directory (for example, * corp.example.com).

*/ inline bool DirectoryNameHasBeenSet() const { return m_directoryNameHasBeenSet; } /** *

The fully qualified name of the directory (for example, * corp.example.com).

*/ inline void SetDirectoryName(const Aws::String& value) { m_directoryNameHasBeenSet = true; m_directoryName = value; } /** *

The fully qualified name of the directory (for example, * corp.example.com).

*/ inline void SetDirectoryName(Aws::String&& value) { m_directoryNameHasBeenSet = true; m_directoryName = std::move(value); } /** *

The fully qualified name of the directory (for example, * corp.example.com).

*/ inline void SetDirectoryName(const char* value) { m_directoryNameHasBeenSet = true; m_directoryName.assign(value); } /** *

The fully qualified name of the directory (for example, * corp.example.com).

*/ inline CreateDirectoryConfigRequest& WithDirectoryName(const Aws::String& value) { SetDirectoryName(value); return *this;} /** *

The fully qualified name of the directory (for example, * corp.example.com).

*/ inline CreateDirectoryConfigRequest& WithDirectoryName(Aws::String&& value) { SetDirectoryName(std::move(value)); return *this;} /** *

The fully qualified name of the directory (for example, * corp.example.com).

*/ inline CreateDirectoryConfigRequest& WithDirectoryName(const char* value) { SetDirectoryName(value); return *this;} /** *

The distinguished names of the organizational units for computer * accounts.

*/ inline const Aws::Vector& GetOrganizationalUnitDistinguishedNames() const{ return m_organizationalUnitDistinguishedNames; } /** *

The distinguished names of the organizational units for computer * accounts.

*/ inline bool OrganizationalUnitDistinguishedNamesHasBeenSet() const { return m_organizationalUnitDistinguishedNamesHasBeenSet; } /** *

The distinguished names of the organizational units for computer * accounts.

*/ inline void SetOrganizationalUnitDistinguishedNames(const Aws::Vector& value) { m_organizationalUnitDistinguishedNamesHasBeenSet = true; m_organizationalUnitDistinguishedNames = value; } /** *

The distinguished names of the organizational units for computer * accounts.

*/ inline void SetOrganizationalUnitDistinguishedNames(Aws::Vector&& value) { m_organizationalUnitDistinguishedNamesHasBeenSet = true; m_organizationalUnitDistinguishedNames = std::move(value); } /** *

The distinguished names of the organizational units for computer * accounts.

*/ inline CreateDirectoryConfigRequest& WithOrganizationalUnitDistinguishedNames(const Aws::Vector& value) { SetOrganizationalUnitDistinguishedNames(value); return *this;} /** *

The distinguished names of the organizational units for computer * accounts.

*/ inline CreateDirectoryConfigRequest& WithOrganizationalUnitDistinguishedNames(Aws::Vector&& value) { SetOrganizationalUnitDistinguishedNames(std::move(value)); return *this;} /** *

The distinguished names of the organizational units for computer * accounts.

*/ inline CreateDirectoryConfigRequest& AddOrganizationalUnitDistinguishedNames(const Aws::String& value) { m_organizationalUnitDistinguishedNamesHasBeenSet = true; m_organizationalUnitDistinguishedNames.push_back(value); return *this; } /** *

The distinguished names of the organizational units for computer * accounts.

*/ inline CreateDirectoryConfigRequest& AddOrganizationalUnitDistinguishedNames(Aws::String&& value) { m_organizationalUnitDistinguishedNamesHasBeenSet = true; m_organizationalUnitDistinguishedNames.push_back(std::move(value)); return *this; } /** *

The distinguished names of the organizational units for computer * accounts.

*/ inline CreateDirectoryConfigRequest& AddOrganizationalUnitDistinguishedNames(const char* value) { m_organizationalUnitDistinguishedNamesHasBeenSet = true; m_organizationalUnitDistinguishedNames.push_back(value); return *this; } /** *

The credentials for the service account used by the fleet or image builder to * connect to the directory.

*/ inline const ServiceAccountCredentials& GetServiceAccountCredentials() const{ return m_serviceAccountCredentials; } /** *

The credentials for the service account used by the fleet or image builder to * connect to the directory.

*/ inline bool ServiceAccountCredentialsHasBeenSet() const { return m_serviceAccountCredentialsHasBeenSet; } /** *

The credentials for the service account used by the fleet or image builder to * connect to the directory.

*/ inline void SetServiceAccountCredentials(const ServiceAccountCredentials& value) { m_serviceAccountCredentialsHasBeenSet = true; m_serviceAccountCredentials = value; } /** *

The credentials for the service account used by the fleet or image builder to * connect to the directory.

*/ inline void SetServiceAccountCredentials(ServiceAccountCredentials&& value) { m_serviceAccountCredentialsHasBeenSet = true; m_serviceAccountCredentials = std::move(value); } /** *

The credentials for the service account used by the fleet or image builder to * connect to the directory.

*/ inline CreateDirectoryConfigRequest& WithServiceAccountCredentials(const ServiceAccountCredentials& value) { SetServiceAccountCredentials(value); return *this;} /** *

The credentials for the service account used by the fleet or image builder to * connect to the directory.

*/ inline CreateDirectoryConfigRequest& WithServiceAccountCredentials(ServiceAccountCredentials&& value) { SetServiceAccountCredentials(std::move(value)); return *this;} /** *

The certificate-based authentication properties used to authenticate SAML 2.0 * Identity Provider (IdP) user identities to Active Directory domain-joined * streaming instances. Fallback is turned on by default when certificate-based * authentication is Enabled . Fallback allows users to log in using their * AD domain password if certificate-based authentication is unsuccessful, or to * unlock a desktop lock screen. Enabled_no_directory_login_fallback enables * certificate-based authentication, but does not allow users to log in using their * AD domain password. Users will be disconnected to re-authenticate using * certificates.

*/ inline const CertificateBasedAuthProperties& GetCertificateBasedAuthProperties() const{ return m_certificateBasedAuthProperties; } /** *

The certificate-based authentication properties used to authenticate SAML 2.0 * Identity Provider (IdP) user identities to Active Directory domain-joined * streaming instances. Fallback is turned on by default when certificate-based * authentication is Enabled . Fallback allows users to log in using their * AD domain password if certificate-based authentication is unsuccessful, or to * unlock a desktop lock screen. Enabled_no_directory_login_fallback enables * certificate-based authentication, but does not allow users to log in using their * AD domain password. Users will be disconnected to re-authenticate using * certificates.

*/ inline bool CertificateBasedAuthPropertiesHasBeenSet() const { return m_certificateBasedAuthPropertiesHasBeenSet; } /** *

The certificate-based authentication properties used to authenticate SAML 2.0 * Identity Provider (IdP) user identities to Active Directory domain-joined * streaming instances. Fallback is turned on by default when certificate-based * authentication is Enabled . Fallback allows users to log in using their * AD domain password if certificate-based authentication is unsuccessful, or to * unlock a desktop lock screen. Enabled_no_directory_login_fallback enables * certificate-based authentication, but does not allow users to log in using their * AD domain password. Users will be disconnected to re-authenticate using * certificates.

*/ inline void SetCertificateBasedAuthProperties(const CertificateBasedAuthProperties& value) { m_certificateBasedAuthPropertiesHasBeenSet = true; m_certificateBasedAuthProperties = value; } /** *

The certificate-based authentication properties used to authenticate SAML 2.0 * Identity Provider (IdP) user identities to Active Directory domain-joined * streaming instances. Fallback is turned on by default when certificate-based * authentication is Enabled . Fallback allows users to log in using their * AD domain password if certificate-based authentication is unsuccessful, or to * unlock a desktop lock screen. Enabled_no_directory_login_fallback enables * certificate-based authentication, but does not allow users to log in using their * AD domain password. Users will be disconnected to re-authenticate using * certificates.

*/ inline void SetCertificateBasedAuthProperties(CertificateBasedAuthProperties&& value) { m_certificateBasedAuthPropertiesHasBeenSet = true; m_certificateBasedAuthProperties = std::move(value); } /** *

The certificate-based authentication properties used to authenticate SAML 2.0 * Identity Provider (IdP) user identities to Active Directory domain-joined * streaming instances. Fallback is turned on by default when certificate-based * authentication is Enabled . Fallback allows users to log in using their * AD domain password if certificate-based authentication is unsuccessful, or to * unlock a desktop lock screen. Enabled_no_directory_login_fallback enables * certificate-based authentication, but does not allow users to log in using their * AD domain password. Users will be disconnected to re-authenticate using * certificates.

*/ inline CreateDirectoryConfigRequest& WithCertificateBasedAuthProperties(const CertificateBasedAuthProperties& value) { SetCertificateBasedAuthProperties(value); return *this;} /** *

The certificate-based authentication properties used to authenticate SAML 2.0 * Identity Provider (IdP) user identities to Active Directory domain-joined * streaming instances. Fallback is turned on by default when certificate-based * authentication is Enabled . Fallback allows users to log in using their * AD domain password if certificate-based authentication is unsuccessful, or to * unlock a desktop lock screen. Enabled_no_directory_login_fallback enables * certificate-based authentication, but does not allow users to log in using their * AD domain password. Users will be disconnected to re-authenticate using * certificates.

*/ inline CreateDirectoryConfigRequest& WithCertificateBasedAuthProperties(CertificateBasedAuthProperties&& value) { SetCertificateBasedAuthProperties(std::move(value)); return *this;} private: Aws::String m_directoryName; bool m_directoryNameHasBeenSet = false; Aws::Vector m_organizationalUnitDistinguishedNames; bool m_organizationalUnitDistinguishedNamesHasBeenSet = false; ServiceAccountCredentials m_serviceAccountCredentials; bool m_serviceAccountCredentialsHasBeenSet = false; CertificateBasedAuthProperties m_certificateBasedAuthProperties; bool m_certificateBasedAuthPropertiesHasBeenSet = false; }; } // namespace Model } // namespace AppStream } // namespace Aws