Class FailoverConnectionDetails
java.lang.Object
com.azure.resourcemanager.network.models.FailoverConnectionDetails
- All Implemented Interfaces:
com.azure.json.JsonSerializable<FailoverConnectionDetails>
public final class FailoverConnectionDetails
extends Object
implements com.azure.json.JsonSerializable<FailoverConnectionDetails>
The FailoverConnectionDetails model.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of FailoverConnectionDetails class. -
Method Summary
Modifier and TypeMethodDescriptionGet the failoverConnectionName property: Name of the failover connection.Get the failoverLocation property: Location of the failover connection.static FailoverConnectionDetailsfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of FailoverConnectionDetails from the JsonReader.Get the isVerified property: Whether the customer was able to establish connectivity through this failover connection or not.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withFailoverConnectionName(String failoverConnectionName) Set the failoverConnectionName property: Name of the failover connection.withFailoverLocation(String failoverLocation) Set the failoverLocation property: Location of the failover connection.withIsVerified(Boolean isVerified) Set the isVerified property: Whether the customer was able to establish connectivity through this failover connection or not.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
-
FailoverConnectionDetails
public FailoverConnectionDetails()Creates an instance of FailoverConnectionDetails class.
-
-
Method Details
-
failoverConnectionName
Get the failoverConnectionName property: Name of the failover connection.- Returns:
- the failoverConnectionName value.
-
withFailoverConnectionName
Set the failoverConnectionName property: Name of the failover connection.- Parameters:
failoverConnectionName- the failoverConnectionName value to set.- Returns:
- the FailoverConnectionDetails object itself.
-
failoverLocation
Get the failoverLocation property: Location of the failover connection.- Returns:
- the failoverLocation value.
-
withFailoverLocation
Set the failoverLocation property: Location of the failover connection.- Parameters:
failoverLocation- the failoverLocation value to set.- Returns:
- the FailoverConnectionDetails object itself.
-
isVerified
Get the isVerified property: Whether the customer was able to establish connectivity through this failover connection or not.- Returns:
- the isVerified value.
-
withIsVerified
Set the isVerified property: Whether the customer was able to establish connectivity through this failover connection or not.- Parameters:
isVerified- the isVerified value to set.- Returns:
- the FailoverConnectionDetails 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<FailoverConnectionDetails>- Throws:
IOException
-
fromJson
public static FailoverConnectionDetails fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of FailoverConnectionDetails from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of FailoverConnectionDetails 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 FailoverConnectionDetails.
-