Class RouteSourceDetails
java.lang.Object
com.azure.resourcemanager.network.models.RouteSourceDetails
- All Implemented Interfaces:
com.azure.json.JsonSerializable<RouteSourceDetails>
public final class RouteSourceDetails
extends Object
implements com.azure.json.JsonSerializable<RouteSourceDetails>
The RouteSourceDetails model.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncircuit()Get the circuit property: Express Route Circuit identifier.static RouteSourceDetailsfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of RouteSourceDetails from the JsonReader.pri()Get the pri property: Flag to indicate if the route learned from the primary device is active or passive.sec()Get the sec property: Flag to indicate if the route learned from the secondary device is active or passive.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withCircuit(String circuit) Set the circuit property: Express Route Circuit identifier.Set the pri property: Flag to indicate if the route learned from the primary device is active or passive.Set the sec property: Flag to indicate if the route learned from the secondary device is active or passive.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
-
RouteSourceDetails
public RouteSourceDetails()Creates an instance of RouteSourceDetails class.
-
-
Method Details
-
circuit
Get the circuit property: Express Route Circuit identifier.- Returns:
- the circuit value.
-
withCircuit
Set the circuit property: Express Route Circuit identifier.- Parameters:
circuit- the circuit value to set.- Returns:
- the RouteSourceDetails object itself.
-
pri
Get the pri property: Flag to indicate if the route learned from the primary device is active or passive.- Returns:
- the pri value.
-
withPri
Set the pri property: Flag to indicate if the route learned from the primary device is active or passive.- Parameters:
pri- the pri value to set.- Returns:
- the RouteSourceDetails object itself.
-
sec
Get the sec property: Flag to indicate if the route learned from the secondary device is active or passive.- Returns:
- the sec value.
-
withSec
Set the sec property: Flag to indicate if the route learned from the secondary device is active or passive.- Parameters:
sec- the sec value to set.- Returns:
- the RouteSourceDetails 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<RouteSourceDetails>- Throws:
IOException
-
fromJson
Reads an instance of RouteSourceDetails from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of RouteSourceDetails 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 RouteSourceDetails.
-