PortMigrationInfo Class

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

Implements

public final class PortMigrationInfo
implements JsonSerializable<PortMigrationInfo>

Information about a port migration status.

Method Summary

Modifier and Type Method and Description
String failureReason()

Get the failureReason property: The reason for failure if migration failed for the port.

static PortMigrationInfo fromJson(JsonReader jsonReader)

Reads an instance of PortMigrationInfo from the JsonReader.

List<PeeringHealth> peerings()

Get the peerings property: The peering health details for the port.

String phase()

Get the phase property: The current migration phase for the port.

String portId()

Get the portId property: The identifier of the port being migrated.

String sourcePortId()

Get the sourcePortId property: The source port identifier before migration.

SourcePortStats sourcePortStats()

Get the sourcePortStats property: The source port statistics before migration.

String status()

Get the status property: The migration status for the port.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Methods inherited from java.lang.Object

Method Details

failureReason

public String failureReason()

Get the failureReason property: The reason for failure if migration failed for the port.

Returns:

the failureReason value.

fromJson

public static PortMigrationInfo fromJson(JsonReader jsonReader)

Reads an instance of PortMigrationInfo from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of PortMigrationInfo 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 PortMigrationInfo.

peerings

public List<PeeringHealth> peerings()

Get the peerings property: The peering health details for the port.

Returns:

the peerings value.

phase

public String phase()

Get the phase property: The current migration phase for the port.

Returns:

the phase value.

portId

public String portId()

Get the portId property: The identifier of the port being migrated.

Returns:

the portId value.

sourcePortId

public String sourcePortId()

Get the sourcePortId property: The source port identifier before migration.

Returns:

the sourcePortId value.

sourcePortStats

public SourcePortStats sourcePortStats()

Get the sourcePortStats property: The source port statistics before migration.

Returns:

the sourcePortStats value.

status

public String status()

Get the status property: The migration status for the port.

Returns:

the status value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Applies to