Class EffectiveRoutesParameters

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

public final class EffectiveRoutesParameters extends Object implements com.azure.json.JsonSerializable<EffectiveRoutesParameters>
The parameters specifying the resource whose effective routes are being requested.
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of EffectiveRoutesParameters from the JsonReader.
    Get the resourceId property: The resource whose effective routes are being requested.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    void
    Validates the instance.
    Get the virtualWanResourceType property: The type of the specified resource like RouteTable, ExpressRouteConnection, HubVirtualNetworkConnection, VpnConnection and P2SConnection.
    withResourceId(String resourceId)
    Set the resourceId property: The resource whose effective routes are being requested.
    withVirtualWanResourceType(String virtualWanResourceType)
    Set the virtualWanResourceType property: The type of the specified resource like RouteTable, ExpressRouteConnection, HubVirtualNetworkConnection, VpnConnection and P2SConnection.

    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

    • EffectiveRoutesParameters

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

    • resourceId

      public String resourceId()
      Get the resourceId property: The resource whose effective routes are being requested.
      Returns:
      the resourceId value.
    • withResourceId

      public EffectiveRoutesParameters withResourceId(String resourceId)
      Set the resourceId property: The resource whose effective routes are being requested.
      Parameters:
      resourceId - the resourceId value to set.
      Returns:
      the EffectiveRoutesParameters object itself.
    • virtualWanResourceType

      public String virtualWanResourceType()
      Get the virtualWanResourceType property: The type of the specified resource like RouteTable, ExpressRouteConnection, HubVirtualNetworkConnection, VpnConnection and P2SConnection.
      Returns:
      the virtualWanResourceType value.
    • withVirtualWanResourceType

      public EffectiveRoutesParameters withVirtualWanResourceType(String virtualWanResourceType)
      Set the virtualWanResourceType property: The type of the specified resource like RouteTable, ExpressRouteConnection, HubVirtualNetworkConnection, VpnConnection and P2SConnection.
      Parameters:
      virtualWanResourceType - the virtualWanResourceType value to set.
      Returns:
      the EffectiveRoutesParameters 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<EffectiveRoutesParameters>
      Throws:
      IOException
    • fromJson

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