Class RoutePropertiesFormat

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

public final class RoutePropertiesFormat extends Object implements com.azure.json.JsonSerializable<RoutePropertiesFormat>
Route resource.
  • Constructor Details

    • RoutePropertiesFormat

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

    • addressPrefix

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

      public RoutePropertiesFormat withAddressPrefix(String addressPrefix)
      Set the addressPrefix property: The destination CIDR to which the route applies.
      Parameters:
      addressPrefix - the addressPrefix value to set.
      Returns:
      the RoutePropertiesFormat 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 RoutePropertiesFormat 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 RoutePropertiesFormat 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 RoutePropertiesFormat 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 RoutePropertiesFormat 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<RoutePropertiesFormat>
      Throws:
      IOException
    • fromJson

      public static RoutePropertiesFormat fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of RoutePropertiesFormat from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of RoutePropertiesFormat if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the RoutePropertiesFormat.