VirtualNetworkGatewayMigrationStatus Class
- java.
lang. Object - com.
azure. resourcemanager. network. models. VirtualNetworkGatewayMigrationStatus
- com.
Implements
public final class VirtualNetworkGatewayMigrationStatus
implements JsonSerializable<VirtualNetworkGatewayMigrationStatus>
Migration status for the Virtual Network Gateway.
Constructor Summary
| Constructor | Description |
|---|---|
| VirtualNetworkGatewayMigrationStatus() |
Creates an instance of Virtual |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
errorMessage()
Get the error |
|
static
Virtual |
fromJson(JsonReader jsonReader)
Reads an instance of Virtual |
|
Virtual |
phase()
Get the phase property: Represent the current migration phase of gateway. |
|
Virtual |
state()
Get the state property: Represent the current state of gateway migration. |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Virtual |
withErrorMessage(String errorMessage)
Set the error |
|
Virtual |
withPhase(VirtualNetworkGatewayMigrationPhase phase)
Set the phase property: Represent the current migration phase of gateway. |
|
Virtual |
withState(VirtualNetworkGatewayMigrationState state)
Set the state property: Represent the current state of gateway migration. |
Methods inherited from java.lang.Object
Constructor Details
VirtualNetworkGatewayMigrationStatus
public VirtualNetworkGatewayMigrationStatus()
Creates an instance of VirtualNetworkGatewayMigrationStatus class.
Method Details
errorMessage
public String errorMessage()
Get the errorMessage property: Error if any occurs during migration.
Returns:
fromJson
public static VirtualNetworkGatewayMigrationStatus fromJson(JsonReader jsonReader)
Reads an instance of VirtualNetworkGatewayMigrationStatus from the JsonReader.
Parameters:
Returns:
Throws:
phase
public VirtualNetworkGatewayMigrationPhase phase()
Get the phase property: Represent the current migration phase of gateway.
Returns:
state
public VirtualNetworkGatewayMigrationState state()
Get the state property: Represent the current state of gateway migration.
Returns:
toJson
validate
public void validate()
Validates the instance.
withErrorMessage
public VirtualNetworkGatewayMigrationStatus withErrorMessage(String errorMessage)
Set the errorMessage property: Error if any occurs during migration.
Parameters:
Returns:
withPhase
public VirtualNetworkGatewayMigrationStatus withPhase(VirtualNetworkGatewayMigrationPhase phase)
Set the phase property: Represent the current migration phase of gateway.
Parameters:
Returns:
withState
public VirtualNetworkGatewayMigrationStatus withState(VirtualNetworkGatewayMigrationState state)
Set the state property: Represent the current state of gateway migration.
Parameters:
Returns: