Class VirtualNetworkGatewayMigrationStatus

java.lang.Object
com.azure.resourcemanager.network.models.VirtualNetworkGatewayMigrationStatus
All Implemented Interfaces:
com.azure.json.JsonSerializable<VirtualNetworkGatewayMigrationStatus>

public final class VirtualNetworkGatewayMigrationStatus extends Object implements com.azure.json.JsonSerializable<VirtualNetworkGatewayMigrationStatus>
Migration status for the Virtual Network Gateway.
  • Constructor Details

    • VirtualNetworkGatewayMigrationStatus

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

    • state

      Get the state property: Represent the current state of gateway migration.
      Returns:
      the state value.
    • withState

      Set the state property: Represent the current state of gateway migration.
      Parameters:
      state - the state value to set.
      Returns:
      the VirtualNetworkGatewayMigrationStatus object itself.
    • phase

      Get the phase property: Represent the current migration phase of gateway.
      Returns:
      the phase value.
    • withPhase

      Set the phase property: Represent the current migration phase of gateway.
      Parameters:
      phase - the phase value to set.
      Returns:
      the VirtualNetworkGatewayMigrationStatus object itself.
    • errorMessage

      public String errorMessage()
      Get the errorMessage property: Error if any occurs during migration.
      Returns:
      the errorMessage value.
    • withErrorMessage

      public VirtualNetworkGatewayMigrationStatus withErrorMessage(String errorMessage)
      Set the errorMessage property: Error if any occurs during migration.
      Parameters:
      errorMessage - the errorMessage value to set.
      Returns:
      the VirtualNetworkGatewayMigrationStatus 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<VirtualNetworkGatewayMigrationStatus>
      Throws:
      IOException
    • fromJson

      public static VirtualNetworkGatewayMigrationStatus fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of VirtualNetworkGatewayMigrationStatus from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of VirtualNetworkGatewayMigrationStatus 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 VirtualNetworkGatewayMigrationStatus.