Class EffectiveRoute
java.lang.Object
com.microsoft.azure.management.network.EffectiveRoute
Effective Route.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the address prefixes of the effective routes in CIDR notation.Get if true, on-premises routes are not propagated to the network interfaces in the subnet.name()
Get the name of the user defined route.Get the IP address of the next hop of the effective route.Get the type of Azure hop the packet should be sent to.source()
Get who created the route.state()
Get the value of effective route.withAddressPrefix
(List<String> addressPrefix) Set the address prefixes of the effective routes in CIDR notation.withDisableBgpRoutePropagation
(Boolean disableBgpRoutePropagation) Set if true, on-premises routes are not propagated to the network interfaces in the subnet.Set the name of the user defined route.withNextHopIpAddress
(List<String> nextHopIpAddress) Set the IP address of the next hop of the effective route.withNextHopType
(RouteNextHopType nextHopType) Set the type of Azure hop the packet should be sent to.withSource
(EffectiveRouteSource source) Set who created the route.withState
(EffectiveRouteState state) Set the value of effective route.
-
Constructor Details
-
EffectiveRoute
public EffectiveRoute()
-
-
Method Details
-
name
Get the name of the user defined route. This is optional.- Returns:
- the name value
-
withName
Set the name of the user defined route. This is optional.- Parameters:
name
- the name value to set- Returns:
- the EffectiveRoute object itself.
-
disableBgpRoutePropagation
Get if true, on-premises routes are not propagated to the network interfaces in the subnet.- Returns:
- the disableBgpRoutePropagation value
-
withDisableBgpRoutePropagation
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
Get who created the route. Possible values include: 'Unknown', 'User', 'VirtualNetworkGateway', 'Default'.- Returns:
- the source value
-
withSource
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
Get the value of effective route. Possible values include: 'Active', 'Invalid'.- Returns:
- the state value
-
withState
Set the value of effective route. Possible values include: 'Active', 'Invalid'.- Parameters:
state
- the state value to set- Returns:
- the EffectiveRoute object itself.
-
addressPrefix
Get the address prefixes of the effective routes in CIDR notation.- Returns:
- the addressPrefix value
-
withAddressPrefix
Set the address prefixes of the effective routes in CIDR notation.- Parameters:
addressPrefix
- the addressPrefix value to set- Returns:
- the EffectiveRoute object itself.
-
nextHopIpAddress
Get the IP address of the next hop of the effective route.- Returns:
- the nextHopIpAddress value
-
withNextHopIpAddress
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
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
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.
-