AWS SDK for C++  0.12.9
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 long GetRadiusPort() const{ return m_radiusPort; }
101 
107  inline void SetRadiusPort(long value) { m_radiusPortHasBeenSet = true; m_radiusPort = value; }
108 
114  inline RadiusSettings& WithRadiusPort(long value) { SetRadiusPort(value); return *this;}
115 
119  inline long GetRadiusTimeout() const{ return m_radiusTimeout; }
120 
124  inline void SetRadiusTimeout(long value) { m_radiusTimeoutHasBeenSet = true; m_radiusTimeout = value; }
125 
129  inline RadiusSettings& WithRadiusTimeout(long value) { SetRadiusTimeout(value); return *this;}
130 
135  inline long GetRadiusRetries() const{ return m_radiusRetries; }
136 
141  inline void SetRadiusRetries(long value) { m_radiusRetriesHasBeenSet = true; m_radiusRetries = value; }
142 
147  inline RadiusSettings& WithRadiusRetries(long value) { SetRadiusRetries(value); return *this;}
148 
153  inline const Aws::String& GetSharedSecret() const{ return m_sharedSecret; }
154 
159  inline void SetSharedSecret(const Aws::String& value) { m_sharedSecretHasBeenSet = true; m_sharedSecret = value; }
160 
165  inline void SetSharedSecret(Aws::String&& value) { m_sharedSecretHasBeenSet = true; m_sharedSecret = value; }
166 
171  inline void SetSharedSecret(const char* value) { m_sharedSecretHasBeenSet = true; m_sharedSecret.assign(value); }
172 
177  inline RadiusSettings& WithSharedSecret(const Aws::String& value) { SetSharedSecret(value); return *this;}
178 
183  inline RadiusSettings& WithSharedSecret(Aws::String&& value) { SetSharedSecret(value); return *this;}
184 
189  inline RadiusSettings& WithSharedSecret(const char* value) { SetSharedSecret(value); return *this;}
190 
194  inline const RadiusAuthenticationProtocol& GetAuthenticationProtocol() const{ return m_authenticationProtocol; }
195 
199  inline void SetAuthenticationProtocol(const RadiusAuthenticationProtocol& value) { m_authenticationProtocolHasBeenSet = true; m_authenticationProtocol = value; }
200 
204  inline void SetAuthenticationProtocol(RadiusAuthenticationProtocol&& value) { m_authenticationProtocolHasBeenSet = true; m_authenticationProtocol = value; }
205 
209  inline RadiusSettings& WithAuthenticationProtocol(const RadiusAuthenticationProtocol& value) { SetAuthenticationProtocol(value); return *this;}
210 
214  inline RadiusSettings& WithAuthenticationProtocol(RadiusAuthenticationProtocol&& value) { SetAuthenticationProtocol(value); return *this;}
215 
219  inline const Aws::String& GetDisplayLabel() const{ return m_displayLabel; }
220 
224  inline void SetDisplayLabel(const Aws::String& value) { m_displayLabelHasBeenSet = true; m_displayLabel = value; }
225 
229  inline void SetDisplayLabel(Aws::String&& value) { m_displayLabelHasBeenSet = true; m_displayLabel = value; }
230 
234  inline void SetDisplayLabel(const char* value) { m_displayLabelHasBeenSet = true; m_displayLabel.assign(value); }
235 
239  inline RadiusSettings& WithDisplayLabel(const Aws::String& value) { SetDisplayLabel(value); return *this;}
240 
244  inline RadiusSettings& WithDisplayLabel(Aws::String&& value) { SetDisplayLabel(value); return *this;}
245 
249  inline RadiusSettings& WithDisplayLabel(const char* value) { SetDisplayLabel(value); return *this;}
250 
254  inline bool GetUseSameUsername() const{ return m_useSameUsername; }
255 
259  inline void SetUseSameUsername(bool value) { m_useSameUsernameHasBeenSet = true; m_useSameUsername = value; }
260 
264  inline RadiusSettings& WithUseSameUsername(bool value) { SetUseSameUsername(value); return *this;}
265 
266  private:
267  Aws::Vector<Aws::String> m_radiusServers;
268  bool m_radiusServersHasBeenSet;
269  long m_radiusPort;
270  bool m_radiusPortHasBeenSet;
271  long m_radiusTimeout;
272  bool m_radiusTimeoutHasBeenSet;
273  long m_radiusRetries;
274  bool m_radiusRetriesHasBeenSet;
275  Aws::String m_sharedSecret;
276  bool m_sharedSecretHasBeenSet;
277  RadiusAuthenticationProtocol m_authenticationProtocol;
278  bool m_authenticationProtocolHasBeenSet;
279  Aws::String m_displayLabel;
280  bool m_displayLabelHasBeenSet;
281  bool m_useSameUsername;
282  bool m_useSameUsernameHasBeenSet;
283  };
284 
285 } // namespace Model
286 } // namespace DirectoryService
287 } // namespace Aws
RadiusSettings & AddRadiusServers(Aws::String &&value)
RadiusSettings & WithSharedSecret(const char *value)
RadiusSettings & WithRadiusTimeout(long value)
#define AWS_DIRECTORYSERVICE_API
const RadiusAuthenticationProtocol & GetAuthenticationProtocol() const
RadiusSettings & WithRadiusRetries(long value)
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(long 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)
JSON (JavaScript Object Notation).