Class ShareProperties
java.lang.Object
com.azure.storage.file.share.models.ShareProperties
- All Implemented Interfaces:
com.azure.xml.XmlSerializable<ShareProperties>
public final class ShareProperties
extends Object
implements com.azure.xml.XmlSerializable<ShareProperties>
Properties of a share.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ShareProperties
fromXml
(com.azure.xml.XmlReader xmlReader) Reads an instance of ShareProperties from the XmlReader.static ShareProperties
Reads an instance of ShareProperties from the XmlReader.Get the accessTier property: The accessTier property.Get the accessTierChangeTime property: The accessTierChangeTime property.Get the accessTierTransitionState property: The accessTierTransitionState property.Get the deletedTime property: The deletedTime property.getETag()
Get the eTag property: The eTag property.Get the includedBurstIops property.Get the lastModified property: The lastModified property.Get the leaseDuration property: Possible values include: 'infinite', 'fixed'.Get the leaseState property: Possible values include: 'available', 'leased', 'expired', 'breaking', 'broken'.Get the leaseStatus property: Possible values include: 'locked', 'unlocked'.Get the maxBurstCreditsForIops property.Get the metadata property: The metadata property.Get the nextAllowedProvisionedBandwidthDowngradeTime property.Get the nextAllowedProvisionedIopsDowngradeTime property.Get the nextAllowedQuotaDowngradeTime property: The nextAllowedQuotaDowngradeTime property.Get the paidBurstingMaxBandwidthMibps property: Optional.Get the paidBurstingMaxIops property: Optional.Get the enabledProtocols property: The enabledProtocols property.Get the provisionedBandwidthMiBps property: The ProvisionedBandwidthMiBps property.Deprecated.Deprecated.Please usegetProvisionedBandwidthMiBps()
Get the provisionedIops property: The provisionedIops property.int
getQuota()
Get the quota property: The quota property.Get the remainingRetentionDays property: The remainingRetentionDays property.Get the rootSquash property: Possible values include: 'NoRootSquash', 'RootSquash', 'AllSquash'.Get the enablePaidBursting property: Optional.Get the enableSnapshotVirtualDirectoryAccess property: Optional.setAccessTier
(String accessTier) Set the accessTier property: The accessTier property.setAccessTierChangeTime
(OffsetDateTime accessTierChangeTime) Set the accessTierChangeTime property: The accessTierChangeTime property.setAccessTierTransitionState
(String accessTierTransitionState) Set the accessTierTransitionState property: The accessTierTransitionState property.setDeletedTime
(OffsetDateTime deletedTime) Set the deletedTime property: The deletedTime property.Set the eTag property: The eTag property.setIncludedBurstIops
(Long includedBurstIops) Set the includedBurstIops property.setLastModified
(OffsetDateTime lastModified) Set the lastModified property: The lastModified property.setLeaseDuration
(LeaseDurationType leaseDuration) Set the leaseDuration property: Possible values include: 'infinite', 'fixed'.setLeaseState
(LeaseStateType leaseState) Set the leaseState property: Possible values include: 'available', 'leased', 'expired', 'breaking', 'broken'.setLeaseStatus
(LeaseStatusType leaseStatus) Set the leaseStatus property: Possible values include: 'locked', 'unlocked'.setMaxBurstCreditsForIops
(Long maxBurstCreditsForIops) Set the maxBurstCreditsForIops property.setMetadata
(Map<String, String> metadata) Set the metadata property: The metadata property.setNextAllowedProvisionedBandwidthDowngradeTime
(OffsetDateTime nextAllowedProvisionedBandwidthDowngradeTime) Set the nextAllowedProvisionedBandwidthDowngradeTime property.setNextAllowedProvisionedIopsDowngradeTime
(OffsetDateTime nextAllowedProvisionedIopsDowngradeTime) Set the nextAllowedProvisionedIopsDowngradeTime property.setNextAllowedQuotaDowngradeTime
(OffsetDateTime nextAllowedQuotaDowngradeTime) Set the nextAllowedQuotaDowngradeTime property: The nextAllowedQuotaDowngradeTime property.setPaidBurstingEnabled
(Boolean enablePaidBursting) Set the enablePaidBursting property: Optional.setPaidBurstingMaxBandwidthMibps
(Long paidBurstingMaxBandwidthMibps) Set the paidBurstingMaxBandwidthMibps property: Optional.setPaidBurstingMaxIops
(Long paidBurstingMaxIops) Set the paidBurstingMaxIops property: Optional.setProtocols
(ShareProtocols protocols) Set the enabledProtocols property: The enabledProtocols property.setProvisionedBandwidthMiBps
(Integer provisionedBandwidthMiBps) Set the provisionedBandwidthMiBps property: The ProvisionedBandwidthMiBps property.setProvisionedEgressMBps
(Integer provisionedEgressMBps) Deprecated.Please usesetProvisionedBandwidthMiBps(Integer)
()}setProvisionedIngressMBps
(Integer provisionedIngressMBps) Deprecated.Please usesetProvisionedBandwidthMiBps(Integer)
()}setProvisionedIops
(Integer provisionedIops) Set the provisionedIops property: The provisionedIops property.setQuota
(int quota) Set the quota property: The quota property.setRemainingRetentionDays
(Integer remainingRetentionDays) Set the remainingRetentionDays property: The remainingRetentionDays property.setRootSquash
(ShareRootSquash rootSquash) Set the rootSquash property: Possible values include: 'NoRootSquash', 'RootSquash', 'AllSquash'.setSnapshotVirtualDirectoryAccessEnabled
(Boolean enableSnapshotVirtualDirectoryAccess) Set the enableSnapshotVirtualDirectoryAccess property: Optional.com.azure.xml.XmlWriter
toXml
(com.azure.xml.XmlWriter xmlWriter) com.azure.xml.XmlWriter
-
Constructor Details
-
ShareProperties
public ShareProperties()Creates a new instance ofShareProperties
.
-
-
Method Details
-
getLastModified
Get the lastModified property: The lastModified property.- Returns:
- the lastModified value.
-
setLastModified
Set the lastModified property: The lastModified property.- Parameters:
lastModified
- the lastModified value to set.- Returns:
- the ShareProperties object itself.
-
getETag
Get the eTag property: The eTag property.- Returns:
- the eTag value.
-
setETag
Set the eTag property: The eTag property.- Parameters:
eTag
- the eTag value to set.- Returns:
- the ShareProperties object itself.
-
getQuota
public int getQuota()Get the quota property: The quota property.- Returns:
- the quota value.
-
setQuota
Set the quota property: The quota property.- Parameters:
quota
- the quota value to set.- Returns:
- the ShareProperties object itself.
-
getProvisionedIops
Get the provisionedIops property: The provisionedIops property.- Returns:
- the provisionedIops value.
-
setProvisionedIops
Set the provisionedIops property: The provisionedIops property.- Parameters:
provisionedIops
- the provisionedIops value to set.- Returns:
- the ShareProperties object itself.
-
getProvisionedIngressMBps
Deprecated.Please usegetProvisionedBandwidthMiBps()
Get the provisionedIngressMBps property: The provisionedIngressMBps property.- Returns:
- the provisionedIngressMBps value.
-
setProvisionedIngressMBps
Deprecated.Please usesetProvisionedBandwidthMiBps(Integer)
()}Set the provisionedIngressMBps property: The provisionedIngressMBps property.- Parameters:
provisionedIngressMBps
- the provisionedIngressMBps value to set.- Returns:
- the ShareProperties object itself.
-
getProvisionedEgressMBps
Deprecated.Please usegetProvisionedBandwidthMiBps()
Get the provisionedEgressMBps property: The provisionedEgressMBps property.- Returns:
- the provisionedEgressMBps value.
-
setProvisionedEgressMBps
Deprecated.Please usesetProvisionedBandwidthMiBps(Integer)
()}Set the provisionedEgressMBps property: The provisionedEgressMBps property.- Parameters:
provisionedEgressMBps
- the provisionedEgressMBps value to set.- Returns:
- the ShareProperties object itself.
-
getProvisionedBandwidthMiBps
Get the provisionedBandwidthMiBps property: The ProvisionedBandwidthMiBps property.- Returns:
- the provisionedBandwidthMiBps value.
-
setProvisionedBandwidthMiBps
Set the provisionedBandwidthMiBps property: The ProvisionedBandwidthMiBps property.- Parameters:
provisionedBandwidthMiBps
- the provisionedBandwidthMiBps value to set.- Returns:
- the ShareProperties object itself.
-
getNextAllowedQuotaDowngradeTime
Get the nextAllowedQuotaDowngradeTime property: The nextAllowedQuotaDowngradeTime property.- Returns:
- the nextAllowedQuotaDowngradeTime value.
-
setNextAllowedQuotaDowngradeTime
public ShareProperties setNextAllowedQuotaDowngradeTime(OffsetDateTime nextAllowedQuotaDowngradeTime) Set the nextAllowedQuotaDowngradeTime property: The nextAllowedQuotaDowngradeTime property.- Parameters:
nextAllowedQuotaDowngradeTime
- the nextAllowedQuotaDowngradeTime value to set.- Returns:
- the ShareProperties object itself.
-
getDeletedTime
Get the deletedTime property: The deletedTime property.- Returns:
- the deletedTime value.
-
setDeletedTime
Set the deletedTime property: The deletedTime property.- Parameters:
deletedTime
- the deletedTime value to set.- Returns:
- the ShareProperties object itself.
-
getRemainingRetentionDays
Get the remainingRetentionDays property: The remainingRetentionDays property.- Returns:
- the remainingRetentionDays value.
-
setRemainingRetentionDays
Set the remainingRetentionDays property: The remainingRetentionDays property.- Parameters:
remainingRetentionDays
- the remainingRetentionDays value to set.- Returns:
- the ShareProperties object itself.
-
getAccessTier
Get the accessTier property: The accessTier property.- Returns:
- the accessTier value.
-
setAccessTier
Set the accessTier property: The accessTier property.- Parameters:
accessTier
- the accessTier value to set.- Returns:
- the ShareProperties object itself.
-
getAccessTierChangeTime
Get the accessTierChangeTime property: The accessTierChangeTime property.- Returns:
- the accessTierChangeTime value.
-
setAccessTierChangeTime
Set the accessTierChangeTime property: The accessTierChangeTime property.- Parameters:
accessTierChangeTime
- the accessTierChangeTime value to set.- Returns:
- the ShareProperties object itself.
-
getAccessTierTransitionState
Get the accessTierTransitionState property: The accessTierTransitionState property.- Returns:
- the accessTierTransitionState value.
-
setAccessTierTransitionState
Set the accessTierTransitionState property: The accessTierTransitionState property.- Parameters:
accessTierTransitionState
- the accessTierTransitionState value to set.- Returns:
- the ShareProperties object itself.
-
getLeaseStatus
Get the leaseStatus property: Possible values include: 'locked', 'unlocked'.- Returns:
- the leaseStatus value.
-
getLeaseState
Get the leaseState property: Possible values include: 'available', 'leased', 'expired', 'breaking', 'broken'.- Returns:
- the leaseState value.
-
getLeaseDuration
Get the leaseDuration property: Possible values include: 'infinite', 'fixed'.- Returns:
- the leaseDuration value.
-
getProtocols
Get the enabledProtocols property: The enabledProtocols property.- Returns:
- the enabledProtocols value.
-
getRootSquash
Get the rootSquash property: Possible values include: 'NoRootSquash', 'RootSquash', 'AllSquash'.- Returns:
- the rootSquash value.
-
getMetadata
Get the metadata property: The metadata property.- Returns:
- the metadata value.
-
setMetadata
Set the metadata property: The metadata property.- Parameters:
metadata
- the metadata value to set.- Returns:
- the ShareProperties object itself.
-
isSnapshotVirtualDirectoryAccessEnabled
Get 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.
-
setSnapshotVirtualDirectoryAccessEnabled
public ShareProperties setSnapshotVirtualDirectoryAccessEnabled(Boolean enableSnapshotVirtualDirectoryAccess) Set 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:
enableSnapshotVirtualDirectoryAccess
- the enableSnapshotVirtualDirectoryAccess value to set.- Returns:
- the ShareProperties object itself.
-
isPaidBurstingEnabled
Get the enablePaidBursting property: Optional. Supported in version 2023-11-03 and above. Only applicable for premium file storage accounts. This property enables paid bursting on premium file storage accounts.- Returns:
- the enablePaidBursting value.
-
setPaidBurstingEnabled
Set the enablePaidBursting property: Optional. Supported in version 2023-11-03 and above. Only applicable for premium file storage accounts. This property enables paid bursting on premium file storage accounts.- Parameters:
enablePaidBursting
- the enablePaidBursting value to set.- Returns:
- the ShareSetPropertiesOptions object itself.
-
getPaidBurstingMaxIops
Get the paidBurstingMaxIops property: Optional. Supported in version 2023-11-03 and above. Only applicable for premium file storage accounts. Default if not specified is the maximum IOPS the file share can support. Current maximum for a file share is 102,400 IOPS.- Returns:
- the paidBurstingMaxIops value.
-
setPaidBurstingMaxIops
Set the paidBurstingMaxIops property: Optional. Supported in version 2023-11-03 and above. Only applicable for premium file storage accounts. Default if not specified is the maximum IOPS the file share can support. Current maximum for a file share is 102,400 IOPS.- Parameters:
paidBurstingMaxIops
- the paidBurstingMaxIops value to set.- Returns:
- the ShareSetPropertiesOptions object itself.
-
getPaidBurstingMaxBandwidthMibps
Get the paidBurstingMaxBandwidthMibps property: Optional. Supported in version 2023-11-03 and above. Only applicable for premium file storage accounts. Default if not specified is the maximum throughput the file share can support. Current maximum for a file share is 10,340 MiB/sec.- Returns:
- the paidBurstingMaxBandwidthMibps value.
-
setPaidBurstingMaxBandwidthMibps
Set the paidBurstingMaxBandwidthMibps property: Optional. Supported in version 2023-11-03 and above. Only applicable for premium file storage accounts. Default if not specified is the maximum throughput the file share can support. Current maximum for a file share is 10,340 MiB/sec.- Parameters:
paidBurstingMaxBandwidthMibps
- the paidBurstingMaxBandwidthMibps value to set.- Returns:
- the ShareSetPropertiesOptions object itself.
-
getIncludedBurstIops
Get the includedBurstIops property. Only applicable to provisioned v2 storage accounts. The calculated burst IOPS of the share.- Returns:
- the includedBurstIops value itself.
-
setIncludedBurstIops
Set the includedBurstIops property. Only applicable to provisioned v2 storage accounts. The calculated burst IOPS of the share.- Parameters:
includedBurstIops
- the includedBurstIops value to set.- Returns:
- the ShareProperties object itself.
-
getMaxBurstCreditsForIops
Get the maxBurstCreditsForIops property. Only applicable to provisioned v2 storage accounts. The calculated maximum burst credits. This is not the current burst credit level, but the maximum burst credits the share can have.- Returns:
- the maxBurstCreditsForIops value itself.
-
setMaxBurstCreditsForIops
Set the maxBurstCreditsForIops property. Only applicable to provisioned v2 storage accounts. The calculated maximum burst credits. This is not the current burst credit level, but the maximum burst credits the share can have.- Parameters:
maxBurstCreditsForIops
- the maxBurstCreditsForIops value to set.- Returns:
- the ShareProperties object itself.
-
getNextAllowedProvisionedIopsDowngradeTime
Get the nextAllowedProvisionedIopsDowngradeTime property. Only applicable to provisioned v2 storage accounts. The time the share can be downgraded to lower provisioned IOPs.- Returns:
- the nextAllowedProvisionedIopsDowngradeTime value itself.
-
setNextAllowedProvisionedIopsDowngradeTime
public ShareProperties setNextAllowedProvisionedIopsDowngradeTime(OffsetDateTime nextAllowedProvisionedIopsDowngradeTime) Set the nextAllowedProvisionedIopsDowngradeTime property. Only applicable to provisioned v2 storage accounts. The time the share can be downgraded to lower provisioned IOPs.- Parameters:
nextAllowedProvisionedIopsDowngradeTime
- the nextAllowedProvisionedIopsDowngradeTime value to set.- Returns:
- the ShareProperties object itself.
-
getNextAllowedProvisionedBandwidthDowngradeTime
Get the nextAllowedProvisionedBandwidthDowngradeTime property. Only applicable to provisioned v2 storage accounts. The time the share can be downgraded to lower provisioned bandwidth.- Returns:
- the nextAllowedProvisionedBandwidthDowngradeTime value itself.
-
setNextAllowedProvisionedBandwidthDowngradeTime
public ShareProperties setNextAllowedProvisionedBandwidthDowngradeTime(OffsetDateTime nextAllowedProvisionedBandwidthDowngradeTime) Set the nextAllowedProvisionedBandwidthDowngradeTime property. Only applicable to provisioned v2 storage accounts. The time the share can be downgraded to lower provisioned bandwidth.- Parameters:
nextAllowedProvisionedBandwidthDowngradeTime
- the nextAllowedProvisionedBandwidthDowngradeTime value to set.- Returns:
- the ShareProperties object itself.
-
toXml
- Specified by:
toXml
in interfacecom.azure.xml.XmlSerializable<ShareProperties>
- Throws:
XMLStreamException
-
toXml
public com.azure.xml.XmlWriter toXml(com.azure.xml.XmlWriter xmlWriter, String rootElementName) throws XMLStreamException - Specified by:
toXml
in interfacecom.azure.xml.XmlSerializable<ShareProperties>
- Throws:
XMLStreamException
-
fromXml
Reads an instance of ShareProperties from the XmlReader.- Parameters:
xmlReader
- The XmlReader being read.- Returns:
- An instance of ShareProperties if the XmlReader was pointing to an instance of it, or null if it was pointing to XML null.
- Throws:
IllegalStateException
- If the deserialized XML object was missing any required properties.XMLStreamException
- If an error occurs while reading the ShareProperties.
-
fromXml
public static ShareProperties fromXml(com.azure.xml.XmlReader xmlReader, String rootElementName) throws XMLStreamException Reads an instance of ShareProperties from the XmlReader.- Parameters:
xmlReader
- The XmlReader being read.rootElementName
- Optional root element name to override the default defined by the model. Used to support cases where the model can deserialize from different root element names.- Returns:
- An instance of ShareProperties if the XmlReader was pointing to an instance of it, or null if it was pointing to XML null.
- Throws:
IllegalStateException
- If the deserialized XML object was missing any required properties.XMLStreamException
- If an error occurs while reading the ShareProperties.
-
getProvisionedBandwidthMiBps()