/** * 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 Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace EC2 { namespace Model { /** *

Describes the authentication method to be used by a Client VPN endpoint. For * more information, see Authentication * in the Client VPN Administrator Guide.

See Also:

AWS * API Reference

*/ class ClientVpnAuthenticationRequest { public: AWS_EC2_API ClientVpnAuthenticationRequest(); AWS_EC2_API ClientVpnAuthenticationRequest(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API ClientVpnAuthenticationRequest& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

The type of client authentication to be used.

*/ inline const ClientVpnAuthenticationType& GetType() const{ return m_type; } /** *

The type of client authentication to be used.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The type of client authentication to be used.

*/ inline void SetType(const ClientVpnAuthenticationType& value) { m_typeHasBeenSet = true; m_type = value; } /** *

The type of client authentication to be used.

*/ inline void SetType(ClientVpnAuthenticationType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

The type of client authentication to be used.

*/ inline ClientVpnAuthenticationRequest& WithType(const ClientVpnAuthenticationType& value) { SetType(value); return *this;} /** *

The type of client authentication to be used.

*/ inline ClientVpnAuthenticationRequest& WithType(ClientVpnAuthenticationType&& value) { SetType(std::move(value)); return *this;} /** *

Information about the Active Directory to be used, if applicable. You must * provide this information if Type is * directory-service-authentication.

*/ inline const DirectoryServiceAuthenticationRequest& GetActiveDirectory() const{ return m_activeDirectory; } /** *

Information about the Active Directory to be used, if applicable. You must * provide this information if Type is * directory-service-authentication.

*/ inline bool ActiveDirectoryHasBeenSet() const { return m_activeDirectoryHasBeenSet; } /** *

Information about the Active Directory to be used, if applicable. You must * provide this information if Type is * directory-service-authentication.

*/ inline void SetActiveDirectory(const DirectoryServiceAuthenticationRequest& value) { m_activeDirectoryHasBeenSet = true; m_activeDirectory = value; } /** *

Information about the Active Directory to be used, if applicable. You must * provide this information if Type is * directory-service-authentication.

*/ inline void SetActiveDirectory(DirectoryServiceAuthenticationRequest&& value) { m_activeDirectoryHasBeenSet = true; m_activeDirectory = std::move(value); } /** *

Information about the Active Directory to be used, if applicable. You must * provide this information if Type is * directory-service-authentication.

*/ inline ClientVpnAuthenticationRequest& WithActiveDirectory(const DirectoryServiceAuthenticationRequest& value) { SetActiveDirectory(value); return *this;} /** *

Information about the Active Directory to be used, if applicable. You must * provide this information if Type is * directory-service-authentication.

*/ inline ClientVpnAuthenticationRequest& WithActiveDirectory(DirectoryServiceAuthenticationRequest&& value) { SetActiveDirectory(std::move(value)); return *this;} /** *

Information about the authentication certificates to be used, if applicable. * You must provide this information if Type is * certificate-authentication.

*/ inline const CertificateAuthenticationRequest& GetMutualAuthentication() const{ return m_mutualAuthentication; } /** *

Information about the authentication certificates to be used, if applicable. * You must provide this information if Type is * certificate-authentication.

*/ inline bool MutualAuthenticationHasBeenSet() const { return m_mutualAuthenticationHasBeenSet; } /** *

Information about the authentication certificates to be used, if applicable. * You must provide this information if Type is * certificate-authentication.

*/ inline void SetMutualAuthentication(const CertificateAuthenticationRequest& value) { m_mutualAuthenticationHasBeenSet = true; m_mutualAuthentication = value; } /** *

Information about the authentication certificates to be used, if applicable. * You must provide this information if Type is * certificate-authentication.

*/ inline void SetMutualAuthentication(CertificateAuthenticationRequest&& value) { m_mutualAuthenticationHasBeenSet = true; m_mutualAuthentication = std::move(value); } /** *

Information about the authentication certificates to be used, if applicable. * You must provide this information if Type is * certificate-authentication.

*/ inline ClientVpnAuthenticationRequest& WithMutualAuthentication(const CertificateAuthenticationRequest& value) { SetMutualAuthentication(value); return *this;} /** *

Information about the authentication certificates to be used, if applicable. * You must provide this information if Type is * certificate-authentication.

*/ inline ClientVpnAuthenticationRequest& WithMutualAuthentication(CertificateAuthenticationRequest&& value) { SetMutualAuthentication(std::move(value)); return *this;} /** *

Information about the IAM SAML identity provider to be used, if applicable. * You must provide this information if Type is * federated-authentication.

*/ inline const FederatedAuthenticationRequest& GetFederatedAuthentication() const{ return m_federatedAuthentication; } /** *

Information about the IAM SAML identity provider to be used, if applicable. * You must provide this information if Type is * federated-authentication.

*/ inline bool FederatedAuthenticationHasBeenSet() const { return m_federatedAuthenticationHasBeenSet; } /** *

Information about the IAM SAML identity provider to be used, if applicable. * You must provide this information if Type is * federated-authentication.

*/ inline void SetFederatedAuthentication(const FederatedAuthenticationRequest& value) { m_federatedAuthenticationHasBeenSet = true; m_federatedAuthentication = value; } /** *

Information about the IAM SAML identity provider to be used, if applicable. * You must provide this information if Type is * federated-authentication.

*/ inline void SetFederatedAuthentication(FederatedAuthenticationRequest&& value) { m_federatedAuthenticationHasBeenSet = true; m_federatedAuthentication = std::move(value); } /** *

Information about the IAM SAML identity provider to be used, if applicable. * You must provide this information if Type is * federated-authentication.

*/ inline ClientVpnAuthenticationRequest& WithFederatedAuthentication(const FederatedAuthenticationRequest& value) { SetFederatedAuthentication(value); return *this;} /** *

Information about the IAM SAML identity provider to be used, if applicable. * You must provide this information if Type is * federated-authentication.

*/ inline ClientVpnAuthenticationRequest& WithFederatedAuthentication(FederatedAuthenticationRequest&& value) { SetFederatedAuthentication(std::move(value)); return *this;} private: ClientVpnAuthenticationType m_type; bool m_typeHasBeenSet = false; DirectoryServiceAuthenticationRequest m_activeDirectory; bool m_activeDirectoryHasBeenSet = false; CertificateAuthenticationRequest m_mutualAuthentication; bool m_mutualAuthenticationHasBeenSet = false; FederatedAuthenticationRequest m_federatedAuthentication; bool m_federatedAuthenticationHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws