Class VirtualHubRouteTableV2Properties

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

public final class VirtualHubRouteTableV2Properties extends Object implements com.azure.json.JsonSerializable<VirtualHubRouteTableV2Properties>
Parameters for VirtualHubRouteTableV2.
  • Constructor Details

    • VirtualHubRouteTableV2Properties

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

    • routes

      public List<VirtualHubRouteV2> routes()
      Get the routes property: List of all routes.
      Returns:
      the routes value.
    • withRoutes

      Set the routes property: List of all routes.
      Parameters:
      routes - the routes value to set.
      Returns:
      the VirtualHubRouteTableV2Properties object itself.
    • attachedConnections

      public List<String> attachedConnections()
      Get the attachedConnections property: List of all connections attached to this route table v2.
      Returns:
      the attachedConnections value.
    • withAttachedConnections

      public VirtualHubRouteTableV2Properties withAttachedConnections(List<String> attachedConnections)
      Set the attachedConnections property: List of all connections attached to this route table v2.
      Parameters:
      attachedConnections - the attachedConnections value to set.
      Returns:
      the VirtualHubRouteTableV2Properties object itself.
    • provisioningState

      public ProvisioningState provisioningState()
      Get the provisioningState property: The provisioning state of the virtual hub route table v2 resource.
      Returns:
      the provisioningState value.
    • 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<VirtualHubRouteTableV2Properties>
      Throws:
      IOException
    • fromJson

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