DatabaseKey Class

  • java.lang.Object
    • com.azure.resourcemanager.sql.models.DatabaseKey

Implements

public final class DatabaseKey
implements JsonSerializable<DatabaseKey>

Database level key used for encryption at rest.

Constructor Summary

Constructor Description
DatabaseKey()

Creates an instance of DatabaseKey class.

Method Summary

Modifier and Type Method and Description
OffsetDateTime creationDate()

Get the creationDate property: The database key creation date.

static DatabaseKey fromJson(JsonReader jsonReader)

Reads an instance of DatabaseKey from the JsonReader.

String subregion()

Get the subregion property: Subregion of the server key.

String thumbprint()

Get the thumbprint property: Thumbprint of the database key.

JsonWriter toJson(JsonWriter jsonWriter)
DatabaseKeyType type()

Get the type property: The database key type.

void validate()

Validates the instance.

Methods inherited from java.lang.Object

Constructor Details

DatabaseKey

public DatabaseKey()

Creates an instance of DatabaseKey class.

Method Details

creationDate

public OffsetDateTime creationDate()

Get the creationDate property: The database key creation date.

Returns:

the creationDate value.

fromJson

public static DatabaseKey fromJson(JsonReader jsonReader)

Reads an instance of DatabaseKey from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

subregion

public String subregion()

Get the subregion property: Subregion of the server key.

Returns:

the subregion value.

thumbprint

public String thumbprint()

Get the thumbprint property: Thumbprint of the database key.

Returns:

the thumbprint value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public DatabaseKeyType type()

Get the type property: The database key type. Only supported value is 'AzureKeyVault'.

Returns:

the type value.

validate

public void validate()

Validates the instance.

Applies to