AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ClientVpnAuthentication.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/ec2/model/ClientVpnAuthenticationType.h>
10#include <aws/ec2/model/DirectoryServiceAuthentication.h>
11#include <aws/ec2/model/CertificateAuthentication.h>
12#include <aws/ec2/model/FederatedAuthentication.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Xml
20{
21 class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace EC2
25{
26namespace Model
27{
28
38 {
39 public:
40 AWS_EC2_API ClientVpnAuthentication() = default;
43
44 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
45 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
46
47
49
52 inline ClientVpnAuthenticationType GetType() const { return m_type; }
53 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
54 inline void SetType(ClientVpnAuthenticationType value) { m_typeHasBeenSet = true; m_type = value; }
57
59
62 inline const DirectoryServiceAuthentication& GetActiveDirectory() const { return m_activeDirectory; }
63 inline bool ActiveDirectoryHasBeenSet() const { return m_activeDirectoryHasBeenSet; }
64 template<typename ActiveDirectoryT = DirectoryServiceAuthentication>
65 void SetActiveDirectory(ActiveDirectoryT&& value) { m_activeDirectoryHasBeenSet = true; m_activeDirectory = std::forward<ActiveDirectoryT>(value); }
66 template<typename ActiveDirectoryT = DirectoryServiceAuthentication>
67 ClientVpnAuthentication& WithActiveDirectory(ActiveDirectoryT&& value) { SetActiveDirectory(std::forward<ActiveDirectoryT>(value)); return *this;}
69
71
74 inline const CertificateAuthentication& GetMutualAuthentication() const { return m_mutualAuthentication; }
75 inline bool MutualAuthenticationHasBeenSet() const { return m_mutualAuthenticationHasBeenSet; }
76 template<typename MutualAuthenticationT = CertificateAuthentication>
77 void SetMutualAuthentication(MutualAuthenticationT&& value) { m_mutualAuthenticationHasBeenSet = true; m_mutualAuthentication = std::forward<MutualAuthenticationT>(value); }
78 template<typename MutualAuthenticationT = CertificateAuthentication>
79 ClientVpnAuthentication& WithMutualAuthentication(MutualAuthenticationT&& value) { SetMutualAuthentication(std::forward<MutualAuthenticationT>(value)); return *this;}
81
83
86 inline const FederatedAuthentication& GetFederatedAuthentication() const { return m_federatedAuthentication; }
87 inline bool FederatedAuthenticationHasBeenSet() const { return m_federatedAuthenticationHasBeenSet; }
88 template<typename FederatedAuthenticationT = FederatedAuthentication>
89 void SetFederatedAuthentication(FederatedAuthenticationT&& value) { m_federatedAuthenticationHasBeenSet = true; m_federatedAuthentication = std::forward<FederatedAuthenticationT>(value); }
90 template<typename FederatedAuthenticationT = FederatedAuthentication>
91 ClientVpnAuthentication& WithFederatedAuthentication(FederatedAuthenticationT&& value) { SetFederatedAuthentication(std::forward<FederatedAuthenticationT>(value)); return *this;}
93 private:
94
96 bool m_typeHasBeenSet = false;
97
98 DirectoryServiceAuthentication m_activeDirectory;
99 bool m_activeDirectoryHasBeenSet = false;
100
101 CertificateAuthentication m_mutualAuthentication;
102 bool m_mutualAuthenticationHasBeenSet = false;
103
104 FederatedAuthentication m_federatedAuthentication;
105 bool m_federatedAuthenticationHasBeenSet = false;
106 };
107
108} // namespace Model
109} // namespace EC2
110} // namespace Aws
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const DirectoryServiceAuthentication & GetActiveDirectory() const
void SetFederatedAuthentication(FederatedAuthenticationT &&value)
ClientVpnAuthenticationType GetType() const
ClientVpnAuthentication & WithActiveDirectory(ActiveDirectoryT &&value)
void SetActiveDirectory(ActiveDirectoryT &&value)
void SetType(ClientVpnAuthenticationType value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const FederatedAuthentication & GetFederatedAuthentication() const
ClientVpnAuthentication & WithMutualAuthentication(MutualAuthenticationT &&value)
ClientVpnAuthentication & WithFederatedAuthentication(FederatedAuthenticationT &&value)
void SetMutualAuthentication(MutualAuthenticationT &&value)
AWS_EC2_API ClientVpnAuthentication & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API ClientVpnAuthentication(const Aws::Utils::Xml::XmlNode &xmlNode)
const CertificateAuthentication & GetMutualAuthentication() const
AWS_EC2_API ClientVpnAuthentication()=default
ClientVpnAuthentication & WithType(ClientVpnAuthenticationType value)
std::basic_ostream< char, std::char_traits< char > > OStream