Partilhar via


EffectiveRoute Class

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

Implements

public final class EffectiveRoute
implements JsonSerializable<EffectiveRoute>

Effective Route.

Constructor Summary

Constructor Description
EffectiveRoute()

Creates an instance of EffectiveRoute class.

Method Summary

Modifier and Type Method and Description
List<String> addressPrefix()

Get the addressPrefix property: The address prefixes of the effective routes in CIDR notation.

Boolean disableBgpRoutePropagation()

Get the disableBgpRoutePropagation property: If true, on-premises routes are not propagated to the network interfaces in the subnet.

static EffectiveRoute fromJson(JsonReader jsonReader)

Reads an instance of EffectiveRoute from the JsonReader.

String name()

Get the name property: The name of the user defined route.

List<String> nextHopIpAddress()

Get the nextHopIpAddress property: The IP address of the next hop of the effective route.

RouteNextHopType nextHopType()

Get the nextHopType property: The type of Azure hop the packet should be sent to.

EffectiveRouteSource source()

Get the source property: Who created the route.

EffectiveRouteState state()

Get the state property: The value of effective route.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

EffectiveRoute withAddressPrefix(List<String> addressPrefix)

Set the addressPrefix property: The address prefixes of the effective routes in CIDR notation.

EffectiveRoute withDisableBgpRoutePropagation(Boolean disableBgpRoutePropagation)

Set the disableBgpRoutePropagation property: If true, on-premises routes are not propagated to the network interfaces in the subnet.

EffectiveRoute withName(String name)

Set the name property: The name of the user defined route.

EffectiveRoute withNextHopIpAddress(List<String> nextHopIpAddress)

Set the nextHopIpAddress property: The IP address of the next hop of the effective route.

EffectiveRoute withNextHopType(RouteNextHopType nextHopType)

Set the nextHopType property: The type of Azure hop the packet should be sent to.

EffectiveRoute withSource(EffectiveRouteSource source)

Set the source property: Who created the route.

EffectiveRoute 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 addressPrefix()

Get the addressPrefix property: The address prefixes of the effective routes in CIDR notation.

Returns:

the addressPrefix value.

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.

fromJson

public static EffectiveRoute fromJson(JsonReader jsonReader)

Reads an instance of EffectiveRoute from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of EffectiveRoute if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the EffectiveRoute.

name

public String name()

Get the name property: The name of the user defined route. This is optional.

Returns:

the name value.

nextHopIpAddress

public List nextHopIpAddress()

Get the nextHopIpAddress property: The IP address of the next hop of the effective route.

Returns:

the nextHopIpAddress value.

nextHopType

public RouteNextHopType nextHopType()

Get the nextHopType property: The type of Azure hop the packet should be sent to.

Returns:

the nextHopType value.

source

public EffectiveRouteSource source()

Get the source property: Who created the route.

Returns:

the source value.

state

public EffectiveRouteState state()

Get the state property: The value of effective route.

Returns:

the state value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAddressPrefix

public EffectiveRoute withAddressPrefix(List 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.

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.

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.

withNextHopIpAddress

public EffectiveRoute withNextHopIpAddress(List 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.

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.

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.

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.

Applies to