AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
RadiusSettings.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ds/DirectoryService_EXPORTS.h>
10#include <aws/ds/model/RadiusAuthenticationProtocol.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace DirectoryService {
22namespace Model {
23
31 public:
32 AWS_DIRECTORYSERVICE_API RadiusSettings() = default;
33 AWS_DIRECTORYSERVICE_API RadiusSettings(Aws::Utils::Json::JsonView jsonValue);
34 AWS_DIRECTORYSERVICE_API RadiusSettings& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_DIRECTORYSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline const Aws::Vector<Aws::String>& GetRadiusServers() const { return m_radiusServers; }
43 inline bool RadiusServersHasBeenSet() const { return m_radiusServersHasBeenSet; }
44 template <typename RadiusServersT = Aws::Vector<Aws::String>>
45 void SetRadiusServers(RadiusServersT&& value) {
46 m_radiusServersHasBeenSet = true;
47 m_radiusServers = std::forward<RadiusServersT>(value);
48 }
49 template <typename RadiusServersT = Aws::Vector<Aws::String>>
50 RadiusSettings& WithRadiusServers(RadiusServersT&& value) {
51 SetRadiusServers(std::forward<RadiusServersT>(value));
52 return *this;
53 }
54 template <typename RadiusServersT = Aws::String>
55 RadiusSettings& AddRadiusServers(RadiusServersT&& value) {
56 m_radiusServersHasBeenSet = true;
57 m_radiusServers.emplace_back(std::forward<RadiusServersT>(value));
58 return *this;
59 }
61
63
67 inline const Aws::Vector<Aws::String>& GetRadiusServersIpv6() const { return m_radiusServersIpv6; }
68 inline bool RadiusServersIpv6HasBeenSet() const { return m_radiusServersIpv6HasBeenSet; }
69 template <typename RadiusServersIpv6T = Aws::Vector<Aws::String>>
70 void SetRadiusServersIpv6(RadiusServersIpv6T&& value) {
71 m_radiusServersIpv6HasBeenSet = true;
72 m_radiusServersIpv6 = std::forward<RadiusServersIpv6T>(value);
73 }
74 template <typename RadiusServersIpv6T = Aws::Vector<Aws::String>>
75 RadiusSettings& WithRadiusServersIpv6(RadiusServersIpv6T&& value) {
76 SetRadiusServersIpv6(std::forward<RadiusServersIpv6T>(value));
77 return *this;
78 }
79 template <typename RadiusServersIpv6T = Aws::String>
80 RadiusSettings& AddRadiusServersIpv6(RadiusServersIpv6T&& value) {
81 m_radiusServersIpv6HasBeenSet = true;
82 m_radiusServersIpv6.emplace_back(std::forward<RadiusServersIpv6T>(value));
83 return *this;
84 }
86
88
93 inline int GetRadiusPort() const { return m_radiusPort; }
94 inline bool RadiusPortHasBeenSet() const { return m_radiusPortHasBeenSet; }
95 inline void SetRadiusPort(int value) {
96 m_radiusPortHasBeenSet = true;
97 m_radiusPort = value;
98 }
99 inline RadiusSettings& WithRadiusPort(int value) {
100 SetRadiusPort(value);
101 return *this;
102 }
104
106
109 inline int GetRadiusTimeout() const { return m_radiusTimeout; }
110 inline bool RadiusTimeoutHasBeenSet() const { return m_radiusTimeoutHasBeenSet; }
111 inline void SetRadiusTimeout(int value) {
112 m_radiusTimeoutHasBeenSet = true;
113 m_radiusTimeout = value;
114 }
116 SetRadiusTimeout(value);
117 return *this;
118 }
120
122
126 inline int GetRadiusRetries() const { return m_radiusRetries; }
127 inline bool RadiusRetriesHasBeenSet() const { return m_radiusRetriesHasBeenSet; }
128 inline void SetRadiusRetries(int value) {
129 m_radiusRetriesHasBeenSet = true;
130 m_radiusRetries = value;
131 }
133 SetRadiusRetries(value);
134 return *this;
135 }
137
139
142 inline const Aws::String& GetSharedSecret() const { return m_sharedSecret; }
143 inline bool SharedSecretHasBeenSet() const { return m_sharedSecretHasBeenSet; }
144 template <typename SharedSecretT = Aws::String>
145 void SetSharedSecret(SharedSecretT&& value) {
146 m_sharedSecretHasBeenSet = true;
147 m_sharedSecret = std::forward<SharedSecretT>(value);
148 }
149 template <typename SharedSecretT = Aws::String>
150 RadiusSettings& WithSharedSecret(SharedSecretT&& value) {
151 SetSharedSecret(std::forward<SharedSecretT>(value));
152 return *this;
153 }
155
157
160 inline RadiusAuthenticationProtocol GetAuthenticationProtocol() const { return m_authenticationProtocol; }
161 inline bool AuthenticationProtocolHasBeenSet() const { return m_authenticationProtocolHasBeenSet; }
163 m_authenticationProtocolHasBeenSet = true;
164 m_authenticationProtocol = value;
165 }
168 return *this;
169 }
171
173
176 inline const Aws::String& GetDisplayLabel() const { return m_displayLabel; }
177 inline bool DisplayLabelHasBeenSet() const { return m_displayLabelHasBeenSet; }
178 template <typename DisplayLabelT = Aws::String>
179 void SetDisplayLabel(DisplayLabelT&& value) {
180 m_displayLabelHasBeenSet = true;
181 m_displayLabel = std::forward<DisplayLabelT>(value);
182 }
183 template <typename DisplayLabelT = Aws::String>
184 RadiusSettings& WithDisplayLabel(DisplayLabelT&& value) {
185 SetDisplayLabel(std::forward<DisplayLabelT>(value));
186 return *this;
187 }
189
191
194 inline bool GetUseSameUsername() const { return m_useSameUsername; }
195 inline bool UseSameUsernameHasBeenSet() const { return m_useSameUsernameHasBeenSet; }
196 inline void SetUseSameUsername(bool value) {
197 m_useSameUsernameHasBeenSet = true;
198 m_useSameUsername = value;
199 }
201 SetUseSameUsername(value);
202 return *this;
203 }
205 private:
206 Aws::Vector<Aws::String> m_radiusServers;
207
208 Aws::Vector<Aws::String> m_radiusServersIpv6;
209
210 int m_radiusPort{0};
211
212 int m_radiusTimeout{0};
213
214 int m_radiusRetries{0};
215
216 Aws::String m_sharedSecret;
217
219
220 Aws::String m_displayLabel;
221
222 bool m_useSameUsername{false};
223 bool m_radiusServersHasBeenSet = false;
224 bool m_radiusServersIpv6HasBeenSet = false;
225 bool m_radiusPortHasBeenSet = false;
226 bool m_radiusTimeoutHasBeenSet = false;
227 bool m_radiusRetriesHasBeenSet = false;
228 bool m_sharedSecretHasBeenSet = false;
229 bool m_authenticationProtocolHasBeenSet = false;
230 bool m_displayLabelHasBeenSet = false;
231 bool m_useSameUsernameHasBeenSet = false;
232};
233
234} // namespace Model
235} // namespace DirectoryService
236} // namespace Aws
AWS_DIRECTORYSERVICE_API RadiusSettings()=default
RadiusSettings & AddRadiusServers(RadiusServersT &&value)
RadiusSettings & WithRadiusTimeout(int value)
RadiusSettings & WithSharedSecret(SharedSecretT &&value)
RadiusSettings & WithRadiusServers(RadiusServersT &&value)
RadiusSettings & AddRadiusServersIpv6(RadiusServersIpv6T &&value)
AWS_DIRECTORYSERVICE_API RadiusSettings & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetRadiusServersIpv6(RadiusServersIpv6T &&value)
const Aws::String & GetSharedSecret() const
RadiusSettings & WithDisplayLabel(DisplayLabelT &&value)
const Aws::Vector< Aws::String > & GetRadiusServersIpv6() const
void SetRadiusServers(RadiusServersT &&value)
const Aws::Vector< Aws::String > & GetRadiusServers() const
RadiusSettings & WithRadiusRetries(int value)
RadiusSettings & WithRadiusPort(int value)
void SetAuthenticationProtocol(RadiusAuthenticationProtocol value)
RadiusSettings & WithRadiusServersIpv6(RadiusServersIpv6T &&value)
void SetSharedSecret(SharedSecretT &&value)
const Aws::String & GetDisplayLabel() const
AWS_DIRECTORYSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
RadiusAuthenticationProtocol GetAuthenticationProtocol() const
RadiusSettings & WithAuthenticationProtocol(RadiusAuthenticationProtocol value)
AWS_DIRECTORYSERVICE_API RadiusSettings(Aws::Utils::Json::JsonView jsonValue)
RadiusSettings & WithUseSameUsername(bool value)
void SetDisplayLabel(DisplayLabelT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue