Class ServerKeyProperties

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

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

    • ServerKeyProperties

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

    • subregion

      public String subregion()
      Get the subregion property: Subregion of the server key.
      Returns:
      the subregion value.
    • serverKeyType

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

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

      public String uri()
      Get the uri property: The URI of the server key. If the ServerKeyType is AzureKeyVault, then the URI is required. The AKV URI is required to be in this format: 'https://YourVaultName.vault.azure.net/keys/YourKeyName/YourKeyVersion'.
      Returns:
      the uri value.
    • withUri

      public ServerKeyProperties withUri(String uri)
      Set the uri property: The URI of the server key. If the ServerKeyType is AzureKeyVault, then the URI is required. The AKV URI is required to be in this format: 'https://YourVaultName.vault.azure.net/keys/YourKeyName/YourKeyVersion'.
      Parameters:
      uri - the uri value to set.
      Returns:
      the ServerKeyProperties object itself.
    • thumbprint

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

      public OffsetDateTime creationDate()
      Get the creationDate property: The server 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.