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 Summary
ConstructorsConstructorDescriptionCreates an instance of VirtualNetworkGatewayMigrationStatus class. -
Method Summary
Modifier and TypeMethodDescriptionGet the errorMessage property: Error if any occurs during migration.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of VirtualNetworkGatewayMigrationStatus from the JsonReader.phase()Get the phase property: Represent the current migration phase of gateway.state()Get the state property: Represent the current state of gateway migration.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withErrorMessage(String errorMessage) Set the errorMessage property: Error if any occurs during migration.Set the phase property: Represent the current migration phase of gateway.Set the state property: Represent the current state of gateway migration.Methods inherited from class 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
-
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
Get the errorMessage property: Error if any occurs during migration.- Returns:
- the errorMessage value.
-
withErrorMessage
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
- Specified by:
toJsonin interfacecom.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.
-