AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ClientVpnAuthentication.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/CertificateAuthentication.h>
10#include <aws/ec2/model/ClientVpnAuthenticationType.h>
11#include <aws/ec2/model/DirectoryServiceAuthentication.h>
12#include <aws/ec2/model/FederatedAuthentication.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 ClientVpnAuthentication() = 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
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) {
66 m_activeDirectoryHasBeenSet = true;
67 m_activeDirectory = std::forward<ActiveDirectoryT>(value);
68 }
69 template <typename ActiveDirectoryT = DirectoryServiceAuthentication>
70 ClientVpnAuthentication& WithActiveDirectory(ActiveDirectoryT&& value) {
71 SetActiveDirectory(std::forward<ActiveDirectoryT>(value));
72 return *this;
73 }
75
77
80 inline const CertificateAuthentication& GetMutualAuthentication() const { return m_mutualAuthentication; }
81 inline bool MutualAuthenticationHasBeenSet() const { return m_mutualAuthenticationHasBeenSet; }
82 template <typename MutualAuthenticationT = CertificateAuthentication>
83 void SetMutualAuthentication(MutualAuthenticationT&& value) {
84 m_mutualAuthenticationHasBeenSet = true;
85 m_mutualAuthentication = std::forward<MutualAuthenticationT>(value);
86 }
87 template <typename MutualAuthenticationT = CertificateAuthentication>
88 ClientVpnAuthentication& WithMutualAuthentication(MutualAuthenticationT&& value) {
89 SetMutualAuthentication(std::forward<MutualAuthenticationT>(value));
90 return *this;
91 }
93
95
98 inline const FederatedAuthentication& GetFederatedAuthentication() const { return m_federatedAuthentication; }
99 inline bool FederatedAuthenticationHasBeenSet() const { return m_federatedAuthenticationHasBeenSet; }
100 template <typename FederatedAuthenticationT = FederatedAuthentication>
101 void SetFederatedAuthentication(FederatedAuthenticationT&& value) {
102 m_federatedAuthenticationHasBeenSet = true;
103 m_federatedAuthentication = std::forward<FederatedAuthenticationT>(value);
104 }
105 template <typename FederatedAuthenticationT = FederatedAuthentication>
106 ClientVpnAuthentication& WithFederatedAuthentication(FederatedAuthenticationT&& value) {
107 SetFederatedAuthentication(std::forward<FederatedAuthenticationT>(value));
108 return *this;
109 }
111 private:
113
114 DirectoryServiceAuthentication m_activeDirectory;
115
116 CertificateAuthentication m_mutualAuthentication;
117
118 FederatedAuthentication m_federatedAuthentication;
119 bool m_typeHasBeenSet = false;
120 bool m_activeDirectoryHasBeenSet = false;
121 bool m_mutualAuthenticationHasBeenSet = false;
122 bool m_federatedAuthenticationHasBeenSet = false;
123};
124
125} // namespace Model
126} // namespace EC2
127} // 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