Class ManagedInstanceEncryptionProtectorProperties
java.lang.Object
com.azure.resourcemanager.sql.fluent.models.ManagedInstanceEncryptionProtectorProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ManagedInstanceEncryptionProtectorProperties>
public final class ManagedInstanceEncryptionProtectorProperties
extends Object
implements com.azure.json.JsonSerializable<ManagedInstanceEncryptionProtectorProperties>
Properties for an encryption protector execution.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ManagedInstanceEncryptionProtectorProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the autoRotationEnabled property: Key auto rotation opt-in flag.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ManagedInstanceEncryptionProtectorProperties from the JsonReader.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.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) 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 Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ManagedInstanceEncryptionProtectorProperties
public ManagedInstanceEncryptionProtectorProperties()Creates an instance of ManagedInstanceEncryptionProtectorProperties class.
-
-
Method Details
-
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 ManagedInstanceEncryptionProtectorProperties 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 ManagedInstanceEncryptionProtectorProperties object itself.
-
uri
-
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
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.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ManagedInstanceEncryptionProtectorProperties>- Throws:
IOException
-
fromJson
public static ManagedInstanceEncryptionProtectorProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException 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:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the ManagedInstanceEncryptionProtectorProperties.
-