RouteInner Class

public final class RouteInner
extends SubResourceModel

Route resource.

Constructor Summary

Constructor Description
RouteInner()

Creates an instance of RouteInner class.

Method Summary

Modifier and Type Method and Description
String addressPrefix()

Get the addressPrefix property: The destination CIDR to which the route applies.

String etag()

Get the etag property: A unique read-only string that changes whenever the resource is updated.

static RouteInner fromJson(JsonReader jsonReader)

Reads an instance of RouteInner from the JsonReader.

Boolean hasBgpOverride()

Get the hasBgpOverride property: A value indicating whether this route overrides overlapping BGP routes regardless of LPM.

RouteNextHopEcmp nextHop()

Get the nextHop property: The next hop definition containing ECMP next hop IP addresses.

String nextHopIpAddress()

Get the nextHopIpAddress property: The IP address packets should be forwarded to.

RouteNextHopType nextHopType()

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

ProvisioningState provisioningState()

Get the provisioningState property: The provisioning state of the route resource.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: Resource type.

void validate()

Validates the instance.

RouteInner withAddressPrefix(String addressPrefix)

Set the addressPrefix property: The destination CIDR to which the route applies.

RouteInner withId(String id)
RouteInner withName(String name)

Set the name property: Name of the resource.

RouteInner withNextHop(RouteNextHopEcmp nextHop)

Set the nextHop property: The next hop definition containing ECMP next hop IP addresses.

RouteInner withNextHopIpAddress(String nextHopIpAddress)

Set the nextHopIpAddress property: The IP address packets should be forwarded to.

RouteInner withNextHopType(RouteNextHopType nextHopType)

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

Methods inherited from SubResource

id

Methods inherited from SubResourceModel

Methods inherited from java.lang.Object

Constructor Details

RouteInner

public RouteInner()

Creates an instance of RouteInner class.

Method Details

addressPrefix

public String addressPrefix()

Get the addressPrefix property: The destination CIDR to which the route applies.

Returns:

the addressPrefix value.

etag

public String etag()

Get the etag property: A unique read-only string that changes whenever the resource is updated.

Returns:

the etag value.

fromJson

public static RouteInner fromJson(JsonReader jsonReader)

Reads an instance of RouteInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

hasBgpOverride

public Boolean hasBgpOverride()

Get the hasBgpOverride property: A value indicating whether this route overrides overlapping BGP routes regardless of LPM.

Returns:

the hasBgpOverride value.

nextHop

public RouteNextHopEcmp nextHop()

Get the nextHop property: The next hop definition containing ECMP next hop IP addresses. Only allowed when nextHopType is VirtualApplianceEcmp.

Returns:

the nextHop value.

nextHopIpAddress

public String nextHopIpAddress()

Get the nextHopIpAddress property: The IP address packets should be forwarded to. Next hop values are only allowed in routes where the next hop type is VirtualAppliance.

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.

provisioningState

public ProvisioningState provisioningState()

Get the provisioningState property: The provisioning state of the route resource.

Returns:

the provisioningState value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

RouteInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: Resource type.

Overrides:

RouteInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

Overrides:

RouteInner.validate()

withAddressPrefix

public RouteInner withAddressPrefix(String addressPrefix)

Set the addressPrefix property: The destination CIDR to which the route applies.

Parameters:

addressPrefix - the addressPrefix value to set.

Returns:

the RouteInner object itself.

withId

public RouteInner withId(String id)

Overrides:

RouteInner.withId(String id)

Parameters:

id

withName

public RouteInner withName(String name)

Set the name property: Name of the resource.

Overrides:

RouteInner.withName(String name)

Parameters:

name

withNextHop

public RouteInner withNextHop(RouteNextHopEcmp nextHop)

Set the nextHop property: The next hop definition containing ECMP next hop IP addresses. Only allowed when nextHopType is VirtualApplianceEcmp.

Parameters:

nextHop - the nextHop value to set.

Returns:

the RouteInner object itself.

withNextHopIpAddress

public RouteInner withNextHopIpAddress(String nextHopIpAddress)

Set the nextHopIpAddress property: The IP address packets should be forwarded to. Next hop values are only allowed in routes where the next hop type is VirtualAppliance.

Parameters:

nextHopIpAddress - the nextHopIpAddress value to set.

Returns:

the RouteInner object itself.

withNextHopType

public RouteInner 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 RouteInner object itself.

Applies to