Class ExpressRouteFailoverConnectionResourceDetails
java.lang.Object
com.azure.resourcemanager.network.models.ExpressRouteFailoverConnectionResourceDetails
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ExpressRouteFailoverConnectionResourceDetails>
public final class ExpressRouteFailoverConnectionResourceDetails
extends Object
implements com.azure.json.JsonSerializable<ExpressRouteFailoverConnectionResourceDetails>
The ExpressRouteFailoverConnectionResourceDetails model.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ExpressRouteFailoverConnectionResourceDetails class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ExpressRouteFailoverConnectionResourceDetails from the JsonReader.Get the lastUpdatedTime property: Time when the connection was last updated.name()Get the name property: Connection Name.Get the nrpResourceUri property: NRP Resource URI of the connection.status()Get the status property: The current status of the connection.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withLastUpdatedTime(String lastUpdatedTime) Set the lastUpdatedTime property: Time when the connection was last updated.Set the name property: Connection Name.withNrpResourceUri(String nrpResourceUri) Set the nrpResourceUri property: NRP Resource URI of the connection.withStatus(FailoverConnectionStatus status) Set the status property: The current status of the connection.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
-
ExpressRouteFailoverConnectionResourceDetails
public ExpressRouteFailoverConnectionResourceDetails()Creates an instance of ExpressRouteFailoverConnectionResourceDetails class.
-
-
Method Details
-
nrpResourceUri
Get the nrpResourceUri property: NRP Resource URI of the connection.- Returns:
- the nrpResourceUri value.
-
withNrpResourceUri
Set the nrpResourceUri property: NRP Resource URI of the connection.- Parameters:
nrpResourceUri- the nrpResourceUri value to set.- Returns:
- the ExpressRouteFailoverConnectionResourceDetails object itself.
-
name
Get the name property: Connection Name.- Returns:
- the name value.
-
withName
Set the name property: Connection Name.- Parameters:
name- the name value to set.- Returns:
- the ExpressRouteFailoverConnectionResourceDetails object itself.
-
status
Get the status property: The current status of the connection.- Returns:
- the status value.
-
withStatus
Set the status property: The current status of the connection.- Parameters:
status- the status value to set.- Returns:
- the ExpressRouteFailoverConnectionResourceDetails object itself.
-
lastUpdatedTime
Get the lastUpdatedTime property: Time when the connection was last updated.- Returns:
- the lastUpdatedTime value.
-
withLastUpdatedTime
Set the lastUpdatedTime property: Time when the connection was last updated.- Parameters:
lastUpdatedTime- the lastUpdatedTime value to set.- Returns:
- the ExpressRouteFailoverConnectionResourceDetails 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<ExpressRouteFailoverConnectionResourceDetails>- Throws:
IOException
-
fromJson
public static ExpressRouteFailoverConnectionResourceDetails fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ExpressRouteFailoverConnectionResourceDetails from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ExpressRouteFailoverConnectionResourceDetails 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 ExpressRouteFailoverConnectionResourceDetails.
-