Class ManagedInstanceEncryptionProtectorInner
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.sql.fluent.models.ManagedInstanceEncryptionProtectorInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>
public final class ManagedInstanceEncryptionProtectorInner
extends com.azure.core.management.ProxyResource
The managed instance encryption protector.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ManagedInstanceEncryptionProtectorInner class. -
Method Summary
Modifier and TypeMethodDescriptionGet the autoRotationEnabled property: Key auto rotation opt-in flag.kind()Get the kind property: Kind of encryption protector.Get the serverKeyName property: The name of the managed instance key.Get the serverKeyType property: The encryption protector type like 'ServiceManaged', 'AzureKeyVault'.Get the thumbprint property: Thumbprint of the server key.uri()Get the uri property: The URI of the server key.voidvalidate()Validates the instance.withAutoRotationEnabled(Boolean autoRotationEnabled) Set the autoRotationEnabled property: Key auto rotation opt-in flag.withServerKeyName(String serverKeyName) Set the serverKeyName property: The name of the managed instance key.withServerKeyType(ServerKeyType serverKeyType) Set the serverKeyType property: The encryption protector type like 'ServiceManaged', 'AzureKeyVault'.Methods inherited from class com.azure.core.management.ProxyResource
fromJson, id, name, toJson, type
-
Constructor Details
-
ManagedInstanceEncryptionProtectorInner
public ManagedInstanceEncryptionProtectorInner()Creates an instance of ManagedInstanceEncryptionProtectorInner class.
-
-
Method Details
-
kind
Get the kind property: Kind of encryption protector. This is metadata used for the Azure portal experience.- Returns:
- the kind value.
-
serverKeyName
Get the serverKeyName property: The name of the managed instance key.- Returns:
- the serverKeyName value.
-
withServerKeyName
Set the serverKeyName property: The name of the managed instance key.- Parameters:
serverKeyName- the serverKeyName value to set.- Returns:
- the ManagedInstanceEncryptionProtectorInner object itself.
-
serverKeyType
Get the serverKeyType property: The encryption protector type like 'ServiceManaged', 'AzureKeyVault'.- Returns:
- the serverKeyType value.
-
withServerKeyType
Set the serverKeyType property: The encryption protector type like 'ServiceManaged', 'AzureKeyVault'.- Parameters:
serverKeyType- the serverKeyType value to set.- Returns:
- the ManagedInstanceEncryptionProtectorInner object itself.
-
uri
Get the uri property: The URI of the server key.- Returns:
- the uri value.
-
thumbprint
Get the thumbprint property: Thumbprint of the server key.- Returns:
- the thumbprint value.
-
autoRotationEnabled
Get the autoRotationEnabled property: Key auto rotation opt-in flag. Either true or false.- Returns:
- the autoRotationEnabled value.
-
withAutoRotationEnabled
Set the autoRotationEnabled property: Key auto rotation opt-in flag. Either true or false.- Parameters:
autoRotationEnabled- the autoRotationEnabled value to set.- Returns:
- the ManagedInstanceEncryptionProtectorInner object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-