Share via


SqlBackupFileInfo Class

  • java.lang.Object
    • com.azure.resourcemanager.datamigration.models.SqlBackupFileInfo

Implements

public final class SqlBackupFileInfo
implements JsonSerializable<SqlBackupFileInfo>

Information of backup file.

Constructor Summary

Constructor Description
SqlBackupFileInfo()

Creates an instance of SqlBackupFileInfo class.

Method Summary

Modifier and Type Method and Description
Integer copyDuration()

Get the copyDuration property: Copy Duration in seconds.

Double copyThroughput()

Get the copyThroughput property: Copy throughput in KBps.

Long dataRead()

Get the dataRead property: Bytes read.

Long dataWritten()

Get the dataWritten property: Bytes written.

Integer familySequenceNumber()

Get the familySequenceNumber property: Media family sequence number.

String fileName()

Get the fileName property: File name.

static SqlBackupFileInfo fromJson(JsonReader jsonReader)

Reads an instance of SqlBackupFileInfo from the JsonReader.

String status()

Get the status property: Status of the file.

JsonWriter toJson(JsonWriter jsonWriter)
Long totalSize()

Get the totalSize property: File size in bytes.

void validate()

Validates the instance.

Methods inherited from java.lang.Object

Constructor Details

SqlBackupFileInfo

public SqlBackupFileInfo()

Creates an instance of SqlBackupFileInfo class.

Method Details

copyDuration

public Integer copyDuration()

Get the copyDuration property: Copy Duration in seconds.

Returns:

the copyDuration value.

copyThroughput

public Double copyThroughput()

Get the copyThroughput property: Copy throughput in KBps.

Returns:

the copyThroughput value.

dataRead

public Long dataRead()

Get the dataRead property: Bytes read.

Returns:

the dataRead value.

dataWritten

public Long dataWritten()

Get the dataWritten property: Bytes written.

Returns:

the dataWritten value.

familySequenceNumber

public Integer familySequenceNumber()

Get the familySequenceNumber property: Media family sequence number.

Returns:

the familySequenceNumber value.

fileName

public String fileName()

Get the fileName property: File name.

Returns:

the fileName value.

fromJson

public static SqlBackupFileInfo fromJson(JsonReader jsonReader)

Reads an instance of SqlBackupFileInfo from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

status

public String status()

Get the status property: Status of the file. (Initial, Uploading, Uploaded, Restoring, Restored or Skipped).

Returns:

the status value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

totalSize

public Long totalSize()

Get the totalSize property: File size in bytes.

Returns:

the totalSize value.

validate

public void validate()

Validates the instance.

Applies to