Class EncryptionProtectorProperties

java.lang.Object
com.azure.resourcemanager.sql.fluent.models.EncryptionProtectorProperties
All Implemented Interfaces:
com.azure.json.JsonSerializable<EncryptionProtectorProperties>

public final class EncryptionProtectorProperties extends Object implements com.azure.json.JsonSerializable<EncryptionProtectorProperties>
Properties for an encryption protector execution.
  • Constructor Details

    • EncryptionProtectorProperties

      public EncryptionProtectorProperties()
      Creates an instance of EncryptionProtectorProperties class.
  • Method Details

    • subregion

      public String subregion()
      Get the subregion property: Subregion of the encryption protector.
      Returns:
      the subregion value.
    • serverKeyName

      public String serverKeyName()
      Get the serverKeyName property: The name of the server key.
      Returns:
      the serverKeyName value.
    • withServerKeyName

      public EncryptionProtectorProperties withServerKeyName(String serverKeyName)
      Set the serverKeyName property: The name of the server key.
      Parameters:
      serverKeyName - the serverKeyName value to set.
      Returns:
      the EncryptionProtectorProperties object itself.
    • serverKeyType

      public ServerKeyType serverKeyType()
      Get the serverKeyType property: The encryption protector type like 'ServiceManaged', 'AzureKeyVault'.
      Returns:
      the serverKeyType value.
    • withServerKeyType

      public EncryptionProtectorProperties withServerKeyType(ServerKeyType serverKeyType)
      Set the serverKeyType property: The encryption protector type like 'ServiceManaged', 'AzureKeyVault'.
      Parameters:
      serverKeyType - the serverKeyType value to set.
      Returns:
      the EncryptionProtectorProperties object itself.
    • uri

      public String uri()
      Get the uri property: The URI of the server key.
      Returns:
      the uri value.
    • thumbprint

      public String thumbprint()
      Get the thumbprint property: Thumbprint of the server key.
      Returns:
      the thumbprint value.
    • autoRotationEnabled

      public Boolean autoRotationEnabled()
      Get the autoRotationEnabled property: Key auto rotation opt-in flag. Either true or false.
      Returns:
      the autoRotationEnabled value.
    • withAutoRotationEnabled

      public EncryptionProtectorProperties 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 EncryptionProtectorProperties object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<EncryptionProtectorProperties>
      Throws:
      IOException
    • fromJson

      public static EncryptionProtectorProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of EncryptionProtectorProperties from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of EncryptionProtectorProperties 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 EncryptionProtectorProperties.