AWS SDK for C++  1.9.15
AWS SDK for C++
RadiusSettings.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace DirectoryService
24 {
25 namespace Model
26 {
27 
35  {
36  public:
41 
42 
48  inline const Aws::Vector<Aws::String>& GetRadiusServers() const{ return m_radiusServers; }
49 
55  inline bool RadiusServersHasBeenSet() const { return m_radiusServersHasBeenSet; }
56 
62  inline void SetRadiusServers(const Aws::Vector<Aws::String>& value) { m_radiusServersHasBeenSet = true; m_radiusServers = value; }
63 
69  inline void SetRadiusServers(Aws::Vector<Aws::String>&& value) { m_radiusServersHasBeenSet = true; m_radiusServers = std::move(value); }
70 
76  inline RadiusSettings& WithRadiusServers(const Aws::Vector<Aws::String>& value) { SetRadiusServers(value); return *this;}
77 
83  inline RadiusSettings& WithRadiusServers(Aws::Vector<Aws::String>&& value) { SetRadiusServers(std::move(value)); return *this;}
84 
90  inline RadiusSettings& AddRadiusServers(const Aws::String& value) { m_radiusServersHasBeenSet = true; m_radiusServers.push_back(value); return *this; }
91 
97  inline RadiusSettings& AddRadiusServers(Aws::String&& value) { m_radiusServersHasBeenSet = true; m_radiusServers.push_back(std::move(value)); return *this; }
98 
104  inline RadiusSettings& AddRadiusServers(const char* value) { m_radiusServersHasBeenSet = true; m_radiusServers.push_back(value); return *this; }
105 
106 
112  inline int GetRadiusPort() const{ return m_radiusPort; }
113 
119  inline bool RadiusPortHasBeenSet() const { return m_radiusPortHasBeenSet; }
120 
126  inline void SetRadiusPort(int value) { m_radiusPortHasBeenSet = true; m_radiusPort = value; }
127 
133  inline RadiusSettings& WithRadiusPort(int value) { SetRadiusPort(value); return *this;}
134 
135 
139  inline int GetRadiusTimeout() const{ return m_radiusTimeout; }
140 
144  inline bool RadiusTimeoutHasBeenSet() const { return m_radiusTimeoutHasBeenSet; }
145 
149  inline void SetRadiusTimeout(int value) { m_radiusTimeoutHasBeenSet = true; m_radiusTimeout = value; }
150 
154  inline RadiusSettings& WithRadiusTimeout(int value) { SetRadiusTimeout(value); return *this;}
155 
156 
161  inline int GetRadiusRetries() const{ return m_radiusRetries; }
162 
167  inline bool RadiusRetriesHasBeenSet() const { return m_radiusRetriesHasBeenSet; }
168 
173  inline void SetRadiusRetries(int value) { m_radiusRetriesHasBeenSet = true; m_radiusRetries = value; }
174 
179  inline RadiusSettings& WithRadiusRetries(int value) { SetRadiusRetries(value); return *this;}
180 
181 
185  inline const Aws::String& GetSharedSecret() const{ return m_sharedSecret; }
186 
190  inline bool SharedSecretHasBeenSet() const { return m_sharedSecretHasBeenSet; }
191 
195  inline void SetSharedSecret(const Aws::String& value) { m_sharedSecretHasBeenSet = true; m_sharedSecret = value; }
196 
200  inline void SetSharedSecret(Aws::String&& value) { m_sharedSecretHasBeenSet = true; m_sharedSecret = std::move(value); }
201 
205  inline void SetSharedSecret(const char* value) { m_sharedSecretHasBeenSet = true; m_sharedSecret.assign(value); }
206 
210  inline RadiusSettings& WithSharedSecret(const Aws::String& value) { SetSharedSecret(value); return *this;}
211 
215  inline RadiusSettings& WithSharedSecret(Aws::String&& value) { SetSharedSecret(std::move(value)); return *this;}
216 
220  inline RadiusSettings& WithSharedSecret(const char* value) { SetSharedSecret(value); return *this;}
221 
222 
226  inline const RadiusAuthenticationProtocol& GetAuthenticationProtocol() const{ return m_authenticationProtocol; }
227 
231  inline bool AuthenticationProtocolHasBeenSet() const { return m_authenticationProtocolHasBeenSet; }
232 
236  inline void SetAuthenticationProtocol(const RadiusAuthenticationProtocol& value) { m_authenticationProtocolHasBeenSet = true; m_authenticationProtocol = value; }
237 
241  inline void SetAuthenticationProtocol(RadiusAuthenticationProtocol&& value) { m_authenticationProtocolHasBeenSet = true; m_authenticationProtocol = std::move(value); }
242 
246  inline RadiusSettings& WithAuthenticationProtocol(const RadiusAuthenticationProtocol& value) { SetAuthenticationProtocol(value); return *this;}
247 
251  inline RadiusSettings& WithAuthenticationProtocol(RadiusAuthenticationProtocol&& value) { SetAuthenticationProtocol(std::move(value)); return *this;}
252 
253 
257  inline const Aws::String& GetDisplayLabel() const{ return m_displayLabel; }
258 
262  inline bool DisplayLabelHasBeenSet() const { return m_displayLabelHasBeenSet; }
263 
267  inline void SetDisplayLabel(const Aws::String& value) { m_displayLabelHasBeenSet = true; m_displayLabel = value; }
268 
272  inline void SetDisplayLabel(Aws::String&& value) { m_displayLabelHasBeenSet = true; m_displayLabel = std::move(value); }
273 
277  inline void SetDisplayLabel(const char* value) { m_displayLabelHasBeenSet = true; m_displayLabel.assign(value); }
278 
282  inline RadiusSettings& WithDisplayLabel(const Aws::String& value) { SetDisplayLabel(value); return *this;}
283 
287  inline RadiusSettings& WithDisplayLabel(Aws::String&& value) { SetDisplayLabel(std::move(value)); return *this;}
288 
292  inline RadiusSettings& WithDisplayLabel(const char* value) { SetDisplayLabel(value); return *this;}
293 
294 
298  inline bool GetUseSameUsername() const{ return m_useSameUsername; }
299 
303  inline bool UseSameUsernameHasBeenSet() const { return m_useSameUsernameHasBeenSet; }
304 
308  inline void SetUseSameUsername(bool value) { m_useSameUsernameHasBeenSet = true; m_useSameUsername = value; }
309 
313  inline RadiusSettings& WithUseSameUsername(bool value) { SetUseSameUsername(value); return *this;}
314 
315  private:
316 
317  Aws::Vector<Aws::String> m_radiusServers;
318  bool m_radiusServersHasBeenSet;
319 
320  int m_radiusPort;
321  bool m_radiusPortHasBeenSet;
322 
323  int m_radiusTimeout;
324  bool m_radiusTimeoutHasBeenSet;
325 
326  int m_radiusRetries;
327  bool m_radiusRetriesHasBeenSet;
328 
329  Aws::String m_sharedSecret;
330  bool m_sharedSecretHasBeenSet;
331 
332  RadiusAuthenticationProtocol m_authenticationProtocol;
333  bool m_authenticationProtocolHasBeenSet;
334 
335  Aws::String m_displayLabel;
336  bool m_displayLabelHasBeenSet;
337 
338  bool m_useSameUsername;
339  bool m_useSameUsernameHasBeenSet;
340  };
341 
342 } // namespace Model
343 } // namespace DirectoryService
344 } // namespace Aws
Aws::DirectoryService::Model::RadiusSettings::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::DirectoryService::Model::RadiusSettings::SetRadiusServers
void SetRadiusServers(const Aws::Vector< Aws::String > &value)
Definition: RadiusSettings.h:62
Aws::DirectoryService::Model::RadiusSettings::WithAuthenticationProtocol
RadiusSettings & WithAuthenticationProtocol(RadiusAuthenticationProtocol &&value)
Definition: RadiusSettings.h:251
Aws::DirectoryService::Model::RadiusSettings::WithRadiusTimeout
RadiusSettings & WithRadiusTimeout(int value)
Definition: RadiusSettings.h:154
Aws::DirectoryService::Model::RadiusSettings::SetSharedSecret
void SetSharedSecret(const Aws::String &value)
Definition: RadiusSettings.h:195
Aws::DirectoryService::Model::RadiusSettings::WithSharedSecret
RadiusSettings & WithSharedSecret(const Aws::String &value)
Definition: RadiusSettings.h:210
Aws::DirectoryService::Model::RadiusSettings::WithAuthenticationProtocol
RadiusSettings & WithAuthenticationProtocol(const RadiusAuthenticationProtocol &value)
Definition: RadiusSettings.h:246
AWS_DIRECTORYSERVICE_API
#define AWS_DIRECTORYSERVICE_API
Definition: DirectoryService_EXPORTS.h:28
Aws::DirectoryService::Model::RadiusSettings::WithRadiusRetries
RadiusSettings & WithRadiusRetries(int value)
Definition: RadiusSettings.h:179
Aws::DirectoryService::Model::RadiusSettings::SetAuthenticationProtocol
void SetAuthenticationProtocol(RadiusAuthenticationProtocol &&value)
Definition: RadiusSettings.h:241
Aws::DirectoryService::Model::RadiusSettings::SetUseSameUsername
void SetUseSameUsername(bool value)
Definition: RadiusSettings.h:308
RadiusAuthenticationProtocol.h
Aws::DirectoryService::Model::RadiusSettings::SetDisplayLabel
void SetDisplayLabel(const char *value)
Definition: RadiusSettings.h:277
Aws::DirectoryService::Model::RadiusSettings::WithRadiusPort
RadiusSettings & WithRadiusPort(int value)
Definition: RadiusSettings.h:133
Aws::DirectoryService::Model::RadiusSettings::GetSharedSecret
const Aws::String & GetSharedSecret() const
Definition: RadiusSettings.h:185
Aws::DirectoryService::Model::RadiusSettings::GetRadiusRetries
int GetRadiusRetries() const
Definition: RadiusSettings.h:161
Aws::DirectoryService::Model::RadiusSettings::DisplayLabelHasBeenSet
bool DisplayLabelHasBeenSet() const
Definition: RadiusSettings.h:262
DirectoryService_EXPORTS.h
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::DirectoryService::Model::RadiusSettings::SetRadiusTimeout
void SetRadiusTimeout(int value)
Definition: RadiusSettings.h:149
Aws::DirectoryService::Model::RadiusSettings::RadiusTimeoutHasBeenSet
bool RadiusTimeoutHasBeenSet() const
Definition: RadiusSettings.h:144
Aws::DirectoryService::Model::RadiusSettings::SetRadiusPort
void SetRadiusPort(int value)
Definition: RadiusSettings.h:126
Aws::DirectoryService::Model::RadiusSettings::WithDisplayLabel
RadiusSettings & WithDisplayLabel(const Aws::String &value)
Definition: RadiusSettings.h:282
Aws::DirectoryService::Model::RadiusSettings::WithSharedSecret
RadiusSettings & WithSharedSecret(const char *value)
Definition: RadiusSettings.h:220
AWSVector.h
Aws::DirectoryService::Model::RadiusSettings::GetUseSameUsername
bool GetUseSameUsername() const
Definition: RadiusSettings.h:298
Aws::DirectoryService::Model::RadiusSettings::WithRadiusServers
RadiusSettings & WithRadiusServers(const Aws::Vector< Aws::String > &value)
Definition: RadiusSettings.h:76
Aws::DirectoryService::Model::RadiusSettings::SetAuthenticationProtocol
void SetAuthenticationProtocol(const RadiusAuthenticationProtocol &value)
Definition: RadiusSettings.h:236
Aws::DirectoryService::Model::RadiusSettings::GetDisplayLabel
const Aws::String & GetDisplayLabel() const
Definition: RadiusSettings.h:257
Aws::DirectoryService::Model::RadiusSettings::RadiusSettings
RadiusSettings()
Aws::DirectoryService::Model::RadiusSettings::RadiusPortHasBeenSet
bool RadiusPortHasBeenSet() const
Definition: RadiusSettings.h:119
Aws::DirectoryService::Model::RadiusSettings::AuthenticationProtocolHasBeenSet
bool AuthenticationProtocolHasBeenSet() const
Definition: RadiusSettings.h:231
Aws::DirectoryService::Model::RadiusSettings::WithSharedSecret
RadiusSettings & WithSharedSecret(Aws::String &&value)
Definition: RadiusSettings.h:215
Aws::DirectoryService::Model::RadiusSettings
Definition: RadiusSettings.h:35
Aws::DirectoryService::Model::RadiusSettings::GetRadiusTimeout
int GetRadiusTimeout() const
Definition: RadiusSettings.h:139
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::DirectoryService::Model::RadiusSettings::RadiusServersHasBeenSet
bool RadiusServersHasBeenSet() const
Definition: RadiusSettings.h:55
Aws::DirectoryService::Model::RadiusSettings::SetSharedSecret
void SetSharedSecret(Aws::String &&value)
Definition: RadiusSettings.h:200
Aws::DirectoryService::Model::RadiusSettings::SetRadiusServers
void SetRadiusServers(Aws::Vector< Aws::String > &&value)
Definition: RadiusSettings.h:69
Aws::DirectoryService::Model::RadiusSettings::WithUseSameUsername
RadiusSettings & WithUseSameUsername(bool value)
Definition: RadiusSettings.h:313
Aws::DirectoryService::Model::RadiusSettings::SetSharedSecret
void SetSharedSecret(const char *value)
Definition: RadiusSettings.h:205
Aws::DirectoryService::Model::RadiusSettings::AddRadiusServers
RadiusSettings & AddRadiusServers(Aws::String &&value)
Definition: RadiusSettings.h:97
Aws::DirectoryService::Model::RadiusSettings::SetDisplayLabel
void SetDisplayLabel(Aws::String &&value)
Definition: RadiusSettings.h:272
Aws
Definition: AccessManagementClient.h:15
Aws::DirectoryService::Model::RadiusSettings::WithRadiusServers
RadiusSettings & WithRadiusServers(Aws::Vector< Aws::String > &&value)
Definition: RadiusSettings.h:83
Aws::DirectoryService::Model::RadiusSettings::AddRadiusServers
RadiusSettings & AddRadiusServers(const Aws::String &value)
Definition: RadiusSettings.h:90
Aws::DirectoryService::Model::RadiusSettings::WithDisplayLabel
RadiusSettings & WithDisplayLabel(Aws::String &&value)
Definition: RadiusSettings.h:287
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::DirectoryService::Model::RadiusSettings::RadiusSettings
RadiusSettings(Aws::Utils::Json::JsonView jsonValue)
Aws::DirectoryService::Model::RadiusSettings::GetAuthenticationProtocol
const RadiusAuthenticationProtocol & GetAuthenticationProtocol() const
Definition: RadiusSettings.h:226
Aws::DirectoryService::Model::RadiusSettings::RadiusRetriesHasBeenSet
bool RadiusRetriesHasBeenSet() const
Definition: RadiusSettings.h:167
Aws::DirectoryService::Model::RadiusAuthenticationProtocol
RadiusAuthenticationProtocol
Definition: RadiusAuthenticationProtocol.h:17
Aws::DirectoryService::Model::RadiusSettings::operator=
RadiusSettings & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::DirectoryService::Model::RadiusSettings::SetDisplayLabel
void SetDisplayLabel(const Aws::String &value)
Definition: RadiusSettings.h:267
Aws::DirectoryService::Model::RadiusSettings::SharedSecretHasBeenSet
bool SharedSecretHasBeenSet() const
Definition: RadiusSettings.h:190
Aws::DirectoryService::Model::RadiusSettings::GetRadiusPort
int GetRadiusPort() const
Definition: RadiusSettings.h:112
Aws::DirectoryService::Model::RadiusSettings::SetRadiusRetries
void SetRadiusRetries(int value)
Definition: RadiusSettings.h:173
Aws::DirectoryService::Model::RadiusSettings::GetRadiusServers
const Aws::Vector< Aws::String > & GetRadiusServers() const
Definition: RadiusSettings.h:48
Aws::DirectoryService::Model::RadiusSettings::UseSameUsernameHasBeenSet
bool UseSameUsernameHasBeenSet() const
Definition: RadiusSettings.h:303
Aws::DirectoryService::Model::RadiusSettings::AddRadiusServers
RadiusSettings & AddRadiusServers(const char *value)
Definition: RadiusSettings.h:104
Aws::DirectoryService::Model::RadiusSettings::WithDisplayLabel
RadiusSettings & WithDisplayLabel(const char *value)
Definition: RadiusSettings.h:292