ImportExistingDatabaseDefinition Class

  • java.lang.Object
    • com.azure.resourcemanager.sql.models.ImportExistingDatabaseDefinition

Implements

public final class ImportExistingDatabaseDefinition
implements JsonSerializable<ImportExistingDatabaseDefinition>

Contains the information necessary to perform import operation for existing database.

Constructor Summary

Constructor Description
ImportExistingDatabaseDefinition()

Creates an instance of ImportExistingDatabaseDefinition class.

Method Summary

Modifier and Type Method and Description
String administratorLogin()

Get the administratorLogin property: Administrator login name.

String administratorLoginPassword()

Get the administratorLoginPassword property: Administrator login password.

String authenticationType()

Get the authenticationType property: Type of credentials provided for access to the target SQL server: SQL, ADPassword or ManagedIdentity.

static ImportExistingDatabaseDefinition fromJson(JsonReader jsonReader)

Reads an instance of ImportExistingDatabaseDefinition from the JsonReader.

NetworkIsolationSettings networkIsolation()

Get the networkIsolation property: Optional resource information to enable network isolation for request.

String storageKey()

Get the storageKey property: Storage key for the storage account.

StorageKeyType storageKeyType()

Get the storageKeyType property: Storage key type: StorageAccessKey, SharedAccessKey, or ManagedIdentity.

String storageUri()

Get the storageUri property: Storage Uri.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ImportExistingDatabaseDefinition withAdministratorLogin(String administratorLogin)

Set the administratorLogin property: Administrator login name.

ImportExistingDatabaseDefinition withAdministratorLoginPassword(String administratorLoginPassword)

Set the administratorLoginPassword property: Administrator login password.

ImportExistingDatabaseDefinition withAuthenticationType(String authenticationType)

Set the authenticationType property: Type of credentials provided for access to the target SQL server: SQL, ADPassword or ManagedIdentity.

ImportExistingDatabaseDefinition withNetworkIsolation(NetworkIsolationSettings networkIsolation)

Set the networkIsolation property: Optional resource information to enable network isolation for request.

ImportExistingDatabaseDefinition withStorageKey(String storageKey)

Set the storageKey property: Storage key for the storage account.

ImportExistingDatabaseDefinition withStorageKeyType(StorageKeyType storageKeyType)

Set the storageKeyType property: Storage key type: StorageAccessKey, SharedAccessKey, or ManagedIdentity.

ImportExistingDatabaseDefinition withStorageUri(String storageUri)

Set the storageUri property: Storage Uri.

Methods inherited from java.lang.Object

Constructor Details

ImportExistingDatabaseDefinition

public ImportExistingDatabaseDefinition()

Creates an instance of ImportExistingDatabaseDefinition class.

Method Details

administratorLogin

public String administratorLogin()

Get the administratorLogin property: Administrator login name. If AuthenticationType is ManagedIdentity, this field should specify the Managed Identity's resource ID.

Returns:

the administratorLogin value.

administratorLoginPassword

public String administratorLoginPassword()

Get the administratorLoginPassword property: Administrator login password. If AuthenticationType is ManagedIdentity, this field should not be specified.

Returns:

the administratorLoginPassword value.

authenticationType

public String authenticationType()

Get the authenticationType property: Type of credentials provided for access to the target SQL server: SQL, ADPassword or ManagedIdentity.

Returns:

the authenticationType value.

fromJson

public static ImportExistingDatabaseDefinition fromJson(JsonReader jsonReader)

Reads an instance of ImportExistingDatabaseDefinition from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ImportExistingDatabaseDefinition if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

networkIsolation

public NetworkIsolationSettings networkIsolation()

Get the networkIsolation property: Optional resource information to enable network isolation for request.

Returns:

the networkIsolation value.

storageKey

public String storageKey()

Get the storageKey property: Storage key for the storage account. If StorageKeyType is ManagedIdentity, this field should specify the Managed Identity's resource ID.

Returns:

the storageKey value.

storageKeyType

public StorageKeyType storageKeyType()

Get the storageKeyType property: Storage key type: StorageAccessKey, SharedAccessKey, or ManagedIdentity.

Returns:

the storageKeyType value.

storageUri

public String storageUri()

Get the storageUri property: Storage Uri.

Returns:

the storageUri value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAdministratorLogin

public ImportExistingDatabaseDefinition withAdministratorLogin(String administratorLogin)

Set the administratorLogin property: Administrator login name. If AuthenticationType is ManagedIdentity, this field should specify the Managed Identity's resource ID.

Parameters:

administratorLogin - the administratorLogin value to set.

Returns:

the ImportExistingDatabaseDefinition object itself.

withAdministratorLoginPassword

public ImportExistingDatabaseDefinition withAdministratorLoginPassword(String administratorLoginPassword)

Set the administratorLoginPassword property: Administrator login password. If AuthenticationType is ManagedIdentity, this field should not be specified.

Parameters:

administratorLoginPassword - the administratorLoginPassword value to set.

Returns:

the ImportExistingDatabaseDefinition object itself.

withAuthenticationType

public ImportExistingDatabaseDefinition withAuthenticationType(String authenticationType)

Set the authenticationType property: Type of credentials provided for access to the target SQL server: SQL, ADPassword or ManagedIdentity.

Parameters:

authenticationType - the authenticationType value to set.

Returns:

the ImportExistingDatabaseDefinition object itself.

withNetworkIsolation

public ImportExistingDatabaseDefinition withNetworkIsolation(NetworkIsolationSettings networkIsolation)

Set the networkIsolation property: Optional resource information to enable network isolation for request.

Parameters:

networkIsolation - the networkIsolation value to set.

Returns:

the ImportExistingDatabaseDefinition object itself.

withStorageKey

public ImportExistingDatabaseDefinition withStorageKey(String storageKey)

Set the storageKey property: Storage key for the storage account. If StorageKeyType is ManagedIdentity, this field should specify the Managed Identity's resource ID.

Parameters:

storageKey - the storageKey value to set.

Returns:

the ImportExistingDatabaseDefinition object itself.

withStorageKeyType

public ImportExistingDatabaseDefinition withStorageKeyType(StorageKeyType storageKeyType)

Set the storageKeyType property: Storage key type: StorageAccessKey, SharedAccessKey, or ManagedIdentity.

Parameters:

storageKeyType - the storageKeyType value to set.

Returns:

the ImportExistingDatabaseDefinition object itself.

withStorageUri

public ImportExistingDatabaseDefinition withStorageUri(String storageUri)

Set the storageUri property: Storage Uri.

Parameters:

storageUri - the storageUri value to set.

Returns:

the ImportExistingDatabaseDefinition object itself.

Applies to