Share via


AzureBlobFileSystemConfiguration Class

  • java.lang.Object
    • com.azure.resourcemanager.batch.models.AzureBlobFileSystemConfiguration

Implements

public final class AzureBlobFileSystemConfiguration
implements JsonSerializable<AzureBlobFileSystemConfiguration>

Information used to connect to an Azure Storage Container using Blobfuse.

Constructor Summary

Constructor Description
AzureBlobFileSystemConfiguration()

Creates an instance of AzureBlobFileSystemConfiguration class.

Method Summary

Modifier and Type Method and Description
String accountKey()

Get the accountKey property: This property is mutually exclusive with both sasKey and identity; exactly one must be specified.

String accountName()

Get the accountName property: The Azure Storage Account name.

String blobfuseOptions()

Get the blobfuseOptions property: These are 'net use' options in Windows and 'mount' options in Linux.

String containerName()

Get the containerName property: The Azure Blob Storage Container name.

static AzureBlobFileSystemConfiguration fromJson(JsonReader jsonReader)

Reads an instance of AzureBlobFileSystemConfiguration from the JsonReader.

ComputeNodeIdentityReference identityReference()

Get the identityReference property: This property is mutually exclusive with both accountKey and sasKey; exactly one must be specified.

String relativeMountPath()

Get the relativeMountPath property: All file systems are mounted relative to the Batch mounts directory, accessible via the AZ_BATCH_NODE_MOUNTS_DIR environment variable.

String sasKey()

Get the sasKey property: This property is mutually exclusive with both accountKey and identity; exactly one must be specified.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

AzureBlobFileSystemConfiguration withAccountKey(String accountKey)

Set the accountKey property: This property is mutually exclusive with both sasKey and identity; exactly one must be specified.

AzureBlobFileSystemConfiguration withAccountName(String accountName)

Set the accountName property: The Azure Storage Account name.

AzureBlobFileSystemConfiguration withBlobfuseOptions(String blobfuseOptions)

Set the blobfuseOptions property: These are 'net use' options in Windows and 'mount' options in Linux.

AzureBlobFileSystemConfiguration withContainerName(String containerName)

Set the containerName property: The Azure Blob Storage Container name.

AzureBlobFileSystemConfiguration withIdentityReference(ComputeNodeIdentityReference identityReference)

Set the identityReference property: This property is mutually exclusive with both accountKey and sasKey; exactly one must be specified.

AzureBlobFileSystemConfiguration withRelativeMountPath(String relativeMountPath)

Set the relativeMountPath property: All file systems are mounted relative to the Batch mounts directory, accessible via the AZ_BATCH_NODE_MOUNTS_DIR environment variable.

AzureBlobFileSystemConfiguration withSasKey(String sasKey)

Set the sasKey property: This property is mutually exclusive with both accountKey and identity; exactly one must be specified.

Methods inherited from java.lang.Object

Constructor Details

AzureBlobFileSystemConfiguration

public AzureBlobFileSystemConfiguration()

Creates an instance of AzureBlobFileSystemConfiguration class.

Method Details

accountKey

public String accountKey()

Get the accountKey property: This property is mutually exclusive with both sasKey and identity; exactly one must be specified.

Returns:

the accountKey value.

accountName

public String accountName()

Get the accountName property: The Azure Storage Account name.

Returns:

the accountName value.

blobfuseOptions

public String blobfuseOptions()

Get the blobfuseOptions property: These are 'net use' options in Windows and 'mount' options in Linux.

Returns:

the blobfuseOptions value.

containerName

public String containerName()

Get the containerName property: The Azure Blob Storage Container name.

Returns:

the containerName value.

fromJson

public static AzureBlobFileSystemConfiguration fromJson(JsonReader jsonReader)

Reads an instance of AzureBlobFileSystemConfiguration from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of AzureBlobFileSystemConfiguration 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.

identityReference

public ComputeNodeIdentityReference identityReference()

Get the identityReference property: This property is mutually exclusive with both accountKey and sasKey; exactly one must be specified.

Returns:

the identityReference value.

relativeMountPath

public String relativeMountPath()

Get the relativeMountPath property: All file systems are mounted relative to the Batch mounts directory, accessible via the AZ_BATCH_NODE_MOUNTS_DIR environment variable.

Returns:

the relativeMountPath value.

sasKey

public String sasKey()

Get the sasKey property: This property is mutually exclusive with both accountKey and identity; exactly one must be specified.

Returns:

the sasKey value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAccountKey

public AzureBlobFileSystemConfiguration withAccountKey(String accountKey)

Set the accountKey property: This property is mutually exclusive with both sasKey and identity; exactly one must be specified.

Parameters:

accountKey - the accountKey value to set.

Returns:

the AzureBlobFileSystemConfiguration object itself.

withAccountName

public AzureBlobFileSystemConfiguration withAccountName(String accountName)

Set the accountName property: The Azure Storage Account name.

Parameters:

accountName - the accountName value to set.

Returns:

the AzureBlobFileSystemConfiguration object itself.

withBlobfuseOptions

public AzureBlobFileSystemConfiguration withBlobfuseOptions(String blobfuseOptions)

Set the blobfuseOptions property: These are 'net use' options in Windows and 'mount' options in Linux.

Parameters:

blobfuseOptions - the blobfuseOptions value to set.

Returns:

the AzureBlobFileSystemConfiguration object itself.

withContainerName

public AzureBlobFileSystemConfiguration withContainerName(String containerName)

Set the containerName property: The Azure Blob Storage Container name.

Parameters:

containerName - the containerName value to set.

Returns:

the AzureBlobFileSystemConfiguration object itself.

withIdentityReference

public AzureBlobFileSystemConfiguration withIdentityReference(ComputeNodeIdentityReference identityReference)

Set the identityReference property: This property is mutually exclusive with both accountKey and sasKey; exactly one must be specified.

Parameters:

identityReference - the identityReference value to set.

Returns:

the AzureBlobFileSystemConfiguration object itself.

withRelativeMountPath

public AzureBlobFileSystemConfiguration withRelativeMountPath(String relativeMountPath)

Set the relativeMountPath property: All file systems are mounted relative to the Batch mounts directory, accessible via the AZ_BATCH_NODE_MOUNTS_DIR environment variable.

Parameters:

relativeMountPath - the relativeMountPath value to set.

Returns:

the AzureBlobFileSystemConfiguration object itself.

withSasKey

public AzureBlobFileSystemConfiguration withSasKey(String sasKey)

Set the sasKey property: This property is mutually exclusive with both accountKey and identity; exactly one must be specified.

Parameters:

sasKey - the sasKey value to set.

Returns:

the AzureBlobFileSystemConfiguration object itself.

Applies to