AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ClientVpnAuthenticationRequest.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/DirectoryServiceAuthenticationRequest.h>
11#include <aws/ec2/model/CertificateAuthenticationRequest.h>
12#include <aws/ec2/model/FederatedAuthenticationRequest.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 ClientVpnAuthenticationRequest() = 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
64 inline const DirectoryServiceAuthenticationRequest& GetActiveDirectory() const { return m_activeDirectory; }
65 inline bool ActiveDirectoryHasBeenSet() const { return m_activeDirectoryHasBeenSet; }
66 template<typename ActiveDirectoryT = DirectoryServiceAuthenticationRequest>
67 void SetActiveDirectory(ActiveDirectoryT&& value) { m_activeDirectoryHasBeenSet = true; m_activeDirectory = std::forward<ActiveDirectoryT>(value); }
68 template<typename ActiveDirectoryT = DirectoryServiceAuthenticationRequest>
69 ClientVpnAuthenticationRequest& WithActiveDirectory(ActiveDirectoryT&& value) { SetActiveDirectory(std::forward<ActiveDirectoryT>(value)); return *this;}
71
73
78 inline const CertificateAuthenticationRequest& GetMutualAuthentication() const { return m_mutualAuthentication; }
79 inline bool MutualAuthenticationHasBeenSet() const { return m_mutualAuthenticationHasBeenSet; }
80 template<typename MutualAuthenticationT = CertificateAuthenticationRequest>
81 void SetMutualAuthentication(MutualAuthenticationT&& value) { m_mutualAuthenticationHasBeenSet = true; m_mutualAuthentication = std::forward<MutualAuthenticationT>(value); }
82 template<typename MutualAuthenticationT = CertificateAuthenticationRequest>
83 ClientVpnAuthenticationRequest& WithMutualAuthentication(MutualAuthenticationT&& value) { SetMutualAuthentication(std::forward<MutualAuthenticationT>(value)); return *this;}
85
87
92 inline const FederatedAuthenticationRequest& GetFederatedAuthentication() const { return m_federatedAuthentication; }
93 inline bool FederatedAuthenticationHasBeenSet() const { return m_federatedAuthenticationHasBeenSet; }
94 template<typename FederatedAuthenticationT = FederatedAuthenticationRequest>
95 void SetFederatedAuthentication(FederatedAuthenticationT&& value) { m_federatedAuthenticationHasBeenSet = true; m_federatedAuthentication = std::forward<FederatedAuthenticationT>(value); }
96 template<typename FederatedAuthenticationT = FederatedAuthenticationRequest>
97 ClientVpnAuthenticationRequest& WithFederatedAuthentication(FederatedAuthenticationT&& value) { SetFederatedAuthentication(std::forward<FederatedAuthenticationT>(value)); return *this;}
99 private:
100
102 bool m_typeHasBeenSet = false;
103
104 DirectoryServiceAuthenticationRequest m_activeDirectory;
105 bool m_activeDirectoryHasBeenSet = false;
106
107 CertificateAuthenticationRequest m_mutualAuthentication;
108 bool m_mutualAuthenticationHasBeenSet = false;
109
110 FederatedAuthenticationRequest m_federatedAuthentication;
111 bool m_federatedAuthenticationHasBeenSet = false;
112 };
113
114} // namespace Model
115} // namespace EC2
116} // namespace Aws
ClientVpnAuthenticationRequest & WithActiveDirectory(ActiveDirectoryT &&value)
const FederatedAuthenticationRequest & GetFederatedAuthentication() const
ClientVpnAuthenticationRequest & WithType(ClientVpnAuthenticationType value)
void SetFederatedAuthentication(FederatedAuthenticationT &&value)
ClientVpnAuthenticationRequest & WithFederatedAuthentication(FederatedAuthenticationT &&value)
AWS_EC2_API ClientVpnAuthenticationRequest & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const DirectoryServiceAuthenticationRequest & GetActiveDirectory() const
AWS_EC2_API ClientVpnAuthenticationRequest(const Aws::Utils::Xml::XmlNode &xmlNode)
ClientVpnAuthenticationRequest & WithMutualAuthentication(MutualAuthenticationT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const CertificateAuthenticationRequest & GetMutualAuthentication() const
std::basic_ostream< char, std::char_traits< char > > OStream