Class RadiusServer
java.lang.Object
com.azure.resourcemanager.network.models.RadiusServer
- All Implemented Interfaces:
com.azure.json.JsonSerializable<RadiusServer>
public final class RadiusServer
extends Object
implements com.azure.json.JsonSerializable<RadiusServer>
Radius Server Settings.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RadiusServerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of RadiusServer from the JsonReader.Get the radiusServerAddress property: The address of this radius server.Get the radiusServerScore property: The initial score assigned to this radius server.Get the radiusServerSecret property: The secret used for this radius server.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withRadiusServerAddress(String radiusServerAddress) Set the radiusServerAddress property: The address of this radius server.withRadiusServerScore(Long radiusServerScore) Set the radiusServerScore property: The initial score assigned to this radius server.withRadiusServerSecret(String radiusServerSecret) Set the radiusServerSecret property: The secret used for this radius server.Methods inherited from class java.lang.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
-
RadiusServer
public RadiusServer()Creates an instance of RadiusServer class.
-
-
Method Details
-
radiusServerAddress
Get the radiusServerAddress property: The address of this radius server.- Returns:
- the radiusServerAddress value.
-
withRadiusServerAddress
Set the radiusServerAddress property: The address of this radius server.- Parameters:
radiusServerAddress- the radiusServerAddress value to set.- Returns:
- the RadiusServer object itself.
-
radiusServerScore
Get the radiusServerScore property: The initial score assigned to this radius server.- Returns:
- the radiusServerScore value.
-
withRadiusServerScore
Set the radiusServerScore property: The initial score assigned to this radius server.- Parameters:
radiusServerScore- the radiusServerScore value to set.- Returns:
- the RadiusServer object itself.
-
radiusServerSecret
Get the radiusServerSecret property: The secret used for this radius server.- Returns:
- the radiusServerSecret value.
-
withRadiusServerSecret
Set the radiusServerSecret property: The secret used for this radius server.- Parameters:
radiusServerSecret- the radiusServerSecret value to set.- Returns:
- the RadiusServer 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<RadiusServer>- Throws:
IOException
-
fromJson
Reads an instance of RadiusServer from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of RadiusServer if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the RadiusServer.
-