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
    Constructor
    Description
    Creates an instance of RouteSourceDetails class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the circuit property: Express Route Circuit identifier.
    fromJson(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.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    void
    Validates the instance.
    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, wait

    Methods 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

      public String circuit()
      Get the circuit property: Express Route Circuit identifier.
      Returns:
      the circuit value.
    • withCircuit

      public RouteSourceDetails withCircuit(String circuit)
      Set the circuit property: Express Route Circuit identifier.
      Parameters:
      circuit - the circuit value to set.
      Returns:
      the RouteSourceDetails object itself.
    • pri

      public String 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

      public RouteSourceDetails withPri(String pri)
      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

      public String 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

      public RouteSourceDetails withSec(String sec)
      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<RouteSourceDetails>
      Throws:
      IOException
    • fromJson

      public static RouteSourceDetails fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.