Share via


VirtualNetworkGatewayMigrationStatus Class

  • java.lang.Object
    • com.azure.resourcemanager.network.models.VirtualNetworkGatewayMigrationStatus

Implements

public final class VirtualNetworkGatewayMigrationStatus
implements JsonSerializable<VirtualNetworkGatewayMigrationStatus>

Migration status for the Virtual Network Gateway.

Constructor Summary

Constructor Description
VirtualNetworkGatewayMigrationStatus()

Creates an instance of VirtualNetworkGatewayMigrationStatus class.

Method Summary

Modifier and Type Method and Description
String errorMessage()

Get the errorMessage property: Error if any occurs during migration.

static VirtualNetworkGatewayMigrationStatus fromJson(JsonReader jsonReader)

Reads an instance of VirtualNetworkGatewayMigrationStatus from the JsonReader.

VirtualNetworkGatewayMigrationPhase phase()

Get the phase property: Represent the current migration phase of gateway.

VirtualNetworkGatewayMigrationState state()

Get the state property: Represent the current state of gateway migration.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

VirtualNetworkGatewayMigrationStatus withErrorMessage(String errorMessage)

Set the errorMessage property: Error if any occurs during migration.

VirtualNetworkGatewayMigrationStatus withPhase(VirtualNetworkGatewayMigrationPhase phase)

Set the phase property: Represent the current migration phase of gateway.

VirtualNetworkGatewayMigrationStatus 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:

the errorMessage value.

fromJson

public static VirtualNetworkGatewayMigrationStatus fromJson(JsonReader jsonReader)

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.

phase

public VirtualNetworkGatewayMigrationPhase phase()

Get the phase property: Represent the current migration phase of gateway.

Returns:

the phase value.

state

public VirtualNetworkGatewayMigrationState state()

Get the state property: Represent the current state of gateway migration.

Returns:

the state value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

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.

withPhase

public VirtualNetworkGatewayMigrationStatus withPhase(VirtualNetworkGatewayMigrationPhase phase)

Set the phase property: Represent the current migration phase of gateway.

Parameters:

phase - the phase value to set.

Returns:

the VirtualNetworkGatewayMigrationStatus object itself.

withState

public VirtualNetworkGatewayMigrationStatus withState(VirtualNetworkGatewayMigrationState state)

Set the state property: Represent the current state of gateway migration.

Parameters:

state - the state value to set.

Returns:

the VirtualNetworkGatewayMigrationStatus object itself.

Applies to