Class FileShareProperties
java.lang.Object
com.azure.resourcemanager.storage.fluent.models.FileShareProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<FileShareProperties>
public final class FileShareProperties
extends Object
implements com.azure.json.JsonSerializable<FileShareProperties>
The properties of the file share.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the accessTier property: Access tier for specific share.Get the accessTierChangeTime property: Indicates the last modification time for share access tier.Get the accessTierStatus property: Indicates if there is a pending transition for access tier.deleted()Get the deleted property: Indicates whether the share was deleted.Get the deletedTime property: The deleted time if the share was deleted.Get the enabledProtocols property: The authentication protocol that is used for the file share.Get the fileSharePaidBursting property: File Share Paid Bursting properties.static FileSharePropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of FileShareProperties from the JsonReader.Get the includedBurstIops property: The calculated burst IOPS of the share.Get the lastModifiedTime property: Returns the date and time the share was last modified.Get the leaseDuration property: Specifies whether the lease on a share is of infinite or fixed duration, only when the share is leased.Get the leaseState property: Lease state of the share.Get the leaseStatus property: The lease status of the share.Get the maxBurstCreditsForIops property: The calculated maximum burst credits for the share.metadata()Get the metadata property: A name-value pair to associate with the share as metadata.Get the nextAllowedProvisionedBandwidthDowngradeTime property: Returns the next allowed provisioned bandwidth downgrade time for the share.Get the nextAllowedProvisionedIopsDowngradeTime property: Returns the next allowed provisioned IOPS downgrade time for the share.Get the nextAllowedQuotaDowngradeTime property: Returns the next allowed provisioned storage size downgrade time for the share.Get the provisionedBandwidthMibps property: The provisioned bandwidth of the share, in mebibytes per second.Get the provisionedIops property: The provisioned IOPS of the share.Get the remainingRetentionDays property: Remaining retention days for share that was soft deleted.Get the rootSquash property: The property is for NFS share only.Get the shareQuota property: The provisioned size of the share, in gibibytes.Get the shareUsageBytes property: The approximate size of the data stored on the share.Get the signedIdentifiers property: List of stored access policies specified on the share.Get the snapshotTime property: Creation time of share snapshot returned in the response of list shares with expand param "snapshots".com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.version()Get the version property: The version of the share.withAccessTier(ShareAccessTier accessTier) Set the accessTier property: Access tier for specific share.withEnabledProtocols(EnabledProtocols enabledProtocols) Set the enabledProtocols property: The authentication protocol that is used for the file share.withFileSharePaidBursting(FileSharePropertiesFileSharePaidBursting fileSharePaidBursting) Set the fileSharePaidBursting property: File Share Paid Bursting properties.withMetadata(Map<String, String> metadata) Set the metadata property: A name-value pair to associate with the share as metadata.withProvisionedBandwidthMibps(Integer provisionedBandwidthMibps) Set the provisionedBandwidthMibps property: The provisioned bandwidth of the share, in mebibytes per second.withProvisionedIops(Integer provisionedIops) Set the provisionedIops property: The provisioned IOPS of the share.withRootSquash(RootSquashType rootSquash) Set the rootSquash property: The property is for NFS share only.withShareQuota(Integer shareQuota) Set the shareQuota property: The provisioned size of the share, in gibibytes.withSignedIdentifiers(List<SignedIdentifier> signedIdentifiers) Set the signedIdentifiers property: List of stored access policies specified on the share.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
FileShareProperties
public FileShareProperties()Creates an instance of FileShareProperties class.
-
-
Method Details
-
lastModifiedTime
Get the lastModifiedTime property: Returns the date and time the share was last modified.- Returns:
- the lastModifiedTime value.
-
metadata
Get the metadata property: A name-value pair to associate with the share as metadata.- Returns:
- the metadata value.
-
withMetadata
Set the metadata property: A name-value pair to associate with the share as metadata.- Parameters:
metadata- the metadata value to set.- Returns:
- the FileShareProperties object itself.
-
provisionedIops
Get the provisionedIops property: The provisioned IOPS of the share. This property is only for file shares created under Files Provisioned v2 account type. Please refer to the GetFileServiceUsage API response for the minimum and maximum allowed value for provisioned IOPS.- Returns:
- the provisionedIops value.
-
withProvisionedIops
Set the provisionedIops property: The provisioned IOPS of the share. This property is only for file shares created under Files Provisioned v2 account type. Please refer to the GetFileServiceUsage API response for the minimum and maximum allowed value for provisioned IOPS.- Parameters:
provisionedIops- the provisionedIops value to set.- Returns:
- the FileShareProperties object itself.
-
provisionedBandwidthMibps
Get the provisionedBandwidthMibps property: The provisioned bandwidth of the share, in mebibytes per second. This property is only for file shares created under Files Provisioned v2 account type. Please refer to the GetFileServiceUsage API response for the minimum and maximum allowed value for provisioned bandwidth.- Returns:
- the provisionedBandwidthMibps value.
-
withProvisionedBandwidthMibps
Set the provisionedBandwidthMibps property: The provisioned bandwidth of the share, in mebibytes per second. This property is only for file shares created under Files Provisioned v2 account type. Please refer to the GetFileServiceUsage API response for the minimum and maximum allowed value for provisioned bandwidth.- Parameters:
provisionedBandwidthMibps- the provisionedBandwidthMibps value to set.- Returns:
- the FileShareProperties object itself.
-
includedBurstIops
Get the includedBurstIops property: The calculated burst IOPS of the share. This property is only for file shares created under Files Provisioned v2 account type.- Returns:
- the includedBurstIops value.
-
maxBurstCreditsForIops
Get the maxBurstCreditsForIops property: The calculated maximum burst credits for the share. This property is only for file shares created under Files Provisioned v2 account type.- Returns:
- the maxBurstCreditsForIops value.
-
nextAllowedQuotaDowngradeTime
Get the nextAllowedQuotaDowngradeTime property: Returns the next allowed provisioned storage size downgrade time for the share. This property is only for file shares created under Files Provisioned v1 SSD and Files Provisioned v2 account type.- Returns:
- the nextAllowedQuotaDowngradeTime value.
-
nextAllowedProvisionedIopsDowngradeTime
Get the nextAllowedProvisionedIopsDowngradeTime property: Returns the next allowed provisioned IOPS downgrade time for the share. This property is only for file shares created under Files Provisioned v2 account type.- Returns:
- the nextAllowedProvisionedIopsDowngradeTime value.
-
nextAllowedProvisionedBandwidthDowngradeTime
Get the nextAllowedProvisionedBandwidthDowngradeTime property: Returns the next allowed provisioned bandwidth downgrade time for the share. This property is only for file shares created under Files Provisioned v2 account type.- Returns:
- the nextAllowedProvisionedBandwidthDowngradeTime value.
-
enabledProtocols
Get the enabledProtocols property: The authentication protocol that is used for the file share. Can only be specified when creating a share.- Returns:
- the enabledProtocols value.
-
withEnabledProtocols
Set the enabledProtocols property: The authentication protocol that is used for the file share. Can only be specified when creating a share.- Parameters:
enabledProtocols- the enabledProtocols value to set.- Returns:
- the FileShareProperties object itself.
-
rootSquash
Get the rootSquash property: The property is for NFS share only. The default is NoRootSquash.- Returns:
- the rootSquash value.
-
withRootSquash
Set the rootSquash property: The property is for NFS share only. The default is NoRootSquash.- Parameters:
rootSquash- the rootSquash value to set.- Returns:
- the FileShareProperties object itself.
-
version
Get the version property: The version of the share.- Returns:
- the version value.
-
deleted
Get the deleted property: Indicates whether the share was deleted.- Returns:
- the deleted value.
-
deletedTime
Get the deletedTime property: The deleted time if the share was deleted.- Returns:
- the deletedTime value.
-
remainingRetentionDays
Get the remainingRetentionDays property: Remaining retention days for share that was soft deleted.- Returns:
- the remainingRetentionDays value.
-
accessTier
Get the accessTier property: Access tier for specific share. GpV2 account can choose between TransactionOptimized (default), Hot, and Cool. FileStorage account can choose Premium.- Returns:
- the accessTier value.
-
accessTierChangeTime
Get the accessTierChangeTime property: Indicates the last modification time for share access tier.- Returns:
- the accessTierChangeTime value.
-
accessTierStatus
Get the accessTierStatus property: Indicates if there is a pending transition for access tier.- Returns:
- the accessTierStatus value.
-
leaseStatus
Get the leaseStatus property: The lease status of the share.- Returns:
- the leaseStatus value.
-
leaseState
Get the leaseState property: Lease state of the share.- Returns:
- the leaseState value.
-
leaseDuration
Get the leaseDuration property: Specifies whether the lease on a share is of infinite or fixed duration, only when the share is leased.- Returns:
- the leaseDuration value.
-
signedIdentifiers
Get the signedIdentifiers property: List of stored access policies specified on the share.- Returns:
- the signedIdentifiers value.
-
withSignedIdentifiers
Set the signedIdentifiers property: List of stored access policies specified on the share.- Parameters:
signedIdentifiers- the signedIdentifiers value to set.- Returns:
- the FileShareProperties object itself.
-
snapshotTime
Get the snapshotTime property: Creation time of share snapshot returned in the response of list shares with expand param "snapshots".- Returns:
- the snapshotTime value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<FileShareProperties>- Throws:
IOException
-
fromJson
Reads an instance of FileShareProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of FileShareProperties 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 FileShareProperties.
-