Class ExpressRouteFailoverCircuitResourceDetails
java.lang.Object
com.azure.resourcemanager.network.models.ExpressRouteFailoverCircuitResourceDetails
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ExpressRouteFailoverCircuitResourceDetails>
public final class ExpressRouteFailoverCircuitResourceDetails
extends Object
implements com.azure.json.JsonSerializable<ExpressRouteFailoverCircuitResourceDetails>
The ExpressRouteFailoverCircuitResourceDetails model.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ExpressRouteFailoverCircuitResourceDetails class. -
Method Summary
Modifier and TypeMethodDescriptionGet the connectionName property: Connection name associated with the circuit.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ExpressRouteFailoverCircuitResourceDetails from the JsonReader.name()Get the name property: Circuit Name.Get the nrpResourceUri property: NRP Resource URI of the circuit.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withConnectionName(String connectionName) Set the connectionName property: Connection name associated with the circuit.Set the name property: Circuit Name.withNrpResourceUri(String nrpResourceUri) Set the nrpResourceUri property: NRP Resource URI of the circuit.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
-
ExpressRouteFailoverCircuitResourceDetails
public ExpressRouteFailoverCircuitResourceDetails()Creates an instance of ExpressRouteFailoverCircuitResourceDetails class.
-
-
Method Details
-
nrpResourceUri
Get the nrpResourceUri property: NRP Resource URI of the circuit.- Returns:
- the nrpResourceUri value.
-
withNrpResourceUri
Set the nrpResourceUri property: NRP Resource URI of the circuit.- Parameters:
nrpResourceUri- the nrpResourceUri value to set.- Returns:
- the ExpressRouteFailoverCircuitResourceDetails object itself.
-
name
Get the name property: Circuit Name.- Returns:
- the name value.
-
withName
Set the name property: Circuit Name.- Parameters:
name- the name value to set.- Returns:
- the ExpressRouteFailoverCircuitResourceDetails object itself.
-
connectionName
Get the connectionName property: Connection name associated with the circuit.- Returns:
- the connectionName value.
-
withConnectionName
Set the connectionName property: Connection name associated with the circuit.- Parameters:
connectionName- the connectionName value to set.- Returns:
- the ExpressRouteFailoverCircuitResourceDetails 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<ExpressRouteFailoverCircuitResourceDetails>- Throws:
IOException
-
fromJson
public static ExpressRouteFailoverCircuitResourceDetails fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ExpressRouteFailoverCircuitResourceDetails from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ExpressRouteFailoverCircuitResourceDetails 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 ExpressRouteFailoverCircuitResourceDetails.
-