Aracılığıyla paylaş


ShareSetPropertiesOptions Class

  • java.lang.Object
    • com.azure.storage.file.share.options.ShareSetPropertiesOptions

public class ShareSetPropertiesOptions

Extended options that may be passed when setting properties on a share.

Constructor Summary

Constructor Description
ShareSetPropertiesOptions()

Method Summary

Modifier and Type Method and Description
ShareAccessTier getAccessTier()
Integer getQuotaInGb()
ShareRequestConditions getRequestConditions()
ShareRootSquash getRootSquash()
Boolean isSnapshotVirtualDirectoryAccessEnabled()

Get the enableSnapshotVirtualDirectoryAccess property: The EnableSnapshotVirtualDirectoryAccess property.

ShareSetPropertiesOptions setAccessTier(ShareAccessTier accessTier)
ShareSetPropertiesOptions setQuotaInGb(Integer quotaInGb)
ShareSetPropertiesOptions setRequestConditions(ShareRequestConditions requestConditions)
ShareSetPropertiesOptions setRootSquash(ShareRootSquash rootSquash)
ShareSetPropertiesOptions setSnapshotVirtualDirectoryAccessEnabled(Boolean snapshotVirtualDirectoryAccessEnabled)

Set the enableSnapshotVirtualDirectoryAccess property: The EnableSnapshotVirtualDirectoryAccess property.

Methods inherited from java.lang.Object

Constructor Details

ShareSetPropertiesOptions

public ShareSetPropertiesOptions()

Method Details

getAccessTier

public ShareAccessTier getAccessTier()

Returns:

getQuotaInGb

public Integer getQuotaInGb()

Returns:

Size in GB to limit the share's growth.

getRequestConditions

public ShareRequestConditions getRequestConditions()

Returns:

getRootSquash

public ShareRootSquash getRootSquash()

Returns:

The root squash to set for the share. Only valid for NFS.

isSnapshotVirtualDirectoryAccessEnabled

public Boolean isSnapshotVirtualDirectoryAccessEnabled()

Get the enableSnapshotVirtualDirectoryAccess property: The EnableSnapshotVirtualDirectoryAccess property. Optional. Supported in version 2023-08-03 and above. Only applicable for premium file storage accounts. Specifies whether the snapshot virtual directory should be accessible at the root of share mount point when NFS is enabled. If not specified, the default is true.

Returns:

the enableSnapshotVirtualDirectoryAccess value.

setAccessTier

public ShareSetPropertiesOptions setAccessTier(ShareAccessTier accessTier)

Parameters:

accessTier - ShareAccessTier.

Returns:

The updated options.

setQuotaInGb

public ShareSetPropertiesOptions setQuotaInGb(Integer quotaInGb)

Parameters:

quotaInGb - Size in GB to limit the share's growth.

Returns:

The updated options.

setRequestConditions

public ShareSetPropertiesOptions setRequestConditions(ShareRequestConditions requestConditions)

Parameters:

requestConditions - ShareRequestConditions.

Returns:

The updated options.

setRootSquash

public ShareSetPropertiesOptions setRootSquash(ShareRootSquash rootSquash)

Parameters:

rootSquash - The root squash to set for the share. Only valid for NFS.

Returns:

The updated options.

setSnapshotVirtualDirectoryAccessEnabled

public ShareSetPropertiesOptions setSnapshotVirtualDirectoryAccessEnabled(Boolean snapshotVirtualDirectoryAccessEnabled)

Set the enableSnapshotVirtualDirectoryAccess property: The EnableSnapshotVirtualDirectoryAccess property. Optional. Supported in version 2023-08-03 and above. Only applicable for premium file storage accounts. Specifies whether the snapshot virtual directory should be accessible at the root of share mount point when NFS is enabled. If not specified, the default is true.

Parameters:

snapshotVirtualDirectoryAccessEnabled - the enableSnapshotVirtualDirectoryAccess value to set.

Returns:

the ShareSetPropertiesOptions object itself.

Applies to