Partager via


BackupPolicyMigrationState Class

  • java.lang.Object
    • com.azure.resourcemanager.cosmos.models.BackupPolicyMigrationState

Implements

public final class BackupPolicyMigrationState
implements JsonSerializable<BackupPolicyMigrationState>

The object representing the state of the migration between the backup policies.

Constructor Summary

Constructor Description
BackupPolicyMigrationState()

Creates an instance of BackupPolicyMigrationState class.

Method Summary

Modifier and Type Method and Description
static BackupPolicyMigrationState fromJson(JsonReader jsonReader)

Reads an instance of BackupPolicyMigrationState from the JsonReader.

OffsetDateTime startTime()

Get the startTime property: Time at which the backup policy migration started (ISO-8601 format).

BackupPolicyMigrationStatus status()

Get the status property: Describes the status of migration between backup policy types.

BackupPolicyType targetType()

Get the targetType property: Describes the target backup policy type of the backup policy migration.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

BackupPolicyMigrationState withStartTime(OffsetDateTime startTime)

Set the startTime property: Time at which the backup policy migration started (ISO-8601 format).

BackupPolicyMigrationState withStatus(BackupPolicyMigrationStatus status)

Set the status property: Describes the status of migration between backup policy types.

BackupPolicyMigrationState withTargetType(BackupPolicyType targetType)

Set the targetType property: Describes the target backup policy type of the backup policy migration.

Methods inherited from java.lang.Object

Constructor Details

BackupPolicyMigrationState

public BackupPolicyMigrationState()

Creates an instance of BackupPolicyMigrationState class.

Method Details

fromJson

public static BackupPolicyMigrationState fromJson(JsonReader jsonReader)

Reads an instance of BackupPolicyMigrationState from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

startTime

public OffsetDateTime startTime()

Get the startTime property: Time at which the backup policy migration started (ISO-8601 format).

Returns:

the startTime value.

status

public BackupPolicyMigrationStatus status()

Get the status property: Describes the status of migration between backup policy types.

Returns:

the status value.

targetType

public BackupPolicyType targetType()

Get the targetType property: Describes the target backup policy type of the backup policy migration.

Returns:

the targetType value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withStartTime

public BackupPolicyMigrationState withStartTime(OffsetDateTime startTime)

Set the startTime property: Time at which the backup policy migration started (ISO-8601 format).

Parameters:

startTime - the startTime value to set.

Returns:

the BackupPolicyMigrationState object itself.

withStatus

public BackupPolicyMigrationState withStatus(BackupPolicyMigrationStatus status)

Set the status property: Describes the status of migration between backup policy types.

Parameters:

status - the status value to set.

Returns:

the BackupPolicyMigrationState object itself.

withTargetType

public BackupPolicyMigrationState withTargetType(BackupPolicyType targetType)

Set the targetType property: Describes the target backup policy type of the backup policy migration.

Parameters:

targetType - the targetType value to set.

Returns:

the BackupPolicyMigrationState object itself.

Applies to