Del via


ManagedInstanceKeyProperties Class

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

Implements

public final class ManagedInstanceKeyProperties
implements JsonSerializable<ManagedInstanceKeyProperties>

Properties for a key execution.

Constructor Summary

Constructor Description
ManagedInstanceKeyProperties()

Creates an instance of ManagedInstanceKeyProperties 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 key creation date.

static ManagedInstanceKeyProperties fromJson(JsonReader jsonReader)

Reads an instance of ManagedInstanceKeyProperties from the JsonReader.

ServerKeyType serverKeyType()

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

String thumbprint()

Get the thumbprint property: Thumbprint of the key.

JsonWriter toJson(JsonWriter jsonWriter)
String uri()

Get the uri property: The URI of the key.

void validate()

Validates the instance.

ManagedInstanceKeyProperties withServerKeyType(ServerKeyType serverKeyType)

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

ManagedInstanceKeyProperties withUri(String uri)

Set the uri property: The URI of the key.

Methods inherited from java.lang.Object

Constructor Details

ManagedInstanceKeyProperties

public ManagedInstanceKeyProperties()

Creates an instance of ManagedInstanceKeyProperties 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 key creation date.

Returns:

the creationDate value.

fromJson

public static ManagedInstanceKeyProperties fromJson(JsonReader jsonReader)

Reads an instance of ManagedInstanceKeyProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ManagedInstanceKeyProperties 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 key type like 'ServiceManaged', 'AzureKeyVault'.

Returns:

the serverKeyType value.

thumbprint

public String thumbprint()

Get the thumbprint property: Thumbprint of the 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 key. If the ServerKeyType is AzureKeyVault, then the URI is required.

Returns:

the uri value.

validate

public void validate()

Validates the instance.

withServerKeyType

public ManagedInstanceKeyProperties withServerKeyType(ServerKeyType serverKeyType)

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

Parameters:

serverKeyType - the serverKeyType value to set.

Returns:

the ManagedInstanceKeyProperties object itself.

withUri

public ManagedInstanceKeyProperties withUri(String uri)

Set the uri property: The URI of the key. If the ServerKeyType is AzureKeyVault, then the URI is required.

Parameters:

uri - the uri value to set.

Returns:

the ManagedInstanceKeyProperties object itself.

Applies to