Share via


ManagedInstanceEncryptionProtectorProperties Class

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

Implements

public final class ManagedInstanceEncryptionProtectorProperties
implements JsonSerializable<ManagedInstanceEncryptionProtectorProperties>

Properties for an encryption protector execution.

Constructor Summary

Constructor Description
ManagedInstanceEncryptionProtectorProperties()

Creates an instance of ManagedInstanceEncryptionProtectorProperties class.

Method Summary

Modifier and Type Method and Description
Boolean autoRotationEnabled()

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

static ManagedInstanceEncryptionProtectorProperties fromJson(JsonReader jsonReader)

Reads an instance of ManagedInstanceEncryptionProtectorProperties from the JsonReader.

String serverKeyName()

Get the serverKeyName property: The name of the managed instance key.

ServerKeyType serverKeyType()

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

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.

ManagedInstanceEncryptionProtectorProperties withAutoRotationEnabled(Boolean autoRotationEnabled)

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

ManagedInstanceEncryptionProtectorProperties withServerKeyName(String serverKeyName)

Set the serverKeyName property: The name of the managed instance key.

ManagedInstanceEncryptionProtectorProperties withServerKeyType(ServerKeyType serverKeyType)

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

Methods inherited from java.lang.Object

Constructor Details

ManagedInstanceEncryptionProtectorProperties

public ManagedInstanceEncryptionProtectorProperties()

Creates an instance of ManagedInstanceEncryptionProtectorProperties 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.

fromJson

public static ManagedInstanceEncryptionProtectorProperties fromJson(JsonReader jsonReader)

Reads an instance of ManagedInstanceEncryptionProtectorProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

serverKeyName

public String serverKeyName()

Get the serverKeyName property: The name of the managed instance key.

Returns:

the serverKeyName value.

serverKeyType

public ServerKeyType serverKeyType()

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

Returns:

the serverKeyType 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.

Returns:

the uri value.

validate

public void validate()

Validates the instance.

withAutoRotationEnabled

public ManagedInstanceEncryptionProtectorProperties withAutoRotationEnabled(Boolean autoRotationEnabled)

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

Parameters:

autoRotationEnabled - the autoRotationEnabled value to set.

Returns:

the ManagedInstanceEncryptionProtectorProperties object itself.

withServerKeyName

public ManagedInstanceEncryptionProtectorProperties withServerKeyName(String serverKeyName)

Set the serverKeyName property: The name of the managed instance key.

Parameters:

serverKeyName - the serverKeyName value to set.

Returns:

the ManagedInstanceEncryptionProtectorProperties object itself.

withServerKeyType

public ManagedInstanceEncryptionProtectorProperties withServerKeyType(ServerKeyType serverKeyType)

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

Parameters:

serverKeyType - the serverKeyType value to set.

Returns:

the ManagedInstanceEncryptionProtectorProperties object itself.

Applies to