StorageAccount Class
- java.
lang. Object - com.
microsoft. azure. management. hdinsight. v2018_06_01_preview. StorageAccount
- com.
public class StorageAccount
The storage Account.
Constructor Summary
Constructor | Description | |
---|---|---|
StorageAccount() |
Method Summary
Modifier and Type | Method and Description |
---|---|
java.lang.String |
container()
Get the container in the storage account, only to be specified for WASB storage accounts. |
java.lang.String |
fileSystem()
Get the filesystem, only to be specified for Azure Data Lake Storage Gen 2. |
java.lang.Boolean |
isDefault()
Get whether or not the storage account is the default storage account. |
java.lang.String |
key()
Get the storage account access key. |
java.lang.String |
msiResourceId()
Get the managed identity (MSI) that is allowed to access the storage account, only to be specified for Azure Data Lake Storage Gen 2. |
java.lang.String |
name()
Get the name of the storage account. |
java.lang.String |
resourceId()
Get the resource ID of storage account, only to be specified for Azure Data Lake Storage Gen 2. |
Storage |
withContainer(String container)
Set the container in the storage account, only to be specified for WASB storage accounts. |
Storage |
withFileSystem(String fileSystem)
Set the filesystem, only to be specified for Azure Data Lake Storage Gen 2. |
Storage |
withIsDefault(Boolean isDefault)
Set whether or not the storage account is the default storage account. |
Storage |
withKey(String key)
Set the storage account access key. |
Storage |
withMsiResourceId(String msiResourceId)
Set the managed identity (MSI) that is allowed to access the storage account, only to be specified for Azure Data Lake Storage Gen 2. |
Storage |
withName(String name)
Set the name of the storage account. |
Storage |
withResourceId(String resourceId)
Set the resource ID of storage account, only to be specified for Azure Data Lake Storage Gen 2. |
Methods inherited from java.lang.Object
Constructor Details
StorageAccount
public StorageAccount()
Method Details
container
public String container()
Get the container in the storage account, only to be specified for WASB storage accounts.
Returns:
fileSystem
public String fileSystem()
Get the filesystem, only to be specified for Azure Data Lake Storage Gen 2.
Returns:
isDefault
public Boolean isDefault()
Get whether or not the storage account is the default storage account.
Returns:
key
public String key()
Get the storage account access key.
Returns:
msiResourceId
public String msiResourceId()
Get the managed identity (MSI) that is allowed to access the storage account, only to be specified for Azure Data Lake Storage Gen 2.
Returns:
name
public String name()
Get the name of the storage account.
Returns:
resourceId
public String resourceId()
Get the resource ID of storage account, only to be specified for Azure Data Lake Storage Gen 2.
Returns:
withContainer
public StorageAccount withContainer(String container)
Set the container in the storage account, only to be specified for WASB storage accounts.
Parameters:
Returns:
withFileSystem
public StorageAccount withFileSystem(String fileSystem)
Set the filesystem, only to be specified for Azure Data Lake Storage Gen 2.
Parameters:
Returns:
withIsDefault
public StorageAccount withIsDefault(Boolean isDefault)
Set whether or not the storage account is the default storage account.
Parameters:
Returns:
withKey
public StorageAccount withKey(String key)
Set the storage account access key.
Parameters:
Returns:
withMsiResourceId
public StorageAccount withMsiResourceId(String msiResourceId)
Set the managed identity (MSI) that is allowed to access the storage account, only to be specified for Azure Data Lake Storage Gen 2.
Parameters:
Returns:
withName
public StorageAccount withName(String name)
Set the name of the storage account.
Parameters:
Returns:
withResourceId
public StorageAccount withResourceId(String resourceId)
Set the resource ID of storage account, only to be specified for Azure Data Lake Storage Gen 2.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for