Class ServerPropertiesForRestore

java.lang.Object
com.azure.resourcemanager.mariadb.models.ServerPropertiesForCreate
com.azure.resourcemanager.mariadb.models.ServerPropertiesForRestore

public final class ServerPropertiesForRestore extends ServerPropertiesForCreate
The properties used to create a new server by restoring from a backup.
  • Constructor Details

    • ServerPropertiesForRestore

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

    • sourceServerId

      public String sourceServerId()
      Get the sourceServerId property: The source server id to restore from.
      Returns:
      the sourceServerId value.
    • withSourceServerId

      public ServerPropertiesForRestore withSourceServerId(String sourceServerId)
      Set the sourceServerId property: The source server id to restore from.
      Parameters:
      sourceServerId - the sourceServerId value to set.
      Returns:
      the ServerPropertiesForRestore object itself.
    • restorePointInTime

      public OffsetDateTime restorePointInTime()
      Get the restorePointInTime property: Restore point creation time (ISO8601 format), specifying the time to restore from.
      Returns:
      the restorePointInTime value.
    • withRestorePointInTime

      public ServerPropertiesForRestore withRestorePointInTime(OffsetDateTime restorePointInTime)
      Set the restorePointInTime property: Restore point creation time (ISO8601 format), specifying the time to restore from.
      Parameters:
      restorePointInTime - the restorePointInTime value to set.
      Returns:
      the ServerPropertiesForRestore object itself.
    • withVersion

      public ServerPropertiesForRestore withVersion(ServerVersion version)
      Set the version property: Server version.
      Overrides:
      withVersion in class ServerPropertiesForCreate
      Parameters:
      version - the version value to set.
      Returns:
      the ServerPropertiesForCreate object itself.
    • withSslEnforcement

      public ServerPropertiesForRestore withSslEnforcement(SslEnforcementEnum sslEnforcement)
      Set the sslEnforcement property: Enable ssl enforcement or not when connect to server.
      Overrides:
      withSslEnforcement in class ServerPropertiesForCreate
      Parameters:
      sslEnforcement - the sslEnforcement value to set.
      Returns:
      the ServerPropertiesForCreate object itself.
    • withMinimalTlsVersion

      public ServerPropertiesForRestore withMinimalTlsVersion(MinimalTlsVersionEnum minimalTlsVersion)
      Set the minimalTlsVersion property: Enforce a minimal Tls version for the server.
      Overrides:
      withMinimalTlsVersion in class ServerPropertiesForCreate
      Parameters:
      minimalTlsVersion - the minimalTlsVersion value to set.
      Returns:
      the ServerPropertiesForCreate object itself.
    • withPublicNetworkAccess

      public ServerPropertiesForRestore withPublicNetworkAccess(PublicNetworkAccessEnum publicNetworkAccess)
      Set the publicNetworkAccess property: Whether or not public network access is allowed for this server. Value is optional but if passed in, must be 'Enabled' or 'Disabled'.
      Overrides:
      withPublicNetworkAccess in class ServerPropertiesForCreate
      Parameters:
      publicNetworkAccess - the publicNetworkAccess value to set.
      Returns:
      the ServerPropertiesForCreate object itself.
    • withStorageProfile

      public ServerPropertiesForRestore withStorageProfile(StorageProfile storageProfile)
      Set the storageProfile property: Storage profile of a server.
      Overrides:
      withStorageProfile in class ServerPropertiesForCreate
      Parameters:
      storageProfile - the storageProfile value to set.
      Returns:
      the ServerPropertiesForCreate object itself.
    • validate

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