Share via


ServerKeyProperties Class

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

Implements

public final class ServerKeyProperties
implements JsonSerializable<ServerKeyProperties>

Properties for a server key execution.

Constructor Summary

Constructor Description
ServerKeyProperties()

Creates an instance of ServerKeyProperties class.

Method Summary

Modifier and Type Method and Description
Boolean autoRotationEnabled()

Get the autoRotationEnabled property: Key auto rotation opt-in flag.

OffsetDateTime creationDate()

Get the creationDate property: The server key creation date.

static ServerKeyProperties fromJson(JsonReader jsonReader)

Reads an instance of ServerKeyProperties from the JsonReader.

ServerKeyType serverKeyType()

Get the serverKeyType property: The server key type like 'ServiceManaged', 'AzureKeyVault'.

String subregion()

Get the subregion property: Subregion of the server key.

String thumbprint()

Get the thumbprint property: Thumbprint of the server key.

JsonWriter toJson(JsonWriter jsonWriter)
String uri()

Get the uri property: The URI of the server key.

void validate()

Validates the instance.

ServerKeyProperties withServerKeyType(ServerKeyType serverKeyType)

Set the serverKeyType property: The server key type like 'ServiceManaged', 'AzureKeyVault'.

ServerKeyProperties withUri(String uri)

Set the uri property: The URI of the server key.

Methods inherited from java.lang.Object

Constructor Details

ServerKeyProperties

public ServerKeyProperties()

Creates an instance of ServerKeyProperties class.

Method Details

autoRotationEnabled

public Boolean autoRotationEnabled()

Get the autoRotationEnabled property: Key auto rotation opt-in flag. Either true or false.

Returns:

the autoRotationEnabled value.

creationDate

public OffsetDateTime creationDate()

Get the creationDate property: The server key creation date.

Returns:

the creationDate value.

fromJson

public static ServerKeyProperties fromJson(JsonReader jsonReader)

Reads an instance of ServerKeyProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

serverKeyType

public ServerKeyType serverKeyType()

Get the serverKeyType property: The server key type like 'ServiceManaged', 'AzureKeyVault'.

Returns:

the serverKeyType value.

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 server key.

Returns:

the thumbprint value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

uri

public String uri()

Get the uri property: The URI of the server key. If the ServerKeyType is AzureKeyVault, then the URI is required. The AKV URI is required to be in this format: 'https://YourVaultName.vault.azure.net/keys/YourKeyName/YourKeyVersion'.

Returns:

the uri value.

validate

public void validate()

Validates the instance.

withServerKeyType

public ServerKeyProperties withServerKeyType(ServerKeyType serverKeyType)

Set the serverKeyType property: The server key type like 'ServiceManaged', 'AzureKeyVault'.

Parameters:

serverKeyType - the serverKeyType value to set.

Returns:

the ServerKeyProperties object itself.

withUri

public ServerKeyProperties withUri(String uri)

Set the uri property: The URI of the server key. If the ServerKeyType is AzureKeyVault, then the URI is required. The AKV URI is required to be in this format: 'https://YourVaultName.vault.azure.net/keys/YourKeyName/YourKeyVersion'.

Parameters:

uri - the uri value to set.

Returns:

the ServerKeyProperties object itself.

Applies to