Class ManagedInstanceKeyProperties

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

public final class ManagedInstanceKeyProperties extends Object
Properties for a key execution.
  • Constructor Details

    • ManagedInstanceKeyProperties

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

    • serverKeyType

      public ServerKeyType serverKeyType()
      Get the serverKeyType property: The key type like 'ServiceManaged', 'AzureKeyVault'.
      Returns:
      the serverKeyType value.
    • 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.
    • 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.
    • 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.
    • thumbprint

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

      public OffsetDateTime creationDate()
      Get the creationDate property: The key creation date.
      Returns:
      the creationDate value.
    • autoRotationEnabled

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

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