EffectiveRouteMapRoute Class

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

Implements

public final class EffectiveRouteMapRoute
implements JsonSerializable<EffectiveRouteMapRoute>

The effective RouteMap route configured on the connection resource.

Constructor Summary

Constructor Description
EffectiveRouteMapRoute()

Creates an instance of EffectiveRouteMapRoute class.

Method Summary

Modifier and Type Method and Description
String asPath()

Get the asPath property: The ASPath of this route.

String bgpCommunities()

Get the bgpCommunities property: BGP communities of the route.

static EffectiveRouteMapRoute fromJson(JsonReader jsonReader)

Reads an instance of EffectiveRouteMapRoute from the JsonReader.

String prefix()

Get the prefix property: The address prefix of the route.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

EffectiveRouteMapRoute withAsPath(String asPath)

Set the asPath property: The ASPath of this route.

EffectiveRouteMapRoute withBgpCommunities(String bgpCommunities)

Set the bgpCommunities property: BGP communities of the route.

EffectiveRouteMapRoute withPrefix(String prefix)

Set the prefix property: The address prefix of the route.

Methods inherited from java.lang.Object

Constructor Details

EffectiveRouteMapRoute

public EffectiveRouteMapRoute()

Creates an instance of EffectiveRouteMapRoute class.

Method Details

asPath

public String asPath()

Get the asPath property: The ASPath of this route.

Returns:

the asPath value.

bgpCommunities

public String bgpCommunities()

Get the bgpCommunities property: BGP communities of the route.

Returns:

the bgpCommunities value.

fromJson

public static EffectiveRouteMapRoute fromJson(JsonReader jsonReader)

Reads an instance of EffectiveRouteMapRoute from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of EffectiveRouteMapRoute 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 EffectiveRouteMapRoute.

prefix

public String prefix()

Get the prefix property: The address prefix of the route.

Returns:

the prefix value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAsPath

public EffectiveRouteMapRoute withAsPath(String asPath)

Set the asPath property: The ASPath of this route.

Parameters:

asPath - the asPath value to set.

Returns:

the EffectiveRouteMapRoute object itself.

withBgpCommunities

public EffectiveRouteMapRoute withBgpCommunities(String bgpCommunities)

Set the bgpCommunities property: BGP communities of the route.

Parameters:

bgpCommunities - the bgpCommunities value to set.

Returns:

the EffectiveRouteMapRoute object itself.

withPrefix

public EffectiveRouteMapRoute withPrefix(String prefix)

Set the prefix property: The address prefix of the route.

Parameters:

prefix - the prefix value to set.

Returns:

the EffectiveRouteMapRoute object itself.

Applies to