Class EffectiveRoute

java.lang.Object
com.microsoft.azure.management.network.EffectiveRoute

public class EffectiveRoute extends Object
Effective Route.
  • Constructor Details

    • EffectiveRoute

      public EffectiveRoute()
  • Method Details

    • name

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

      public EffectiveRoute withName(String name)
      Set 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 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 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 who created the route. Possible values include: 'Unknown', 'User', 'VirtualNetworkGateway', 'Default'.
      Returns:
      the source value
    • withSource

      public EffectiveRoute withSource(EffectiveRouteSource source)
      Set who created the route. Possible values include: 'Unknown', 'User', 'VirtualNetworkGateway', 'Default'.
      Parameters:
      source - the source value to set
      Returns:
      the EffectiveRoute object itself.
    • state

      public EffectiveRouteState state()
      Get the value of effective route. Possible values include: 'Active', 'Invalid'.
      Returns:
      the state value
    • withState

      public EffectiveRoute withState(EffectiveRouteState state)
      Set the value of effective route. Possible values include: 'Active', 'Invalid'.
      Parameters:
      state - the state value to set
      Returns:
      the EffectiveRoute object itself.
    • addressPrefix

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

      public EffectiveRoute withAddressPrefix(List<String> addressPrefix)
      Set 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 IP address of the next hop of the effective route.
      Returns:
      the nextHopIpAddress value
    • withNextHopIpAddress

      public EffectiveRoute withNextHopIpAddress(List<String> nextHopIpAddress)
      Set 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 type of Azure hop the packet should be sent to. Possible values include: 'VirtualNetworkGateway', 'VnetLocal', 'Internet', 'VirtualAppliance', 'None'.
      Returns:
      the nextHopType value
    • withNextHopType

      public EffectiveRoute withNextHopType(RouteNextHopType nextHopType)
      Set the type of Azure hop the packet should be sent to. Possible values include: 'VirtualNetworkGateway', 'VnetLocal', 'Internet', 'VirtualAppliance', 'None'.
      Parameters:
      nextHopType - the nextHopType value to set
      Returns:
      the EffectiveRoute object itself.