Class ImportNewDatabaseDefinition
java.lang.Object
com.azure.resourcemanager.sql.models.ImportNewDatabaseDefinition
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ImportNewDatabaseDefinition>
public final class ImportNewDatabaseDefinition
extends Object
implements com.azure.json.JsonSerializable<ImportNewDatabaseDefinition>
Contains the information necessary to perform import operation for new database.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ImportNewDatabaseDefinition class. -
Method Summary
Modifier and TypeMethodDescriptionGet the administratorLogin property: Administrator login name.Get the administratorLoginPassword property: Administrator login password.Get the authenticationType property: Authentication type.Get the databaseName property: Name of the import database.edition()Get the edition property: Edition of the import database.static ImportNewDatabaseDefinitionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ImportNewDatabaseDefinition from the JsonReader.Get the maxSizeBytes property: Max size in bytes for the import database.Get the networkIsolation property: Optional resource information to enable network isolation for request.Get the serviceObjectiveName property: Service level objective name of the import database.Get the storageKey property: Storage key.Get the storageKeyType property: Storage key type.Get the storageUri property: Storage Uri.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) 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.withDatabaseName(String databaseName) Set the databaseName property: Name of the import database.withEdition(String edition) Set the edition property: Edition of the import database.withMaxSizeBytes(String maxSizeBytes) Set the maxSizeBytes property: Max size in bytes for the import database.withNetworkIsolation(NetworkIsolationSettings networkIsolation) Set the networkIsolation property: Optional resource information to enable network isolation for request.withServiceObjectiveName(String serviceObjectiveName) Set the serviceObjectiveName property: Service level objective name of the import database.withStorageKey(String storageKey) Set the storageKey property: Storage key.withStorageKeyType(StorageKeyType storageKeyType) Set the storageKeyType property: Storage key type.withStorageUri(String storageUri) Set the storageUri property: Storage Uri.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
-
ImportNewDatabaseDefinition
public ImportNewDatabaseDefinition()Creates an instance of ImportNewDatabaseDefinition class.
-
-
Method Details
-
databaseName
Get the databaseName property: Name of the import database.- Returns:
- the databaseName value.
-
withDatabaseName
Set the databaseName property: Name of the import database.- Parameters:
databaseName- the databaseName value to set.- Returns:
- the ImportNewDatabaseDefinition object itself.
-
edition
Get the edition property: Edition of the import database.- Returns:
- the edition value.
-
withEdition
Set the edition property: Edition of the import database.- Parameters:
edition- the edition value to set.- Returns:
- the ImportNewDatabaseDefinition object itself.
-
serviceObjectiveName
Get the serviceObjectiveName property: Service level objective name of the import database.- Returns:
- the serviceObjectiveName value.
-
withServiceObjectiveName
Set the serviceObjectiveName property: Service level objective name of the import database.- Parameters:
serviceObjectiveName- the serviceObjectiveName value to set.- Returns:
- the ImportNewDatabaseDefinition object itself.
-
maxSizeBytes
Get the maxSizeBytes property: Max size in bytes for the import database.- Returns:
- the maxSizeBytes value.
-
withMaxSizeBytes
Set the maxSizeBytes property: Max size in bytes for the import database.- Parameters:
maxSizeBytes- the maxSizeBytes value to set.- Returns:
- the ImportNewDatabaseDefinition object itself.
-
storageKeyType
Get the storageKeyType property: Storage key type.- Returns:
- the storageKeyType value.
-
withStorageKeyType
Set the storageKeyType property: Storage key type.- Parameters:
storageKeyType- the storageKeyType value to set.- Returns:
- the ImportNewDatabaseDefinition object itself.
-
storageKey
Get the storageKey property: Storage key.- Returns:
- the storageKey value.
-
withStorageKey
Set the storageKey property: Storage key.- Parameters:
storageKey- the storageKey value to set.- Returns:
- the ImportNewDatabaseDefinition object itself.
-
storageUri
Get the storageUri property: Storage Uri.- Returns:
- the storageUri value.
-
withStorageUri
Set the storageUri property: Storage Uri.- Parameters:
storageUri- the storageUri value to set.- Returns:
- the ImportNewDatabaseDefinition 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 ImportNewDatabaseDefinition object itself.
-
administratorLoginPassword
Get the administratorLoginPassword property: Administrator login password.- Returns:
- the administratorLoginPassword value.
-
withAdministratorLoginPassword
public ImportNewDatabaseDefinition withAdministratorLoginPassword(String administratorLoginPassword) Set the administratorLoginPassword property: Administrator login password.- Parameters:
administratorLoginPassword- the administratorLoginPassword value to set.- Returns:
- the ImportNewDatabaseDefinition object itself.
-
authenticationType
Get the authenticationType property: Authentication type.- Returns:
- the authenticationType value.
-
withAuthenticationType
Set the authenticationType property: Authentication type.- Parameters:
authenticationType- the authenticationType value to set.- Returns:
- the ImportNewDatabaseDefinition 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 ImportNewDatabaseDefinition 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<ImportNewDatabaseDefinition>- Throws:
IOException
-
fromJson
public static ImportNewDatabaseDefinition fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ImportNewDatabaseDefinition from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ImportNewDatabaseDefinition 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 ImportNewDatabaseDefinition.
-