java.lang.Object
com.azure.core.management.SubResource
com.azure.resourcemanager.network.fluent.models.RouteInner
All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.SubResource>

public final class RouteInner extends com.azure.core.management.SubResource
Route resource.
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    Get the addressPrefix property: The destination CIDR to which the route applies.
    Get the etag property: A unique read-only string that changes whenever the resource is updated.
    static RouteInner
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of RouteInner from the JsonReader.
    Get the hasBgpOverride property: A value indicating whether this route overrides overlapping BGP routes regardless of LPM.
    Get the name property: The name of the resource that is unique within a resource group.
    Get the nextHopIpAddress property: The IP address packets should be forwarded to.
    Get the nextHopType property: The type of Azure hop the packet should be sent to.
    Get the provisioningState property: The provisioning state of the route resource.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    Get the type property: The type of the resource.
    void
    Validates the instance.
    withAddressPrefix(String addressPrefix)
    Set the addressPrefix property: The destination CIDR to which the route applies.
    Set the name property: The name of the resource that is unique within a resource group.
    withNextHopIpAddress(String nextHopIpAddress)
    Set the nextHopIpAddress property: The IP address packets should be forwarded to.
    Set the nextHopType property: The type of Azure hop the packet should be sent to.
    Set the type property: The type of the resource.

    Methods inherited from class com.azure.core.management.SubResource

    id

    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

    • RouteInner

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

    • name

      public String name()
      Get the name property: The name of the resource that is unique within a resource group. This name can be used to access the resource.
      Returns:
      the name value.
    • withName

      public RouteInner withName(String name)
      Set the name property: The name of the resource that is unique within a resource group. This name can be used to access the resource.
      Parameters:
      name - the name value to set.
      Returns:
      the RouteInner object itself.
    • etag

      public String etag()
      Get the etag property: A unique read-only string that changes whenever the resource is updated.
      Returns:
      the etag value.
    • type

      public String type()
      Get the type property: The type of the resource.
      Returns:
      the type value.
    • withType

      public RouteInner withType(String type)
      Set the type property: The type of the resource.
      Parameters:
      type - the type value to set.
      Returns:
      the RouteInner object itself.
    • withId

      public RouteInner withId(String id)
      Overrides:
      withId in class com.azure.core.management.SubResource
    • addressPrefix

      public String addressPrefix()
      Get the addressPrefix property: The destination CIDR to which the route applies.
      Returns:
      the addressPrefix value.
    • withAddressPrefix

      public RouteInner withAddressPrefix(String addressPrefix)
      Set the addressPrefix property: The destination CIDR to which the route applies.
      Parameters:
      addressPrefix - the addressPrefix value to set.
      Returns:
      the RouteInner object itself.
    • nextHopType

      public RouteNextHopType nextHopType()
      Get the nextHopType property: The type of Azure hop the packet should be sent to.
      Returns:
      the nextHopType value.
    • withNextHopType

      public RouteInner withNextHopType(RouteNextHopType nextHopType)
      Set the nextHopType property: The type of Azure hop the packet should be sent to.
      Parameters:
      nextHopType - the nextHopType value to set.
      Returns:
      the RouteInner object itself.
    • nextHopIpAddress

      public String nextHopIpAddress()
      Get the nextHopIpAddress property: The IP address packets should be forwarded to. Next hop values are only allowed in routes where the next hop type is VirtualAppliance.
      Returns:
      the nextHopIpAddress value.
    • withNextHopIpAddress

      public RouteInner withNextHopIpAddress(String nextHopIpAddress)
      Set the nextHopIpAddress property: The IP address packets should be forwarded to. Next hop values are only allowed in routes where the next hop type is VirtualAppliance.
      Parameters:
      nextHopIpAddress - the nextHopIpAddress value to set.
      Returns:
      the RouteInner object itself.
    • provisioningState

      public ProvisioningState provisioningState()
      Get the provisioningState property: The provisioning state of the route resource.
      Returns:
      the provisioningState value.
    • hasBgpOverride

      public Boolean hasBgpOverride()
      Get the hasBgpOverride property: A value indicating whether this route overrides overlapping BGP routes regardless of LPM.
      Returns:
      the hasBgpOverride 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<com.azure.core.management.SubResource>
      Overrides:
      toJson in class com.azure.core.management.SubResource
      Throws:
      IOException
    • fromJson

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