ImportRequest Class

public class ImportRequest
extends ExportRequest

Import database parameters.

Constructor Summary

Constructor Description
ImportRequest()

Method Summary

Modifier and Type Method and Description
java.lang.String databaseName()

Get the name of the database to import.

DatabaseEdition edition()

Get the edition for the database being created.

java.lang.String maxSizeBytes()

Get the maximum size for the newly imported database.

ServiceObjectiveName serviceObjectiveName()

Get the name of the service objective to assign to the database.

ImportRequest withDatabaseName(String databaseName)

Set the name of the database to import.

ImportRequest withEdition(DatabaseEdition edition)

Set the edition for the database being created.

ImportRequest withMaxSizeBytes(String maxSizeBytes)

Set the maximum size for the newly imported database.

ImportRequest withServiceObjectiveName(ServiceObjectiveName serviceObjectiveName)

Set the name of the service objective to assign to the database.

Methods inherited from ExportRequest

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

ImportRequest

public ImportRequest()

Method Details

databaseName

public String databaseName()

Get the name of the database to import.

Returns:

the databaseName value

edition

public DatabaseEdition edition()

Get 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 -o table ```` ```powershell Get-AzSqlServerServiceObjective -Location ```` . Possible values include: 'Web', 'Business', 'Basic', 'Standard', 'Premium', 'PremiumRS', 'Free', 'Stretch', 'DataWarehouse', 'System', 'System2', 'GeneralPurpose', 'BusinessCritical', 'Hyperscale'.

Returns:

the edition value

maxSizeBytes

public String maxSizeBytes()

Get the maximum size for the newly imported database.

Returns:

the maxSizeBytes value

serviceObjectiveName

public ServiceObjectiveName serviceObjectiveName()

Get the name of the service objective to assign to the database. Possible values include: 'System', 'System0', 'System1', 'System2', 'System3', 'System4', 'System2L', 'System3L', 'System4L', 'Free', 'Basic', 'S0', 'S1', 'S2', 'S3', 'S4', 'S6', 'S7', 'S9', 'S12', 'P1', 'P2', 'P3', 'P4', 'P6', 'P11', 'P15', 'PRS1', 'PRS2', 'PRS4', 'PRS6', 'DW100', 'DW200', 'DW300', 'DW400', 'DW500', 'DW600', 'DW1000', 'DW1200', 'DW1000c', 'DW1500', 'DW1500c', 'DW2000', 'DW2000c', 'DW3000', 'DW2500c', 'DW3000c', 'DW6000', 'DW5000c', 'DW6000c', 'DW7500c', 'DW10000c', 'DW15000c', 'DW30000c', 'DS100', 'DS200', 'DS300', 'DS400', 'DS500', 'DS600', 'DS1000', 'DS1200', 'DS1500', 'DS2000', 'ElasticPool'.

Returns:

the serviceObjectiveName value

withDatabaseName

public ImportRequest withDatabaseName(String databaseName)

Set the name of the database to import.

Parameters:

databaseName - the databaseName value to set

Returns:

the ImportRequest object itself.

withEdition

public ImportRequest withEdition(DatabaseEdition edition)

Set 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 -o table ```` ```powershell Get-AzSqlServerServiceObjective -Location ```` . Possible values include: 'Web', 'Business', 'Basic', 'Standard', 'Premium', 'PremiumRS', 'Free', 'Stretch', 'DataWarehouse', 'System', 'System2', 'GeneralPurpose', 'BusinessCritical', 'Hyperscale'.

Parameters:

edition - the edition value to set

Returns:

the ImportRequest object itself.

withMaxSizeBytes

public ImportRequest withMaxSizeBytes(String maxSizeBytes)

Set the maximum size for the newly imported database.

Parameters:

maxSizeBytes - the maxSizeBytes value to set

Returns:

the ImportRequest object itself.

withServiceObjectiveName

public ImportRequest withServiceObjectiveName(ServiceObjectiveName serviceObjectiveName)

Set the name of the service objective to assign to the database. Possible values include: 'System', 'System0', 'System1', 'System2', 'System3', 'System4', 'System2L', 'System3L', 'System4L', 'Free', 'Basic', 'S0', 'S1', 'S2', 'S3', 'S4', 'S6', 'S7', 'S9', 'S12', 'P1', 'P2', 'P3', 'P4', 'P6', 'P11', 'P15', 'PRS1', 'PRS2', 'PRS4', 'PRS6', 'DW100', 'DW200', 'DW300', 'DW400', 'DW500', 'DW600', 'DW1000', 'DW1200', 'DW1000c', 'DW1500', 'DW1500c', 'DW2000', 'DW2000c', 'DW3000', 'DW2500c', 'DW3000c', 'DW6000', 'DW5000c', 'DW6000c', 'DW7500c', 'DW10000c', 'DW15000c', 'DW30000c', 'DS100', 'DS200', 'DS300', 'DS400', 'DS500', 'DS600', 'DS1000', 'DS1200', 'DS1500', 'DS2000', 'ElasticPool'.

Parameters:

serviceObjectiveName - the serviceObjectiveName value to set

Returns:

the ImportRequest object itself.

Applies to