Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the MIT License. See License.txt in the project root for
license information.
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/
package com.microsoft.azure.management.sql;
import com.microsoft.azure.management.apigeneration.Beta;
import com.microsoft.azure.management.apigeneration.Fluent;
import com.microsoft.azure.management.resources.fluentcore.arm.models.HasParent;
import com.microsoft.azure.management.resources.fluentcore.model.Creatable;
import com.microsoft.azure.management.resources.fluentcore.model.Executable;
import com.microsoft.azure.management.resources.fluentcore.model.HasInner;
import com.microsoft.azure.management.storage.StorageAccount;
An immutable client-side representation of an Azure SQL Database export operation request.
/**
* An immutable client-side representation of an Azure SQL Database export operation request.
*/
@Fluent
@Beta(Beta.SinceVersion.V1_7_0)
public interface SqlDatabaseExportRequest extends
HasInner<ExportRequest>,
Executable<SqlDatabaseImportExportResponse>,
HasParent<SqlDatabase> {
The entirety of database export operation definition.
/**
* The entirety of database export operation definition.
*/
interface SqlDatabaseExportRequestDefinition extends
SqlDatabaseExportRequest.DefinitionStages.ExportTo,
SqlDatabaseExportRequest.DefinitionStages.WithStorageTypeAndKey,
SqlDatabaseExportRequest.DefinitionStages.WithAuthenticationTypeAndLoginPassword,
DefinitionStages.WithExecute {
}
Grouping of database export definition stages.
/**
* Grouping of database export definition stages.
*/
interface DefinitionStages {
Sets the storage URI to use.
/**
* Sets the storage URI to use.
*/
interface ExportTo {
Params: - storageUri – the storage URI to use
Returns: next definition stage
/**
* @param storageUri the storage URI to use
* @return next definition stage
*/
SqlDatabaseExportRequest.DefinitionStages.WithStorageTypeAndKey exportTo(String storageUri);
Params: - storageAccount – an existing storage account to be used
- containerName – the container name within the storage account to use
- fileName – the exported database file name
Returns: next definition stage
/**
* @param storageAccount an existing storage account to be used
* @param containerName the container name within the storage account to use
* @param fileName the exported database file name
* @return next definition stage
*/
SqlDatabaseExportRequest.DefinitionStages.WithAuthenticationTypeAndLoginPassword exportTo(StorageAccount storageAccount, String containerName, String fileName);
Params: - storageAccountCreatable – a storage account to be created as part of this execution flow
- containerName – the container name within the storage account to use
- fileName – the exported database file name
Returns: next definition stage
/**
* @param storageAccountCreatable a storage account to be created as part of this execution flow
* @param containerName the container name within the storage account to use
* @param fileName the exported database file name
* @return next definition stage
*/
SqlDatabaseExportRequest.DefinitionStages.WithAuthenticationTypeAndLoginPassword exportTo(Creatable<StorageAccount> storageAccountCreatable, String containerName, String fileName);
}
Sets the storage key type and value to use.
/**
* Sets the storage key type and value to use.
*/
interface WithStorageTypeAndKey {
Params: - storageAccessKey – the storage access key to use
Returns: next definition stage
/**
* @param storageAccessKey the storage access key to use
* @return next definition stage
*/
SqlDatabaseExportRequest.DefinitionStages.WithAuthenticationTypeAndLoginPassword withStorageAccessKey(String storageAccessKey);
Params: - sharedAccessKey – the shared access key to use; it must be preceded with a "?."
Returns: next definition stage
/**
* @param sharedAccessKey the shared access key to use; it must be preceded with a "?."
* @return next definition stage
*/
SqlDatabaseExportRequest.DefinitionStages.WithAuthenticationTypeAndLoginPassword withSharedAccessKey(String sharedAccessKey);
}
Sets the authentication type and SQL or Active Directory administrator login and password.
/**
* Sets the authentication type and SQL or Active Directory administrator login and password.
*/
interface WithAuthenticationTypeAndLoginPassword {
Params: - administratorLogin – the SQL administrator login
- administratorPassword – the SQL administrator password
Returns: next definition stage
/**
* @param administratorLogin the SQL administrator login
* @param administratorPassword the SQL administrator password
* @return next definition stage
*/
SqlDatabaseExportRequest.DefinitionStages.WithExecute withSqlAdministratorLoginAndPassword(String administratorLogin, String administratorPassword);
Params: - administratorLogin – the Active Directory administrator login
- administratorPassword – the Active Directory administrator password
Returns: next definition stage
/**
* @param administratorLogin the Active Directory administrator login
* @param administratorPassword the Active Directory administrator password
* @return next definition stage
*/
SqlDatabaseExportRequest.DefinitionStages.WithExecute withActiveDirectoryLoginAndPassword(String administratorLogin, String administratorPassword);
}
The stage of the definition which contains all the minimum required inputs for execution, but also allows
for any other optional settings to be specified.
/**
* The stage of the definition which contains all the minimum required inputs for execution, but also allows
* for any other optional settings to be specified.
*/
interface WithExecute extends
Executable<SqlDatabaseImportExportResponse> {
}
}
}