AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
RadiusSettings.h
1
6#pragma once
7#include <aws/ds/DirectoryService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ds/model/RadiusAuthenticationProtocol.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace DirectoryService
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_DIRECTORYSERVICE_API RadiusSettings() = default;
38 AWS_DIRECTORYSERVICE_API RadiusSettings(Aws::Utils::Json::JsonView jsonValue);
39 AWS_DIRECTORYSERVICE_API RadiusSettings& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_DIRECTORYSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
49 inline const Aws::Vector<Aws::String>& GetRadiusServers() const { return m_radiusServers; }
50 inline bool RadiusServersHasBeenSet() const { return m_radiusServersHasBeenSet; }
51 template<typename RadiusServersT = Aws::Vector<Aws::String>>
52 void SetRadiusServers(RadiusServersT&& value) { m_radiusServersHasBeenSet = true; m_radiusServers = std::forward<RadiusServersT>(value); }
53 template<typename RadiusServersT = Aws::Vector<Aws::String>>
54 RadiusSettings& WithRadiusServers(RadiusServersT&& value) { SetRadiusServers(std::forward<RadiusServersT>(value)); return *this;}
55 template<typename RadiusServersT = Aws::String>
56 RadiusSettings& AddRadiusServers(RadiusServersT&& value) { m_radiusServersHasBeenSet = true; m_radiusServers.emplace_back(std::forward<RadiusServersT>(value)); return *this; }
58
60
65 inline int GetRadiusPort() const { return m_radiusPort; }
66 inline bool RadiusPortHasBeenSet() const { return m_radiusPortHasBeenSet; }
67 inline void SetRadiusPort(int value) { m_radiusPortHasBeenSet = true; m_radiusPort = value; }
68 inline RadiusSettings& WithRadiusPort(int value) { SetRadiusPort(value); return *this;}
70
72
75 inline int GetRadiusTimeout() const { return m_radiusTimeout; }
76 inline bool RadiusTimeoutHasBeenSet() const { return m_radiusTimeoutHasBeenSet; }
77 inline void SetRadiusTimeout(int value) { m_radiusTimeoutHasBeenSet = true; m_radiusTimeout = value; }
78 inline RadiusSettings& WithRadiusTimeout(int value) { SetRadiusTimeout(value); return *this;}
80
82
86 inline int GetRadiusRetries() const { return m_radiusRetries; }
87 inline bool RadiusRetriesHasBeenSet() const { return m_radiusRetriesHasBeenSet; }
88 inline void SetRadiusRetries(int value) { m_radiusRetriesHasBeenSet = true; m_radiusRetries = value; }
89 inline RadiusSettings& WithRadiusRetries(int value) { SetRadiusRetries(value); return *this;}
91
93
96 inline const Aws::String& GetSharedSecret() const { return m_sharedSecret; }
97 inline bool SharedSecretHasBeenSet() const { return m_sharedSecretHasBeenSet; }
98 template<typename SharedSecretT = Aws::String>
99 void SetSharedSecret(SharedSecretT&& value) { m_sharedSecretHasBeenSet = true; m_sharedSecret = std::forward<SharedSecretT>(value); }
100 template<typename SharedSecretT = Aws::String>
101 RadiusSettings& WithSharedSecret(SharedSecretT&& value) { SetSharedSecret(std::forward<SharedSecretT>(value)); return *this;}
103
105
108 inline RadiusAuthenticationProtocol GetAuthenticationProtocol() const { return m_authenticationProtocol; }
109 inline bool AuthenticationProtocolHasBeenSet() const { return m_authenticationProtocolHasBeenSet; }
110 inline void SetAuthenticationProtocol(RadiusAuthenticationProtocol value) { m_authenticationProtocolHasBeenSet = true; m_authenticationProtocol = value; }
113
115
118 inline const Aws::String& GetDisplayLabel() const { return m_displayLabel; }
119 inline bool DisplayLabelHasBeenSet() const { return m_displayLabelHasBeenSet; }
120 template<typename DisplayLabelT = Aws::String>
121 void SetDisplayLabel(DisplayLabelT&& value) { m_displayLabelHasBeenSet = true; m_displayLabel = std::forward<DisplayLabelT>(value); }
122 template<typename DisplayLabelT = Aws::String>
123 RadiusSettings& WithDisplayLabel(DisplayLabelT&& value) { SetDisplayLabel(std::forward<DisplayLabelT>(value)); return *this;}
125
127
130 inline bool GetUseSameUsername() const { return m_useSameUsername; }
131 inline bool UseSameUsernameHasBeenSet() const { return m_useSameUsernameHasBeenSet; }
132 inline void SetUseSameUsername(bool value) { m_useSameUsernameHasBeenSet = true; m_useSameUsername = value; }
133 inline RadiusSettings& WithUseSameUsername(bool value) { SetUseSameUsername(value); return *this;}
135 private:
136
137 Aws::Vector<Aws::String> m_radiusServers;
138 bool m_radiusServersHasBeenSet = false;
139
140 int m_radiusPort{0};
141 bool m_radiusPortHasBeenSet = false;
142
143 int m_radiusTimeout{0};
144 bool m_radiusTimeoutHasBeenSet = false;
145
146 int m_radiusRetries{0};
147 bool m_radiusRetriesHasBeenSet = false;
148
149 Aws::String m_sharedSecret;
150 bool m_sharedSecretHasBeenSet = false;
151
153 bool m_authenticationProtocolHasBeenSet = false;
154
155 Aws::String m_displayLabel;
156 bool m_displayLabelHasBeenSet = false;
157
158 bool m_useSameUsername{false};
159 bool m_useSameUsernameHasBeenSet = false;
160 };
161
162} // namespace Model
163} // namespace DirectoryService
164} // namespace Aws
AWS_DIRECTORYSERVICE_API RadiusSettings()=default
RadiusSettings & AddRadiusServers(RadiusServersT &&value)
RadiusSettings & WithRadiusTimeout(int value)
RadiusSettings & WithSharedSecret(SharedSecretT &&value)
RadiusSettings & WithRadiusServers(RadiusServersT &&value)
AWS_DIRECTORYSERVICE_API RadiusSettings & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetSharedSecret() const
RadiusSettings & WithDisplayLabel(DisplayLabelT &&value)
void SetRadiusServers(RadiusServersT &&value)
const Aws::Vector< Aws::String > & GetRadiusServers() const
RadiusSettings & WithRadiusRetries(int value)
RadiusSettings & WithRadiusPort(int value)
void SetAuthenticationProtocol(RadiusAuthenticationProtocol 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