Class ExpressRouteCrossConnectionRoutesTableSummary
java.lang.Object
com.azure.resourcemanager.network.models.ExpressRouteCrossConnectionRoutesTableSummary
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ExpressRouteCrossConnectionRoutesTableSummary>
public final class ExpressRouteCrossConnectionRoutesTableSummary
extends Object
implements com.azure.json.JsonSerializable<ExpressRouteCrossConnectionRoutesTableSummary>
The routes table associated with the ExpressRouteCircuit.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ExpressRouteCrossConnectionRoutesTableSummary class. -
Method Summary
Modifier and TypeMethodDescriptionasn()Get the asn property: Autonomous system number.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ExpressRouteCrossConnectionRoutesTableSummary from the JsonReader.neighbor()Get the neighbor property: IP address of Neighbor router.Get the stateOrPrefixesReceived property: Current state of the BGP session, and the number of prefixes that have been received from a neighbor or peer group.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) upDown()Get the upDown property: The length of time that the BGP session has been in the Established state, or the current status if not in the Established state.voidvalidate()Validates the instance.Set the asn property: Autonomous system number.withNeighbor(String neighbor) Set the neighbor property: IP address of Neighbor router.withStateOrPrefixesReceived(String stateOrPrefixesReceived) Set the stateOrPrefixesReceived property: Current state of the BGP session, and the number of prefixes that have been received from a neighbor or peer group.withUpDown(String upDown) Set the upDown property: The length of time that the BGP session has been in the Established state, or the current status if not in the Established state.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ExpressRouteCrossConnectionRoutesTableSummary
public ExpressRouteCrossConnectionRoutesTableSummary()Creates an instance of ExpressRouteCrossConnectionRoutesTableSummary class.
-
-
Method Details
-
neighbor
Get the neighbor property: IP address of Neighbor router.- Returns:
- the neighbor value.
-
withNeighbor
Set the neighbor property: IP address of Neighbor router.- Parameters:
neighbor- the neighbor value to set.- Returns:
- the ExpressRouteCrossConnectionRoutesTableSummary object itself.
-
asn
Get the asn property: Autonomous system number.- Returns:
- the asn value.
-
withAsn
Set the asn property: Autonomous system number.- Parameters:
asn- the asn value to set.- Returns:
- the ExpressRouteCrossConnectionRoutesTableSummary object itself.
-
upDown
Get the upDown property: The length of time that the BGP session has been in the Established state, or the current status if not in the Established state.- Returns:
- the upDown value.
-
withUpDown
Set the upDown property: The length of time that the BGP session has been in the Established state, or the current status if not in the Established state.- Parameters:
upDown- the upDown value to set.- Returns:
- the ExpressRouteCrossConnectionRoutesTableSummary object itself.
-
stateOrPrefixesReceived
Get the stateOrPrefixesReceived property: Current state of the BGP session, and the number of prefixes that have been received from a neighbor or peer group.- Returns:
- the stateOrPrefixesReceived value.
-
withStateOrPrefixesReceived
public ExpressRouteCrossConnectionRoutesTableSummary withStateOrPrefixesReceived(String stateOrPrefixesReceived) Set the stateOrPrefixesReceived property: Current state of the BGP session, and the number of prefixes that have been received from a neighbor or peer group.- Parameters:
stateOrPrefixesReceived- the stateOrPrefixesReceived value to set.- Returns:
- the ExpressRouteCrossConnectionRoutesTableSummary object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ExpressRouteCrossConnectionRoutesTableSummary>- Throws:
IOException
-
fromJson
public static ExpressRouteCrossConnectionRoutesTableSummary fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ExpressRouteCrossConnectionRoutesTableSummary from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ExpressRouteCrossConnectionRoutesTableSummary 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 ExpressRouteCrossConnectionRoutesTableSummary.
-