Class DatabaseExtensions
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.sql.models.DatabaseExtensions
- All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>
public final class DatabaseExtensions
extends com.azure.core.management.ProxyResource
An Import, Export, or PolybaseImport resource.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the administratorLogin property: Administrator login name.Get the administratorLoginPassword property: Administrator login password.Get the authenticationType property: Authentication type: SQL authentication or AD password.Get the databaseEdition property: Database edition for the newly created database in the case of an import operation.static DatabaseExtensionsfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of DatabaseExtensions from the JsonReader.id()Get the id property: Fully qualified resource Id for the resource.Get the maxSizeBytes property: Database max size in bytes for the newly created database in the case of an import operation.name()Get the name property: The name of the resource.Get the networkIsolation property: Optional resource information to enable network isolation for request.Get the operationMode property: Operation mode of the operation: Import, Export, or PolybaseImport.Get the serviceObjectiveName property: Database service level objective for the newly created database in the case of an import operation.Get the storageKey property: Storage key for the storage account.Get the storageKeyType property: Storage key type: StorageAccessKey or SharedAccessKey.Get the storageUri property: Storage Uri for the storage account.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: The type of the resource.voidvalidate()Validates the instance.withAdministratorLogin(String administratorLogin) Set the administratorLogin property: Administrator login name.withAdministratorLoginPassword(String administratorLoginPassword) Set the administratorLoginPassword property: Administrator login password.withAuthenticationType(String authenticationType) Set the authenticationType property: Authentication type: SQL authentication or AD password.withDatabaseEdition(String databaseEdition) Set the databaseEdition property: Database edition for the newly created database in the case of an import operation.withMaxSizeBytes(String maxSizeBytes) Set the maxSizeBytes property: Database max size in bytes for the newly created database in the case of an import operation.withNetworkIsolation(NetworkIsolationSettings networkIsolation) Set the networkIsolation property: Optional resource information to enable network isolation for request.withOperationMode(OperationMode operationMode) Set the operationMode property: Operation mode of the operation: Import, Export, or PolybaseImport.withServiceObjectiveName(String serviceObjectiveName) Set the serviceObjectiveName property: Database service level objective for the newly created database in the case of an import operation.withStorageKey(String storageKey) Set the storageKey property: Storage key for the storage account.withStorageKeyType(StorageKeyType storageKeyType) Set the storageKeyType property: Storage key type: StorageAccessKey or SharedAccessKey.withStorageUri(String storageUri) Set the storageUri property: Storage Uri for the storage account.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
DatabaseExtensions
public DatabaseExtensions()Creates an instance of DatabaseExtensions class.
-
-
Method Details
-
type
Get the type property: The type of the resource.- Overrides:
typein classcom.azure.core.management.ProxyResource- Returns:
- the type value.
-
name
Get the name property: The name of the resource.- Overrides:
namein classcom.azure.core.management.ProxyResource- Returns:
- the name value.
-
id
Get the id property: Fully qualified resource Id for the resource.- Overrides:
idin classcom.azure.core.management.ProxyResource- Returns:
- the id value.
-
operationMode
Get the operationMode property: Operation mode of the operation: Import, Export, or PolybaseImport.- Returns:
- the operationMode value.
-
withOperationMode
Set the operationMode property: Operation mode of the operation: Import, Export, or PolybaseImport.- Parameters:
operationMode- the operationMode value to set.- Returns:
- the DatabaseExtensions object itself.
-
storageKeyType
Get the storageKeyType property: Storage key type: StorageAccessKey or SharedAccessKey.- Returns:
- the storageKeyType value.
-
withStorageKeyType
Set the storageKeyType property: Storage key type: StorageAccessKey or SharedAccessKey.- Parameters:
storageKeyType- the storageKeyType value to set.- Returns:
- the DatabaseExtensions object itself.
-
storageKey
Get the storageKey property: Storage key for the storage account.- Returns:
- the storageKey value.
-
withStorageKey
Set the storageKey property: Storage key for the storage account.- Parameters:
storageKey- the storageKey value to set.- Returns:
- the DatabaseExtensions object itself.
-
storageUri
Get the storageUri property: Storage Uri for the storage account.- Returns:
- the storageUri value.
-
withStorageUri
Set the storageUri property: Storage Uri for the storage account.- Parameters:
storageUri- the storageUri value to set.- Returns:
- the DatabaseExtensions object itself.
-
administratorLogin
Get the administratorLogin property: Administrator login name.- Returns:
- the administratorLogin value.
-
withAdministratorLogin
Set the administratorLogin property: Administrator login name.- Parameters:
administratorLogin- the administratorLogin value to set.- Returns:
- the DatabaseExtensions object itself.
-
administratorLoginPassword
Get the administratorLoginPassword property: Administrator login password.- Returns:
- the administratorLoginPassword value.
-
withAdministratorLoginPassword
Set the administratorLoginPassword property: Administrator login password.- Parameters:
administratorLoginPassword- the administratorLoginPassword value to set.- Returns:
- the DatabaseExtensions object itself.
-
authenticationType
Get the authenticationType property: Authentication type: SQL authentication or AD password.- Returns:
- the authenticationType value.
-
withAuthenticationType
Set the authenticationType property: Authentication type: SQL authentication or AD password.- Parameters:
authenticationType- the authenticationType value to set.- Returns:
- the DatabaseExtensions object itself.
-
databaseEdition
Get the databaseEdition property: Database edition for the newly created database in the case of an import operation.- Returns:
- the databaseEdition value.
-
withDatabaseEdition
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 DatabaseExtensions object itself.
-
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
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 DatabaseExtensions object itself.
-
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
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 DatabaseExtensions object itself.
-
networkIsolation
Get the networkIsolation property: Optional resource information to enable network isolation for request.- Returns:
- the networkIsolation value.
-
withNetworkIsolation
Set the networkIsolation property: Optional resource information to enable network isolation for request.- Parameters:
networkIsolation- the networkIsolation value to set.- Returns:
- the DatabaseExtensions object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>- Overrides:
toJsonin classcom.azure.core.management.ProxyResource- Throws:
IOException
-
fromJson
Reads an instance of DatabaseExtensions from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of DatabaseExtensions 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 DatabaseExtensions.
-