Class ExpressRouteFailoverStopApiParameters
java.lang.Object
com.azure.resourcemanager.network.models.ExpressRouteFailoverStopApiParameters
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ExpressRouteFailoverStopApiParameters>
public final class ExpressRouteFailoverStopApiParameters
extends Object
implements com.azure.json.JsonSerializable<ExpressRouteFailoverStopApiParameters>
Start packet capture parameters on virtual network gateway.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ExpressRouteFailoverStopApiParameters class. -
Method Summary
Modifier and TypeMethodDescriptiondetails()Get the details property: List of all the failover connections for this peering location.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ExpressRouteFailoverStopApiParameters from the JsonReader.Get the peeringLocation property: Peering location of the test.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Get the wasSimulationSuccessful property: Whether the failover simulation was successful or not.withDetails(List<FailoverConnectionDetails> details) Set the details property: List of all the failover connections for this peering location.withPeeringLocation(String peeringLocation) Set the peeringLocation property: Peering location of the test.withWasSimulationSuccessful(Boolean wasSimulationSuccessful) Set the wasSimulationSuccessful property: Whether the failover simulation was successful 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
-
ExpressRouteFailoverStopApiParameters
public ExpressRouteFailoverStopApiParameters()Creates an instance of ExpressRouteFailoverStopApiParameters class.
-
-
Method Details
-
peeringLocation
Get the peeringLocation property: Peering location of the test.- Returns:
- the peeringLocation value.
-
withPeeringLocation
Set the peeringLocation property: Peering location of the test.- Parameters:
peeringLocation- the peeringLocation value to set.- Returns:
- the ExpressRouteFailoverStopApiParameters object itself.
-
wasSimulationSuccessful
Get the wasSimulationSuccessful property: Whether the failover simulation was successful or not.- Returns:
- the wasSimulationSuccessful value.
-
withWasSimulationSuccessful
public ExpressRouteFailoverStopApiParameters withWasSimulationSuccessful(Boolean wasSimulationSuccessful) Set the wasSimulationSuccessful property: Whether the failover simulation was successful or not.- Parameters:
wasSimulationSuccessful- the wasSimulationSuccessful value to set.- Returns:
- the ExpressRouteFailoverStopApiParameters object itself.
-
details
Get the details property: List of all the failover connections for this peering location.- Returns:
- the details value.
-
withDetails
Set the details property: List of all the failover connections for this peering location.- Parameters:
details- the details value to set.- Returns:
- the ExpressRouteFailoverStopApiParameters 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<ExpressRouteFailoverStopApiParameters>- Throws:
IOException
-
fromJson
public static ExpressRouteFailoverStopApiParameters fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ExpressRouteFailoverStopApiParameters from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ExpressRouteFailoverStopApiParameters 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 ExpressRouteFailoverStopApiParameters.
-