RouteSourceDetails Class
- java.
lang. Object - com.
azure. resourcemanager. network. models. RouteSourceDetails
- com.
Implements
public final class RouteSourceDetails
implements JsonSerializable<RouteSourceDetails>
The RouteSourceDetails model.
Constructor Summary
| Constructor | Description |
|---|---|
| RouteSourceDetails() |
Creates an instance of Route |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
circuit()
Get the circuit property: Express Route Circuit identifier. |
|
static
Route |
fromJson(JsonReader jsonReader)
Reads an instance of Route |
| 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. |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Route |
withCircuit(String circuit)
Set the circuit property: Express Route Circuit identifier. |
|
Route |
withPri(String pri)
Set the pri property: Flag to indicate if the route learned from the primary device is active or passive. |
|
Route |
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:
fromJson
public static RouteSourceDetails fromJson(JsonReader jsonReader)
Reads an instance of RouteSourceDetails from the JsonReader.
Parameters:
Returns:
Throws:
pri
public String pri()
Get the pri property: Flag to indicate if the route learned from the primary device is active or passive.
Returns:
sec
public String sec()
Get the sec property: Flag to indicate if the route learned from the secondary device is active or passive.
Returns:
toJson
validate
public void validate()
Validates the instance.
withCircuit
public RouteSourceDetails withCircuit(String circuit)
Set the circuit property: Express Route Circuit identifier.
Parameters:
Returns:
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:
Returns:
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:
Returns: