Share via


RecoverableDatabaseProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.sql.fluent.models.RecoverableDatabaseProperties

Implements

public final class RecoverableDatabaseProperties
implements JsonSerializable<RecoverableDatabaseProperties>

The recoverable database's properties.

Constructor Summary

Constructor Description
RecoverableDatabaseProperties()

Creates an instance of RecoverableDatabaseProperties class.

Method Summary

Modifier and Type Method and Description
String edition()

Get the edition property: The edition of the database.

String elasticPoolName()

Get the elasticPoolName property: The elastic pool name of the database.

static RecoverableDatabaseProperties fromJson(JsonReader jsonReader)

Reads an instance of RecoverableDatabaseProperties from the JsonReader.

OffsetDateTime lastAvailableBackupDate()

Get the lastAvailableBackupDate property: The last available backup date.

String serviceLevelObjective()

Get the serviceLevelObjective property: The service level objective name of the database.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Methods inherited from java.lang.Object

Constructor Details

RecoverableDatabaseProperties

public RecoverableDatabaseProperties()

Creates an instance of RecoverableDatabaseProperties class.

Method Details

edition

public String edition()

Get the edition property: The edition of the database.

Returns:

the edition value.

elasticPoolName

public String elasticPoolName()

Get the elasticPoolName property: The elastic pool name of the database.

Returns:

the elasticPoolName value.

fromJson

public static RecoverableDatabaseProperties fromJson(JsonReader jsonReader)

Reads an instance of RecoverableDatabaseProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

lastAvailableBackupDate

public OffsetDateTime lastAvailableBackupDate()

Get the lastAvailableBackupDate property: The last available backup date.

Returns:

the lastAvailableBackupDate value.

serviceLevelObjective

public String serviceLevelObjective()

Get the serviceLevelObjective property: The service level objective name of the database.

Returns:

the serviceLevelObjective value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Applies to