Class ImportRequest
- java.lang.Object
-
- com.azure.resourcemanager.sql.models.ExportRequest
-
- com.azure.resourcemanager.sql.models.ImportRequest
-
public final class ImportRequest extends ExportRequest
Import database parameters.
-
-
Constructor Summary
Constructors Constructor Description ImportRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringdatabaseName()Get the databaseName property: The name of the database to import.DatabaseEditionedition()Get the edition property: The edition for the database being created.StringmaxSizeBytes()Get the maxSizeBytes property: The maximum size for the newly imported database.ServiceObjectiveNameserviceObjectiveName()Get the serviceObjectiveName property: The name of the service objective to assign to the database.voidvalidate()Validates the instance.ImportRequestwithDatabaseName(String databaseName)Set the databaseName property: The name of the database to import.ImportRequestwithEdition(DatabaseEdition edition)Set the edition property: The edition for the database being created.ImportRequestwithMaxSizeBytes(String maxSizeBytes)Set the maxSizeBytes property: The maximum size for the newly imported database.ImportRequestwithServiceObjectiveName(ServiceObjectiveName serviceObjectiveName)Set the serviceObjectiveName property: The name of the service objective to assign to the database.-
Methods inherited from class com.azure.resourcemanager.sql.models.ExportRequest
administratorLogin, administratorLoginPassword, authenticationType, storageKey, storageKeyType, storageUri, withAdministratorLogin, withAdministratorLoginPassword, withAuthenticationType, withStorageKey, withStorageKeyType, withStorageUri
-
-
-
-
Method Detail
-
databaseName
public String databaseName()
Get the databaseName property: The name of the database to import.- Returns:
- the databaseName value.
-
withDatabaseName
public ImportRequest withDatabaseName(String databaseName)
Set the databaseName property: The name of the database to import.- Parameters:
databaseName- the databaseName value to set.- Returns:
- the ImportRequest object itself.
-
edition
public DatabaseEdition edition()
Get the edition property: The edition for the database being created.The list of SKUs may vary by region and support offer. To determine the SKUs (including the SKU name, tier/edition, family, and capacity) that are available to your subscription in an Azure region, use the `Capabilities_ListByLocation` REST API or one of the following commands:
```azurecli az sql db list-editions -l <location> -o table ````
```powershell Get-AzSqlServerServiceObjective -Location <location> ````.
- Returns:
- the edition value.
-
withEdition
public ImportRequest withEdition(DatabaseEdition edition)
Set the edition property: The edition for the database being created.The list of SKUs may vary by region and support offer. To determine the SKUs (including the SKU name, tier/edition, family, and capacity) that are available to your subscription in an Azure region, use the `Capabilities_ListByLocation` REST API or one of the following commands:
```azurecli az sql db list-editions -l <location> -o table ````
```powershell Get-AzSqlServerServiceObjective -Location <location> ````.
- Parameters:
edition- the edition value to set.- Returns:
- the ImportRequest object itself.
-
serviceObjectiveName
public ServiceObjectiveName serviceObjectiveName()
Get the serviceObjectiveName property: The name of the service objective to assign to the database.- Returns:
- the serviceObjectiveName value.
-
withServiceObjectiveName
public ImportRequest withServiceObjectiveName(ServiceObjectiveName serviceObjectiveName)
Set the serviceObjectiveName property: The name of the service objective to assign to the database.- Parameters:
serviceObjectiveName- the serviceObjectiveName value to set.- Returns:
- the ImportRequest object itself.
-
maxSizeBytes
public String maxSizeBytes()
Get the maxSizeBytes property: The maximum size for the newly imported database.- Returns:
- the maxSizeBytes value.
-
withMaxSizeBytes
public ImportRequest withMaxSizeBytes(String maxSizeBytes)
Set the maxSizeBytes property: The maximum size for the newly imported database.- Parameters:
maxSizeBytes- the maxSizeBytes value to set.- Returns:
- the ImportRequest object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validatein classExportRequest- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-