Class FileServiceUsageProperties

java.lang.Object
com.azure.resourcemanager.storage.models.FileServiceUsageProperties
All Implemented Interfaces:
com.azure.json.JsonSerializable<FileServiceUsageProperties>

public final class FileServiceUsageProperties extends Object implements com.azure.json.JsonSerializable<FileServiceUsageProperties>
File service usage in storage account including account limits, file share limits and constants used in recommendations and bursting formula.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance of FileServiceUsageProperties class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the burstingConstants property: Constants used for calculating included burst IOPS and maximum burst credits for IOPS for a file share in the storage account.
    Get the fileShareLimits property: Minimum and maximum provisioned storage, IOPS and bandwidth limits for a file share in the storage account.
    Get the fileShareRecommendations property: Constants used for calculating recommended provisioned IOPS and bandwidth for a file share in the storage account.
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of FileServiceUsageProperties from the JsonReader.
    Get the storageAccountLimits property: Maximum provisioned storage, IOPS, bandwidth and number of file shares limits for the storage account.
    Get the storageAccountUsage property: Usage of provisioned storage, IOPS, bandwidth and number of file shares across all live shares and soft-deleted shares in the account.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    void
    Validates the instance.

    Methods inherited from class 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

    • FileServiceUsageProperties

      public FileServiceUsageProperties()
      Creates an instance of FileServiceUsageProperties class.
  • Method Details

    • storageAccountLimits

      public AccountLimits storageAccountLimits()
      Get the storageAccountLimits property: Maximum provisioned storage, IOPS, bandwidth and number of file shares limits for the storage account.
      Returns:
      the storageAccountLimits value.
    • fileShareLimits

      public FileShareLimits fileShareLimits()
      Get the fileShareLimits property: Minimum and maximum provisioned storage, IOPS and bandwidth limits for a file share in the storage account.
      Returns:
      the fileShareLimits value.
    • fileShareRecommendations

      public FileShareRecommendations fileShareRecommendations()
      Get the fileShareRecommendations property: Constants used for calculating recommended provisioned IOPS and bandwidth for a file share in the storage account.
      Returns:
      the fileShareRecommendations value.
    • burstingConstants

      public BurstingConstants burstingConstants()
      Get the burstingConstants property: Constants used for calculating included burst IOPS and maximum burst credits for IOPS for a file share in the storage account.
      Returns:
      the burstingConstants value.
    • storageAccountUsage

      public AccountUsage storageAccountUsage()
      Get the storageAccountUsage property: Usage of provisioned storage, IOPS, bandwidth and number of file shares across all live shares and soft-deleted shares in the account.
      Returns:
      the storageAccountUsage value.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<FileServiceUsageProperties>
      Throws:
      IOException
    • fromJson

      public static FileServiceUsageProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of FileServiceUsageProperties from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of FileServiceUsageProperties 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 FileServiceUsageProperties.