Class RadiusAuthServer
java.lang.Object
com.azure.resourcemanager.network.models.RadiusAuthServer
- All Implemented Interfaces:
com.azure.json.JsonSerializable<RadiusAuthServer>
public final class RadiusAuthServer
extends Object
implements com.azure.json.JsonSerializable<RadiusAuthServer>
Gateway or VpnServerConfiguration Radius server with radius secret details.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RadiusAuthServerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of RadiusAuthServer from the JsonReader.Get the radiusServerAddress property: Radius server IPAddress.Get the radiusServerSecret property: Radius server secret.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withRadiusServerAddress(String radiusServerAddress) Set the radiusServerAddress property: Radius server IPAddress.withRadiusServerSecret(String radiusServerSecret) Set the radiusServerSecret property: Radius server secret.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
RadiusAuthServer
public RadiusAuthServer()Creates an instance of RadiusAuthServer class.
-
-
Method Details
-
radiusServerAddress
Get the radiusServerAddress property: Radius server IPAddress.- Returns:
- the radiusServerAddress value.
-
withRadiusServerAddress
Set the radiusServerAddress property: Radius server IPAddress.- Parameters:
radiusServerAddress- the radiusServerAddress value to set.- Returns:
- the RadiusAuthServer object itself.
-
radiusServerSecret
Get the radiusServerSecret property: Radius server secret.- Returns:
- the radiusServerSecret value.
-
withRadiusServerSecret
Set the radiusServerSecret property: Radius server secret.- Parameters:
radiusServerSecret- the radiusServerSecret value to set.- Returns:
- the RadiusAuthServer object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<RadiusAuthServer>- Throws:
IOException
-
fromJson
Reads an instance of RadiusAuthServer from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of RadiusAuthServer if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the RadiusAuthServer.
-