Share via


StaticRoute Class

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

Implements

public final class StaticRoute
implements JsonSerializable<StaticRoute>

List of all Static Routes.

Constructor Summary

Constructor Description
StaticRoute()

Creates an instance of StaticRoute class.

Method Summary

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

Get the addressPrefixes property: List of all address prefixes.

static StaticRoute fromJson(JsonReader jsonReader)

Reads an instance of StaticRoute from the JsonReader.

String name()

Get the name property: The name of the StaticRoute that is unique within a VnetRoute.

String nextHopIpAddress()

Get the nextHopIpAddress property: The ip address of the next hop.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

StaticRoute withAddressPrefixes(List<String> addressPrefixes)

Set the addressPrefixes property: List of all address prefixes.

StaticRoute withName(String name)

Set the name property: The name of the StaticRoute that is unique within a VnetRoute.

StaticRoute withNextHopIpAddress(String nextHopIpAddress)

Set the nextHopIpAddress property: The ip address of the next hop.

Methods inherited from java.lang.Object

Constructor Details

StaticRoute

public StaticRoute()

Creates an instance of StaticRoute class.

Method Details

addressPrefixes

public List<String> addressPrefixes()

Get the addressPrefixes property: List of all address prefixes.

Returns:

the addressPrefixes value.

fromJson

public static StaticRoute fromJson(JsonReader jsonReader)

Reads an instance of StaticRoute from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

name

public String name()

Get the name property: The name of the StaticRoute that is unique within a VnetRoute.

Returns:

the name value.

nextHopIpAddress

public String nextHopIpAddress()

Get the nextHopIpAddress property: The ip address of the next hop.

Returns:

the nextHopIpAddress value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAddressPrefixes

public StaticRoute withAddressPrefixes(List<String> addressPrefixes)

Set the addressPrefixes property: List of all address prefixes.

Parameters:

addressPrefixes - the addressPrefixes value to set.

Returns:

the StaticRoute object itself.

withName

public StaticRoute withName(String name)

Set the name property: The name of the StaticRoute that is unique within a VnetRoute.

Parameters:

name - the name value to set.

Returns:

the StaticRoute object itself.

withNextHopIpAddress

public StaticRoute withNextHopIpAddress(String nextHopIpAddress)

Set the nextHopIpAddress property: The ip address of the next hop.

Parameters:

nextHopIpAddress - the nextHopIpAddress value to set.

Returns:

the StaticRoute object itself.

Applies to