Class DatabaseExtensionsProperties

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

public final class DatabaseExtensionsProperties extends Object implements com.azure.json.JsonSerializable<DatabaseExtensionsProperties>
Contains the database information after a successful Import, Export, or PolybaseImport.
  • Constructor Details

    • DatabaseExtensionsProperties

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

    • operationMode

      public OperationMode operationMode()
      Get the operationMode property: Operation mode of the operation: Import, Export, or PolybaseImport.
      Returns:
      the operationMode value.
    • withOperationMode

      public DatabaseExtensionsProperties withOperationMode(OperationMode operationMode)
      Set the operationMode property: Operation mode of the operation: Import, Export, or PolybaseImport.
      Parameters:
      operationMode - the operationMode value to set.
      Returns:
      the DatabaseExtensionsProperties object itself.
    • storageKeyType

      public StorageKeyType storageKeyType()
      Get the storageKeyType property: Storage key type: StorageAccessKey or SharedAccessKey.
      Returns:
      the storageKeyType value.
    • withStorageKeyType

      public DatabaseExtensionsProperties withStorageKeyType(StorageKeyType storageKeyType)
      Set the storageKeyType property: Storage key type: StorageAccessKey or SharedAccessKey.
      Parameters:
      storageKeyType - the storageKeyType value to set.
      Returns:
      the DatabaseExtensionsProperties object itself.
    • storageKey

      public String storageKey()
      Get the storageKey property: Storage key for the storage account.
      Returns:
      the storageKey value.
    • withStorageKey

      public DatabaseExtensionsProperties withStorageKey(String storageKey)
      Set the storageKey property: Storage key for the storage account.
      Parameters:
      storageKey - the storageKey value to set.
      Returns:
      the DatabaseExtensionsProperties object itself.
    • storageUri

      public String storageUri()
      Get the storageUri property: Storage Uri for the storage account.
      Returns:
      the storageUri value.
    • withStorageUri

      public DatabaseExtensionsProperties withStorageUri(String storageUri)
      Set the storageUri property: Storage Uri for the storage account.
      Parameters:
      storageUri - the storageUri value to set.
      Returns:
      the DatabaseExtensionsProperties object itself.
    • administratorLogin

      public String administratorLogin()
      Get the administratorLogin property: Administrator login name.
      Returns:
      the administratorLogin value.
    • withAdministratorLogin

      public DatabaseExtensionsProperties withAdministratorLogin(String administratorLogin)
      Set the administratorLogin property: Administrator login name.
      Parameters:
      administratorLogin - the administratorLogin value to set.
      Returns:
      the DatabaseExtensionsProperties object itself.
    • administratorLoginPassword

      public String administratorLoginPassword()
      Get the administratorLoginPassword property: Administrator login password.
      Returns:
      the administratorLoginPassword value.
    • withAdministratorLoginPassword

      public DatabaseExtensionsProperties withAdministratorLoginPassword(String administratorLoginPassword)
      Set the administratorLoginPassword property: Administrator login password.
      Parameters:
      administratorLoginPassword - the administratorLoginPassword value to set.
      Returns:
      the DatabaseExtensionsProperties object itself.
    • authenticationType

      public String authenticationType()
      Get the authenticationType property: Authentication type: SQL authentication or AD password.
      Returns:
      the authenticationType value.
    • withAuthenticationType

      public DatabaseExtensionsProperties withAuthenticationType(String authenticationType)
      Set the authenticationType property: Authentication type: SQL authentication or AD password.
      Parameters:
      authenticationType - the authenticationType value to set.
      Returns:
      the DatabaseExtensionsProperties object itself.
    • databaseEdition

      public String databaseEdition()
      Get the databaseEdition property: Database edition for the newly created database in the case of an import operation.
      Returns:
      the databaseEdition value.
    • withDatabaseEdition

      public DatabaseExtensionsProperties withDatabaseEdition(String databaseEdition)
      Set the databaseEdition property: Database edition for the newly created database in the case of an import operation.
      Parameters:
      databaseEdition - the databaseEdition value to set.
      Returns:
      the DatabaseExtensionsProperties object itself.
    • serviceObjectiveName

      public String serviceObjectiveName()
      Get the serviceObjectiveName property: Database service level objective for the newly created database in the case of an import operation.
      Returns:
      the serviceObjectiveName value.
    • withServiceObjectiveName

      public DatabaseExtensionsProperties withServiceObjectiveName(String serviceObjectiveName)
      Set the serviceObjectiveName property: Database service level objective for the newly created database in the case of an import operation.
      Parameters:
      serviceObjectiveName - the serviceObjectiveName value to set.
      Returns:
      the DatabaseExtensionsProperties object itself.
    • maxSizeBytes

      public String maxSizeBytes()
      Get the maxSizeBytes property: Database max size in bytes for the newly created database in the case of an import operation.
      Returns:
      the maxSizeBytes value.
    • withMaxSizeBytes

      public DatabaseExtensionsProperties withMaxSizeBytes(String maxSizeBytes)
      Set the maxSizeBytes property: Database max size in bytes for the newly created database in the case of an import operation.
      Parameters:
      maxSizeBytes - the maxSizeBytes value to set.
      Returns:
      the DatabaseExtensionsProperties object itself.
    • networkIsolation

      public NetworkIsolationSettings networkIsolation()
      Get the networkIsolation property: Optional resource information to enable network isolation for request.
      Returns:
      the networkIsolation value.
    • withNetworkIsolation

      public DatabaseExtensionsProperties withNetworkIsolation(NetworkIsolationSettings networkIsolation)
      Set the networkIsolation property: Optional resource information to enable network isolation for request.
      Parameters:
      networkIsolation - the networkIsolation value to set.
      Returns:
      the DatabaseExtensionsProperties 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<DatabaseExtensionsProperties>
      Throws:
      IOException
    • fromJson

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