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 Details

    • ExpressRouteFailoverStopApiParameters

      public ExpressRouteFailoverStopApiParameters()
      Creates an instance of ExpressRouteFailoverStopApiParameters class.
  • Method Details

    • peeringLocation

      public String peeringLocation()
      Get the peeringLocation property: Peering location of the test.
      Returns:
      the peeringLocation value.
    • withPeeringLocation

      public ExpressRouteFailoverStopApiParameters withPeeringLocation(String peeringLocation)
      Set the peeringLocation property: Peering location of the test.
      Parameters:
      peeringLocation - the peeringLocation value to set.
      Returns:
      the ExpressRouteFailoverStopApiParameters object itself.
    • wasSimulationSuccessful

      public Boolean 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

      public List<FailoverConnectionDetails> 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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.