AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ClientVpnAuthenticationRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/ec2/EC2_EXPORTS.h>
9#include <aws/ec2/model/CertificateAuthenticationRequest.h>
10#include <aws/ec2/model/ClientVpnAuthenticationType.h>
11#include <aws/ec2/model/DirectoryServiceAuthenticationRequest.h>
12#include <aws/ec2/model/FederatedAuthenticationRequest.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Xml {
19class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace EC2 {
23namespace Model {
24
34 public:
35 AWS_EC2_API ClientVpnAuthenticationRequest() = default;
38
39 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
43
46 inline ClientVpnAuthenticationType GetType() const { return m_type; }
47 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
49 m_typeHasBeenSet = true;
50 m_type = value;
51 }
53 SetType(value);
54 return *this;
55 }
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) {
68 m_activeDirectoryHasBeenSet = true;
69 m_activeDirectory = std::forward<ActiveDirectoryT>(value);
70 }
71 template <typename ActiveDirectoryT = DirectoryServiceAuthenticationRequest>
73 SetActiveDirectory(std::forward<ActiveDirectoryT>(value));
74 return *this;
75 }
77
79
84 inline const CertificateAuthenticationRequest& GetMutualAuthentication() const { return m_mutualAuthentication; }
85 inline bool MutualAuthenticationHasBeenSet() const { return m_mutualAuthenticationHasBeenSet; }
86 template <typename MutualAuthenticationT = CertificateAuthenticationRequest>
87 void SetMutualAuthentication(MutualAuthenticationT&& value) {
88 m_mutualAuthenticationHasBeenSet = true;
89 m_mutualAuthentication = std::forward<MutualAuthenticationT>(value);
90 }
91 template <typename MutualAuthenticationT = CertificateAuthenticationRequest>
93 SetMutualAuthentication(std::forward<MutualAuthenticationT>(value));
94 return *this;
95 }
97
99
104 inline const FederatedAuthenticationRequest& GetFederatedAuthentication() const { return m_federatedAuthentication; }
105 inline bool FederatedAuthenticationHasBeenSet() const { return m_federatedAuthenticationHasBeenSet; }
106 template <typename FederatedAuthenticationT = FederatedAuthenticationRequest>
107 void SetFederatedAuthentication(FederatedAuthenticationT&& value) {
108 m_federatedAuthenticationHasBeenSet = true;
109 m_federatedAuthentication = std::forward<FederatedAuthenticationT>(value);
110 }
111 template <typename FederatedAuthenticationT = FederatedAuthenticationRequest>
113 SetFederatedAuthentication(std::forward<FederatedAuthenticationT>(value));
114 return *this;
115 }
117 private:
119
120 DirectoryServiceAuthenticationRequest m_activeDirectory;
121
122 CertificateAuthenticationRequest m_mutualAuthentication;
123
124 FederatedAuthenticationRequest m_federatedAuthentication;
125 bool m_typeHasBeenSet = false;
126 bool m_activeDirectoryHasBeenSet = false;
127 bool m_mutualAuthenticationHasBeenSet = false;
128 bool m_federatedAuthenticationHasBeenSet = false;
129};
130
131} // namespace Model
132} // namespace EC2
133} // 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