共用方式為


ExpressRouteFailoverRedundantRoute Class

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

Implements

public final class ExpressRouteFailoverRedundantRoute
implements JsonSerializable<ExpressRouteFailoverRedundantRoute>

The ExpressRouteFailoverRedundantRoute model.

Constructor Summary

Constructor Description
ExpressRouteFailoverRedundantRoute()

Creates an instance of ExpressRouteFailoverRedundantRoute class.

Method Summary

Modifier and Type Method and Description
static ExpressRouteFailoverRedundantRoute fromJson(JsonReader jsonReader)

Reads an instance of ExpressRouteFailoverRedundantRoute from the JsonReader.

List<String> peeringLocations()

Get the peeringLocations property: A list of all the peering locations for the redundant routes.

List<String> routes()

Get the routes property: A list of all the redundant routes in the peering locations.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ExpressRouteFailoverRedundantRoute withPeeringLocations(List<String> peeringLocations)

Set the peeringLocations property: A list of all the peering locations for the redundant routes.

ExpressRouteFailoverRedundantRoute withRoutes(List<String> routes)

Set the routes property: A list of all the redundant routes in the peering locations.

Methods inherited from java.lang.Object

Constructor Details

ExpressRouteFailoverRedundantRoute

public ExpressRouteFailoverRedundantRoute()

Creates an instance of ExpressRouteFailoverRedundantRoute class.

Method Details

fromJson

public static ExpressRouteFailoverRedundantRoute fromJson(JsonReader jsonReader)

Reads an instance of ExpressRouteFailoverRedundantRoute from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

peeringLocations

public List peeringLocations()

Get the peeringLocations property: A list of all the peering locations for the redundant routes.

Returns:

the peeringLocations value.

routes

public List routes()

Get the routes property: A list of all the redundant routes in the peering locations.

Returns:

the routes value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withPeeringLocations

public ExpressRouteFailoverRedundantRoute withPeeringLocations(List peeringLocations)

Set the peeringLocations property: A list of all the peering locations for the redundant routes.

Parameters:

peeringLocations - the peeringLocations value to set.

Returns:

the ExpressRouteFailoverRedundantRoute object itself.

withRoutes

public ExpressRouteFailoverRedundantRoute withRoutes(List routes)

Set the routes property: A list of all the redundant routes in the peering locations.

Parameters:

routes - the routes value to set.

Returns:

the ExpressRouteFailoverRedundantRoute object itself.

Applies to