AWS SDK for C++  0.14.3
AWS SDK for C++
RadiusSettings.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
20 
21 namespace Aws
22 {
23 namespace Utils
24 {
25 namespace Json
26 {
27  class JsonValue;
28 } // namespace Json
29 } // namespace Utils
30 namespace DirectoryService
31 {
32 namespace Model
33 {
34 
40  {
41  public:
44  RadiusSettings& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
45  Aws::Utils::Json::JsonValue Jsonize() const;
46 
51  inline const Aws::Vector<Aws::String>& GetRadiusServers() const{ return m_radiusServers; }
52 
57  inline void SetRadiusServers(const Aws::Vector<Aws::String>& value) { m_radiusServersHasBeenSet = true; m_radiusServers = value; }
58 
63  inline void SetRadiusServers(Aws::Vector<Aws::String>&& value) { m_radiusServersHasBeenSet = true; m_radiusServers = value; }
64 
69  inline RadiusSettings& WithRadiusServers(const Aws::Vector<Aws::String>& value) { SetRadiusServers(value); return *this;}
70 
75  inline RadiusSettings& WithRadiusServers(Aws::Vector<Aws::String>&& value) { SetRadiusServers(value); return *this;}
76 
81  inline RadiusSettings& AddRadiusServers(const Aws::String& value) { m_radiusServersHasBeenSet = true; m_radiusServers.push_back(value); return *this; }
82 
87  inline RadiusSettings& AddRadiusServers(Aws::String&& value) { m_radiusServersHasBeenSet = true; m_radiusServers.push_back(value); return *this; }
88 
93  inline RadiusSettings& AddRadiusServers(const char* value) { m_radiusServersHasBeenSet = true; m_radiusServers.push_back(value); return *this; }
94 
100  inline int GetRadiusPort() const{ return m_radiusPort; }
101 
107  inline void SetRadiusPort(int value) { m_radiusPortHasBeenSet = true; m_radiusPort = value; }
108 
114  inline RadiusSettings& WithRadiusPort(int value) { SetRadiusPort(value); return *this;}
115 
119  inline int GetRadiusTimeout() const{ return m_radiusTimeout; }
120 
124  inline void SetRadiusTimeout(int value) { m_radiusTimeoutHasBeenSet = true; m_radiusTimeout = value; }
125 
129  inline RadiusSettings& WithRadiusTimeout(int value) { SetRadiusTimeout(value); return *this;}
130 
135  inline int GetRadiusRetries() const{ return m_radiusRetries; }
136 
141  inline void SetRadiusRetries(int value) { m_radiusRetriesHasBeenSet = true; m_radiusRetries = value; }
142 
147  inline RadiusSettings& WithRadiusRetries(int value) { SetRadiusRetries(value); return *this;}
148 
152  inline const Aws::String& GetSharedSecret() const{ return m_sharedSecret; }
153 
157  inline void SetSharedSecret(const Aws::String& value) { m_sharedSecretHasBeenSet = true; m_sharedSecret = value; }
158 
162  inline void SetSharedSecret(Aws::String&& value) { m_sharedSecretHasBeenSet = true; m_sharedSecret = value; }
163 
167  inline void SetSharedSecret(const char* value) { m_sharedSecretHasBeenSet = true; m_sharedSecret.assign(value); }
168 
172  inline RadiusSettings& WithSharedSecret(const Aws::String& value) { SetSharedSecret(value); return *this;}
173 
177  inline RadiusSettings& WithSharedSecret(Aws::String&& value) { SetSharedSecret(value); return *this;}
178 
182  inline RadiusSettings& WithSharedSecret(const char* value) { SetSharedSecret(value); return *this;}
183 
187  inline const RadiusAuthenticationProtocol& GetAuthenticationProtocol() const{ return m_authenticationProtocol; }
188 
192  inline void SetAuthenticationProtocol(const RadiusAuthenticationProtocol& value) { m_authenticationProtocolHasBeenSet = true; m_authenticationProtocol = value; }
193 
197  inline void SetAuthenticationProtocol(RadiusAuthenticationProtocol&& value) { m_authenticationProtocolHasBeenSet = true; m_authenticationProtocol = value; }
198 
202  inline RadiusSettings& WithAuthenticationProtocol(const RadiusAuthenticationProtocol& value) { SetAuthenticationProtocol(value); return *this;}
203 
207  inline RadiusSettings& WithAuthenticationProtocol(RadiusAuthenticationProtocol&& value) { SetAuthenticationProtocol(value); return *this;}
208 
212  inline const Aws::String& GetDisplayLabel() const{ return m_displayLabel; }
213 
217  inline void SetDisplayLabel(const Aws::String& value) { m_displayLabelHasBeenSet = true; m_displayLabel = value; }
218 
222  inline void SetDisplayLabel(Aws::String&& value) { m_displayLabelHasBeenSet = true; m_displayLabel = value; }
223 
227  inline void SetDisplayLabel(const char* value) { m_displayLabelHasBeenSet = true; m_displayLabel.assign(value); }
228 
232  inline RadiusSettings& WithDisplayLabel(const Aws::String& value) { SetDisplayLabel(value); return *this;}
233 
237  inline RadiusSettings& WithDisplayLabel(Aws::String&& value) { SetDisplayLabel(value); return *this;}
238 
242  inline RadiusSettings& WithDisplayLabel(const char* value) { SetDisplayLabel(value); return *this;}
243 
247  inline bool GetUseSameUsername() const{ return m_useSameUsername; }
248 
252  inline void SetUseSameUsername(bool value) { m_useSameUsernameHasBeenSet = true; m_useSameUsername = value; }
253 
257  inline RadiusSettings& WithUseSameUsername(bool value) { SetUseSameUsername(value); return *this;}
258 
259  private:
260  Aws::Vector<Aws::String> m_radiusServers;
261  bool m_radiusServersHasBeenSet;
262  int m_radiusPort;
263  bool m_radiusPortHasBeenSet;
264  int m_radiusTimeout;
265  bool m_radiusTimeoutHasBeenSet;
266  int m_radiusRetries;
267  bool m_radiusRetriesHasBeenSet;
268  Aws::String m_sharedSecret;
269  bool m_sharedSecretHasBeenSet;
270  RadiusAuthenticationProtocol m_authenticationProtocol;
271  bool m_authenticationProtocolHasBeenSet;
272  Aws::String m_displayLabel;
273  bool m_displayLabelHasBeenSet;
274  bool m_useSameUsername;
275  bool m_useSameUsernameHasBeenSet;
276  };
277 
278 } // namespace Model
279 } // namespace DirectoryService
280 } // namespace Aws
RadiusSettings & AddRadiusServers(Aws::String &&value)
RadiusSettings & WithRadiusTimeout(int value)
RadiusSettings & WithSharedSecret(const char *value)
#define AWS_DIRECTORYSERVICE_API
const RadiusAuthenticationProtocol & GetAuthenticationProtocol() const
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
RadiusSettings & WithRadiusServers(const Aws::Vector< Aws::String > &value)
RadiusSettings & WithSharedSecret(Aws::String &&value)
RadiusSettings & WithDisplayLabel(const char *value)
void SetSharedSecret(const Aws::String &value)
RadiusSettings & WithAuthenticationProtocol(RadiusAuthenticationProtocol &&value)
RadiusSettings & WithUseSameUsername(bool value)
void SetAuthenticationProtocol(RadiusAuthenticationProtocol &&value)
RadiusSettings & WithRadiusPort(int value)
RadiusSettings & WithDisplayLabel(const Aws::String &value)
void SetRadiusServers(Aws::Vector< Aws::String > &&value)
RadiusSettings & WithRadiusServers(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetRadiusServers() const
void SetAuthenticationProtocol(const RadiusAuthenticationProtocol &value)
RadiusSettings & WithDisplayLabel(Aws::String &&value)
const Aws::String & GetSharedSecret() const
RadiusSettings & WithSharedSecret(const Aws::String &value)
void SetDisplayLabel(const Aws::String &value)
void SetRadiusServers(const Aws::Vector< Aws::String > &value)
RadiusSettings & AddRadiusServers(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
RadiusSettings & AddRadiusServers(const char *value)
const Aws::String & GetDisplayLabel() const
RadiusSettings & WithAuthenticationProtocol(const RadiusAuthenticationProtocol &value)
RadiusSettings & WithRadiusRetries(int value)
JSON (JavaScript Object Notation).