Class EffectiveRoute

java.lang.Object
com.azure.resourcemanager.network.models.EffectiveRoute

public final class EffectiveRoute extends Object
Effective Route.
  • Constructor Details

    • EffectiveRoute

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

    • name

      public String name()
      Get the name property: The name of the user defined route. This is optional.
      Returns:
      the name value.
    • withName

      public EffectiveRoute withName(String name)
      Set the name property: The name of the user defined route. This is optional.
      Parameters:
      name - the name value to set.
      Returns:
      the EffectiveRoute object itself.
    • disableBgpRoutePropagation

      public Boolean disableBgpRoutePropagation()
      Get the disableBgpRoutePropagation property: If true, on-premises routes are not propagated to the network interfaces in the subnet.
      Returns:
      the disableBgpRoutePropagation value.
    • withDisableBgpRoutePropagation

      public EffectiveRoute withDisableBgpRoutePropagation(Boolean disableBgpRoutePropagation)
      Set the disableBgpRoutePropagation property: If true, on-premises routes are not propagated to the network interfaces in the subnet.
      Parameters:
      disableBgpRoutePropagation - the disableBgpRoutePropagation value to set.
      Returns:
      the EffectiveRoute object itself.
    • source

      public EffectiveRouteSource source()
      Get the source property: Who created the route.
      Returns:
      the source value.
    • withSource

      public EffectiveRoute withSource(EffectiveRouteSource source)
      Set the source property: Who created the route.
      Parameters:
      source - the source value to set.
      Returns:
      the EffectiveRoute object itself.
    • state

      public EffectiveRouteState state()
      Get the state property: The value of effective route.
      Returns:
      the state value.
    • withState

      public EffectiveRoute withState(EffectiveRouteState state)
      Set the state property: The value of effective route.
      Parameters:
      state - the state value to set.
      Returns:
      the EffectiveRoute object itself.
    • addressPrefix

      public List<String> addressPrefix()
      Get the addressPrefix property: The address prefixes of the effective routes in CIDR notation.
      Returns:
      the addressPrefix value.
    • withAddressPrefix

      public EffectiveRoute withAddressPrefix(List<String> addressPrefix)
      Set the addressPrefix property: The address prefixes of the effective routes in CIDR notation.
      Parameters:
      addressPrefix - the addressPrefix value to set.
      Returns:
      the EffectiveRoute object itself.
    • nextHopIpAddress

      public List<String> nextHopIpAddress()
      Get the nextHopIpAddress property: The IP address of the next hop of the effective route.
      Returns:
      the nextHopIpAddress value.
    • withNextHopIpAddress

      public EffectiveRoute withNextHopIpAddress(List<String> nextHopIpAddress)
      Set the nextHopIpAddress property: The IP address of the next hop of the effective route.
      Parameters:
      nextHopIpAddress - the nextHopIpAddress value to set.
      Returns:
      the EffectiveRoute 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 EffectiveRoute 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 EffectiveRoute object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.