Condividi tramite


RouteSourceDetails Class

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

Implements

public final class RouteSourceDetails
implements JsonSerializable<RouteSourceDetails>

The RouteSourceDetails model.

Constructor Summary

Constructor Description
RouteSourceDetails()

Creates an instance of RouteSourceDetails class.

Method Summary

Modifier and Type Method and Description
String circuit()

Get the circuit property: Express Route Circuit identifier.

static RouteSourceDetails fromJson(JsonReader jsonReader)

Reads an instance of RouteSourceDetails from the JsonReader.

String pri()

Get the pri property: Flag to indicate if the route learned from the primary device is active or passive.

String sec()

Get the sec property: Flag to indicate if the route learned from the secondary device is active or passive.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

RouteSourceDetails withCircuit(String circuit)

Set the circuit property: Express Route Circuit identifier.

RouteSourceDetails withPri(String pri)

Set the pri property: Flag to indicate if the route learned from the primary device is active or passive.

RouteSourceDetails withSec(String sec)

Set the sec property: Flag to indicate if the route learned from the secondary device is active or passive.

Methods inherited from java.lang.Object

Constructor Details

RouteSourceDetails

public RouteSourceDetails()

Creates an instance of RouteSourceDetails class.

Method Details

circuit

public String circuit()

Get the circuit property: Express Route Circuit identifier.

Returns:

the circuit value.

fromJson

public static RouteSourceDetails fromJson(JsonReader jsonReader)

Reads an instance of RouteSourceDetails from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

pri

public String pri()

Get the pri property: Flag to indicate if the route learned from the primary device is active or passive.

Returns:

the pri value.

sec

public String sec()

Get the sec property: Flag to indicate if the route learned from the secondary device is active or passive.

Returns:

the sec value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withCircuit

public RouteSourceDetails withCircuit(String circuit)

Set the circuit property: Express Route Circuit identifier.

Parameters:

circuit - the circuit value to set.

Returns:

the RouteSourceDetails object itself.

withPri

public RouteSourceDetails withPri(String pri)

Set the pri property: Flag to indicate if the route learned from the primary device is active or passive.

Parameters:

pri - the pri value to set.

Returns:

the RouteSourceDetails object itself.

withSec

public RouteSourceDetails withSec(String sec)

Set the sec property: Flag to indicate if the route learned from the secondary device is active or passive.

Parameters:

sec - the sec value to set.

Returns:

the RouteSourceDetails object itself.

Applies to