EffectiveRoute Class
- java.
lang. Object - com.
azure. resourcemanager. network. models. EffectiveRoute
- com.
Implements
public final class EffectiveRoute
implements JsonSerializable<EffectiveRoute>
Effective Route.
Constructor Summary
Constructor | Description |
---|---|
EffectiveRoute() |
Creates an instance of Effective |
Method Summary
Modifier and Type | Method and Description |
---|---|
List<String> |
addressPrefix()
Get the address |
Boolean |
disableBgpRoutePropagation()
Get the disable |
static
Effective |
fromJson(JsonReader jsonReader)
Reads an instance of Effective |
String |
name()
Get the name property: The name of the user defined route. |
List<String> |
nextHopIpAddress()
Get the next |
Route |
nextHopType()
Get the next |
Effective |
source()
Get the source property: Who created the route. |
Effective |
state()
Get the state property: The value of effective route. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Effective |
withAddressPrefix(List<String> addressPrefix)
Set the address |
Effective |
withDisableBgpRoutePropagation(Boolean disableBgpRoutePropagation)
Set the disable |
Effective |
withName(String name)
Set the name property: The name of the user defined route. |
Effective |
withNextHopIpAddress(List<String> nextHopIpAddress)
Set the next |
Effective |
withNextHopType(RouteNextHopType nextHopType)
Set the next |
Effective |
withSource(EffectiveRouteSource source)
Set the source property: Who created the route. |
Effective |
withState(EffectiveRouteState state)
Set the state property: The value of effective route. |
Methods inherited from java.lang.Object
Constructor Details
EffectiveRoute
public EffectiveRoute()
Creates an instance of EffectiveRoute class.
Method Details
addressPrefix
public List
Get the addressPrefix property: The address prefixes of the effective routes in CIDR notation.
Returns:
disableBgpRoutePropagation
public Boolean disableBgpRoutePropagation()
Get the disableBgpRoutePropagation property: If true, on-premises routes are not propagated to the network interfaces in the subnet.
Returns:
fromJson
public static EffectiveRoute fromJson(JsonReader jsonReader)
Reads an instance of EffectiveRoute from the JsonReader.
Parameters:
Returns:
Throws:
name
public String name()
Get the name property: The name of the user defined route. This is optional.
Returns:
nextHopIpAddress
public List
Get the nextHopIpAddress property: The IP address of the next hop of the effective route.
Returns:
nextHopType
public RouteNextHopType nextHopType()
Get the nextHopType property: The type of Azure hop the packet should be sent to.
Returns:
source
public EffectiveRouteSource source()
Get the source property: Who created the route.
Returns:
state
public EffectiveRouteState state()
Get the state property: The value of effective route.
Returns:
toJson
validate
public void validate()
Validates the instance.
withAddressPrefix
public EffectiveRoute withAddressPrefix(List
Set the addressPrefix property: The address prefixes of the effective routes in CIDR notation.
Parameters:
Returns:
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:
Returns:
withName
public EffectiveRoute withName(String name)
Set the name property: The name of the user defined route. This is optional.
Parameters:
Returns:
withNextHopIpAddress
public EffectiveRoute withNextHopIpAddress(List
Set the nextHopIpAddress property: The IP address of the next hop of the effective route.
Parameters:
Returns:
withNextHopType
public EffectiveRoute withNextHopType(RouteNextHopType nextHopType)
Set the nextHopType property: The type of Azure hop the packet should be sent to.
Parameters:
Returns:
withSource
public EffectiveRoute withSource(EffectiveRouteSource source)
Set the source property: Who created the route.
Parameters:
Returns:
withState
public EffectiveRoute withState(EffectiveRouteState state)
Set the state property: The value of effective route.
Parameters:
Returns:
Applies to
Azure SDK for Java