Package com.azure.compute.batch.models
Class AzureBlobFileSystemConfiguration
java.lang.Object
com.azure.compute.batch.models.AzureBlobFileSystemConfiguration
- All Implemented Interfaces:
com.azure.json.JsonSerializable<AzureBlobFileSystemConfiguration>
public final class AzureBlobFileSystemConfiguration
extends Object
implements com.azure.json.JsonSerializable<AzureBlobFileSystemConfiguration>
Information used to connect to an Azure Storage Container using Blobfuse.
-
Constructor Summary
ConstructorsConstructorDescriptionAzureBlobFileSystemConfiguration
(String accountName, String containerName, String relativeMountPath) Creates an instance of AzureBlobFileSystemConfiguration class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of AzureBlobFileSystemConfiguration from the JsonReader.Get the accountKey property: The Azure Storage Account key.Get the accountName property: The Azure Storage Account name.Get the blobfuseOptions property: Additional command line options to pass to the mount command.Get the containerName property: The Azure Blob Storage Container name.Get the identityReference property: The reference to the user assigned identity to use to access containerName.Get the relativeMountPath property: The relative path on the compute node where the file system will be mounted.Get the sasKey property: The Azure Storage SAS token.setAccountKey
(String accountKey) Set the accountKey property: The Azure Storage Account key.setBlobfuseOptions
(String blobfuseOptions) Set the blobfuseOptions property: Additional command line options to pass to the mount command.setIdentityReference
(BatchNodeIdentityReference identityReference) Set the identityReference property: The reference to the user assigned identity to use to access containerName.Set the sasKey property: The Azure Storage SAS token.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
AzureBlobFileSystemConfiguration
public AzureBlobFileSystemConfiguration(String accountName, String containerName, String relativeMountPath) Creates an instance of AzureBlobFileSystemConfiguration class.- Parameters:
accountName
- the accountName value to set.containerName
- the containerName value to set.relativeMountPath
- the relativeMountPath value to set.
-
-
Method Details
-
getAccountName
Get the accountName property: The Azure Storage Account name.- Returns:
- the accountName value.
-
getContainerName
Get the containerName property: The Azure Blob Storage Container name.- Returns:
- the containerName value.
-
getAccountKey
Get the accountKey property: The Azure Storage Account key. This property is mutually exclusive with both sasKey and identity; exactly one must be specified.- Returns:
- the accountKey value.
-
setAccountKey
Set the accountKey property: The Azure Storage Account key. 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.
-
getSasKey
Get the sasKey property: The Azure Storage SAS token. This property is mutually exclusive with both accountKey and identity; exactly one must be specified.- Returns:
- the sasKey value.
-
setSasKey
Set the sasKey property: The Azure Storage SAS token. 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.
-
getBlobfuseOptions
Get the blobfuseOptions property: Additional command line options to pass to the mount command. These are 'net use' options in Windows and 'mount' options in Linux.- Returns:
- the blobfuseOptions value.
-
setBlobfuseOptions
Set the blobfuseOptions property: Additional command line options to pass to the mount command. These are 'net use' options in Windows and 'mount' options in Linux.- Parameters:
blobfuseOptions
- the blobfuseOptions value to set.- Returns:
- the AzureBlobFileSystemConfiguration object itself.
-
getRelativeMountPath
Get the relativeMountPath property: The relative path on the compute node where the file system will be mounted. 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.
-
getIdentityReference
Get the identityReference property: The reference to the user assigned identity to use to access containerName. This property is mutually exclusive with both accountKey and sasKey; exactly one must be specified.- Returns:
- the identityReference value.
-
setIdentityReference
public AzureBlobFileSystemConfiguration setIdentityReference(BatchNodeIdentityReference identityReference) Set the identityReference property: The reference to the user assigned identity to use to access containerName. 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.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<AzureBlobFileSystemConfiguration>
- Throws:
IOException
-
fromJson
public static AzureBlobFileSystemConfiguration fromJson(com.azure.json.JsonReader jsonReader) throws IOException 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:
IllegalStateException
- If the deserialized JSON object was missing any required properties.IOException
- If an error occurs while reading the AzureBlobFileSystemConfiguration.
-