/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes the authentication methods used by a Client VPN endpoint. For more
* information, see Authentication
* in the Client VPN Administrator Guide.See Also:
AWS
* API Reference
The authentication type used.
*/ inline const ClientVpnAuthenticationType& GetType() const{ return m_type; } /** *The authentication type used.
*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *The authentication type used.
*/ inline void SetType(const ClientVpnAuthenticationType& value) { m_typeHasBeenSet = true; m_type = value; } /** *The authentication type used.
*/ inline void SetType(ClientVpnAuthenticationType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *The authentication type used.
*/ inline ClientVpnAuthentication& WithType(const ClientVpnAuthenticationType& value) { SetType(value); return *this;} /** *The authentication type used.
*/ inline ClientVpnAuthentication& WithType(ClientVpnAuthenticationType&& value) { SetType(std::move(value)); return *this;} /** *Information about the Active Directory, if applicable.
*/ inline const DirectoryServiceAuthentication& GetActiveDirectory() const{ return m_activeDirectory; } /** *Information about the Active Directory, if applicable.
*/ inline bool ActiveDirectoryHasBeenSet() const { return m_activeDirectoryHasBeenSet; } /** *Information about the Active Directory, if applicable.
*/ inline void SetActiveDirectory(const DirectoryServiceAuthentication& value) { m_activeDirectoryHasBeenSet = true; m_activeDirectory = value; } /** *Information about the Active Directory, if applicable.
*/ inline void SetActiveDirectory(DirectoryServiceAuthentication&& value) { m_activeDirectoryHasBeenSet = true; m_activeDirectory = std::move(value); } /** *Information about the Active Directory, if applicable.
*/ inline ClientVpnAuthentication& WithActiveDirectory(const DirectoryServiceAuthentication& value) { SetActiveDirectory(value); return *this;} /** *Information about the Active Directory, if applicable.
*/ inline ClientVpnAuthentication& WithActiveDirectory(DirectoryServiceAuthentication&& value) { SetActiveDirectory(std::move(value)); return *this;} /** *Information about the authentication certificates, if applicable.
*/ inline const CertificateAuthentication& GetMutualAuthentication() const{ return m_mutualAuthentication; } /** *Information about the authentication certificates, if applicable.
*/ inline bool MutualAuthenticationHasBeenSet() const { return m_mutualAuthenticationHasBeenSet; } /** *Information about the authentication certificates, if applicable.
*/ inline void SetMutualAuthentication(const CertificateAuthentication& value) { m_mutualAuthenticationHasBeenSet = true; m_mutualAuthentication = value; } /** *Information about the authentication certificates, if applicable.
*/ inline void SetMutualAuthentication(CertificateAuthentication&& value) { m_mutualAuthenticationHasBeenSet = true; m_mutualAuthentication = std::move(value); } /** *Information about the authentication certificates, if applicable.
*/ inline ClientVpnAuthentication& WithMutualAuthentication(const CertificateAuthentication& value) { SetMutualAuthentication(value); return *this;} /** *Information about the authentication certificates, if applicable.
*/ inline ClientVpnAuthentication& WithMutualAuthentication(CertificateAuthentication&& value) { SetMutualAuthentication(std::move(value)); return *this;} /** *Information about the IAM SAML identity provider, if applicable.
*/ inline const FederatedAuthentication& GetFederatedAuthentication() const{ return m_federatedAuthentication; } /** *Information about the IAM SAML identity provider, if applicable.
*/ inline bool FederatedAuthenticationHasBeenSet() const { return m_federatedAuthenticationHasBeenSet; } /** *Information about the IAM SAML identity provider, if applicable.
*/ inline void SetFederatedAuthentication(const FederatedAuthentication& value) { m_federatedAuthenticationHasBeenSet = true; m_federatedAuthentication = value; } /** *Information about the IAM SAML identity provider, if applicable.
*/ inline void SetFederatedAuthentication(FederatedAuthentication&& value) { m_federatedAuthenticationHasBeenSet = true; m_federatedAuthentication = std::move(value); } /** *Information about the IAM SAML identity provider, if applicable.
*/ inline ClientVpnAuthentication& WithFederatedAuthentication(const FederatedAuthentication& value) { SetFederatedAuthentication(value); return *this;} /** *Information about the IAM SAML identity provider, if applicable.
*/ inline ClientVpnAuthentication& WithFederatedAuthentication(FederatedAuthentication&& value) { SetFederatedAuthentication(std::move(value)); return *this;} private: ClientVpnAuthenticationType m_type; bool m_typeHasBeenSet = false; DirectoryServiceAuthentication m_activeDirectory; bool m_activeDirectoryHasBeenSet = false; CertificateAuthentication m_mutualAuthentication; bool m_mutualAuthenticationHasBeenSet = false; FederatedAuthentication m_federatedAuthentication; bool m_federatedAuthenticationHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws