Share via


AzureBlob Class

  • java.lang.Object
    • com.azure.resourcemanager.datamigration.models.AzureBlob

Implements

public final class AzureBlob
implements JsonSerializable<AzureBlob>

Azure Blob Details.

Constructor Summary

Constructor Description
AzureBlob()

Creates an instance of AzureBlob class.

Method Summary

Modifier and Type Method and Description
String accountKey()

Get the accountKey property: Storage Account Key.

AuthType authType()

Get the authType property: Authentication type used for accessing Azure Blob Storage.

String blobContainerName()

Get the blobContainerName property: Blob container name where backups are stored.

static AzureBlob fromJson(JsonReader jsonReader)

Reads an instance of AzureBlob from the JsonReader.

ManagedServiceIdentity identity()

Get the identity property: Identity details for authentication using a Managed Identity.

String storageAccountResourceId()

Get the storageAccountResourceId property: Resource Id of the storage account where backups are stored.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

AzureBlob withAccountKey(String accountKey)

Set the accountKey property: Storage Account Key.

AzureBlob withAuthType(AuthType authType)

Set the authType property: Authentication type used for accessing Azure Blob Storage.

AzureBlob withBlobContainerName(String blobContainerName)

Set the blobContainerName property: Blob container name where backups are stored.

AzureBlob withIdentity(ManagedServiceIdentity identity)

Set the identity property: Identity details for authentication using a Managed Identity.

AzureBlob withStorageAccountResourceId(String storageAccountResourceId)

Set the storageAccountResourceId property: Resource Id of the storage account where backups are stored.

Methods inherited from java.lang.Object

Constructor Details

AzureBlob

public AzureBlob()

Creates an instance of AzureBlob class.

Method Details

accountKey

public String accountKey()

Get the accountKey property: Storage Account Key.

Returns:

the accountKey value.

authType

public AuthType authType()

Get the authType property: Authentication type used for accessing Azure Blob Storage.

Returns:

the authType value.

blobContainerName

public String blobContainerName()

Get the blobContainerName property: Blob container name where backups are stored.

Returns:

the blobContainerName value.

fromJson

public static AzureBlob fromJson(JsonReader jsonReader)

Reads an instance of AzureBlob from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If an error occurs while reading the AzureBlob.

identity

public ManagedServiceIdentity identity()

Get the identity property: Identity details for authentication using a Managed Identity.

Returns:

the identity value.

storageAccountResourceId

public String storageAccountResourceId()

Get the storageAccountResourceId property: Resource Id of the storage account where backups are stored.

Returns:

the storageAccountResourceId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAccountKey

public AzureBlob withAccountKey(String accountKey)

Set the accountKey property: Storage Account Key.

Parameters:

accountKey - the accountKey value to set.

Returns:

the AzureBlob object itself.

withAuthType

public AzureBlob withAuthType(AuthType authType)

Set the authType property: Authentication type used for accessing Azure Blob Storage.

Parameters:

authType - the authType value to set.

Returns:

the AzureBlob object itself.

withBlobContainerName

public AzureBlob withBlobContainerName(String blobContainerName)

Set the blobContainerName property: Blob container name where backups are stored.

Parameters:

blobContainerName - the blobContainerName value to set.

Returns:

the AzureBlob object itself.

withIdentity

public AzureBlob withIdentity(ManagedServiceIdentity identity)

Set the identity property: Identity details for authentication using a Managed Identity.

Parameters:

identity - the identity value to set.

Returns:

the AzureBlob object itself.

withStorageAccountResourceId

public AzureBlob withStorageAccountResourceId(String storageAccountResourceId)

Set the storageAccountResourceId property: Resource Id of the storage account where backups are stored.

Parameters:

storageAccountResourceId - the storageAccountResourceId value to set.

Returns:

the AzureBlob object itself.

Applies to