Partager via


ManagedInstanceLongTermRetentionBackupInner Class

public final class ManagedInstanceLongTermRetentionBackupInner
extends ProxyResource

A long term retention backup for a managed database.

Constructor Summary

Constructor Description
ManagedInstanceLongTermRetentionBackupInner()

Creates an instance of ManagedInstanceLongTermRetentionBackupInner class.

Method Summary

Modifier and Type Method and Description
OffsetDateTime backupExpirationTime()

Get the backupExpirationTime property: The time the long term retention backup will expire.

BackupStorageRedundancy backupStorageRedundancy()

Get the backupStorageRedundancy property: The storage redundancy type of the backup.

OffsetDateTime backupTime()

Get the backupTime property: The time the backup was taken.

OffsetDateTime databaseDeletionTime()

Get the databaseDeletionTime property: The delete time of the database.

String databaseName()

Get the databaseName property: The name of the database the backup belong to.

static ManagedInstanceLongTermRetentionBackupInner fromJson(JsonReader jsonReader)

Reads an instance of ManagedInstanceLongTermRetentionBackupInner from the JsonReader.

String id()

Get the id property: Fully qualified resource Id for the resource.

OffsetDateTime managedInstanceCreateTime()

Get the managedInstanceCreateTime property: The create time of the instance.

String managedInstanceName()

Get the managedInstanceName property: The managed instance that the backup database belongs to.

String name()

Get the name property: The name of the resource.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

ManagedInstanceLongTermRetentionBackupInner

public ManagedInstanceLongTermRetentionBackupInner()

Creates an instance of ManagedInstanceLongTermRetentionBackupInner class.

Method Details

backupExpirationTime

public OffsetDateTime backupExpirationTime()

Get the backupExpirationTime property: The time the long term retention backup will expire.

Returns:

the backupExpirationTime value.

backupStorageRedundancy

public BackupStorageRedundancy backupStorageRedundancy()

Get the backupStorageRedundancy property: The storage redundancy type of the backup.

Returns:

the backupStorageRedundancy value.

backupTime

public OffsetDateTime backupTime()

Get the backupTime property: The time the backup was taken.

Returns:

the backupTime value.

databaseDeletionTime

public OffsetDateTime databaseDeletionTime()

Get the databaseDeletionTime property: The delete time of the database.

Returns:

the databaseDeletionTime value.

databaseName

public String databaseName()

Get the databaseName property: The name of the database the backup belong to.

Returns:

the databaseName value.

fromJson

public static ManagedInstanceLongTermRetentionBackupInner fromJson(JsonReader jsonReader)

Reads an instance of ManagedInstanceLongTermRetentionBackupInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ManagedInstanceLongTermRetentionBackupInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

ManagedInstanceLongTermRetentionBackupInner.id()

Returns:

the id value.

managedInstanceCreateTime

public OffsetDateTime managedInstanceCreateTime()

Get the managedInstanceCreateTime property: The create time of the instance.

Returns:

the managedInstanceCreateTime value.

managedInstanceName

public String managedInstanceName()

Get the managedInstanceName property: The managed instance that the backup database belongs to.

Returns:

the managedInstanceName value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

ManagedInstanceLongTermRetentionBackupInner.name()

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

ManagedInstanceLongTermRetentionBackupInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

ManagedInstanceLongTermRetentionBackupInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

Applies to