Class PropagatedRouteTable

java.lang.Object
com.azure.resourcemanager.network.models.PropagatedRouteTable
All Implemented Interfaces:
com.azure.json.JsonSerializable<PropagatedRouteTable>

public final class PropagatedRouteTable extends Object implements com.azure.json.JsonSerializable<PropagatedRouteTable>
The list of RouteTables to advertise the routes to.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance of PropagatedRouteTable class.
  • Method Summary

    Modifier and Type
    Method
    Description
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of PropagatedRouteTable from the JsonReader.
    List<com.azure.core.management.SubResource>
    ids()
    Get the ids property: The list of resource ids of all the RouteTables.
    Get the labels property: The list of labels.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    void
    Validates the instance.
    withIds(List<com.azure.core.management.SubResource> ids)
    Set the ids property: The list of resource ids of all the RouteTables.
    Set the labels property: The list of labels.

    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

    • PropagatedRouteTable

      public PropagatedRouteTable()
      Creates an instance of PropagatedRouteTable class.
  • Method Details

    • labels

      public List<String> labels()
      Get the labels property: The list of labels.
      Returns:
      the labels value.
    • withLabels

      public PropagatedRouteTable withLabels(List<String> labels)
      Set the labels property: The list of labels.
      Parameters:
      labels - the labels value to set.
      Returns:
      the PropagatedRouteTable object itself.
    • ids

      public List<com.azure.core.management.SubResource> ids()
      Get the ids property: The list of resource ids of all the RouteTables.
      Returns:
      the ids value.
    • withIds

      public PropagatedRouteTable withIds(List<com.azure.core.management.SubResource> ids)
      Set the ids property: The list of resource ids of all the RouteTables.
      Parameters:
      ids - the ids value to set.
      Returns:
      the PropagatedRouteTable 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<PropagatedRouteTable>
      Throws:
      IOException
    • fromJson

      public static PropagatedRouteTable fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of PropagatedRouteTable from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of PropagatedRouteTable 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 PropagatedRouteTable.