Class VolumeQuotaRulePatch

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

public final class VolumeQuotaRulePatch extends Object implements com.azure.json.JsonSerializable<VolumeQuotaRulePatch>
Patchable Quota Rule of a Volume.
  • Constructor Details

    • VolumeQuotaRulePatch

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

    • tags

      public Map<String,String> tags()
      Get the tags property: Resource tags.
      Returns:
      the tags value.
    • withTags

      public VolumeQuotaRulePatch withTags(Map<String,String> tags)
      Set the tags property: Resource tags.
      Parameters:
      tags - the tags value to set.
      Returns:
      the VolumeQuotaRulePatch object itself.
    • provisioningState

      public ProvisioningState provisioningState()
      Get the provisioningState property: Gets the status of the VolumeQuotaRule at the time the operation was called.
      Returns:
      the provisioningState value.
    • quotaSizeInKiBs

      public Long quotaSizeInKiBs()
      Get the quotaSizeInKiBs property: Size of quota.
      Returns:
      the quotaSizeInKiBs value.
    • withQuotaSizeInKiBs

      public VolumeQuotaRulePatch withQuotaSizeInKiBs(Long quotaSizeInKiBs)
      Set the quotaSizeInKiBs property: Size of quota.
      Parameters:
      quotaSizeInKiBs - the quotaSizeInKiBs value to set.
      Returns:
      the VolumeQuotaRulePatch object itself.
    • quotaType

      public Type quotaType()
      Get the quotaType property: Type of quota.
      Returns:
      the quotaType value.
    • withQuotaType

      public VolumeQuotaRulePatch withQuotaType(Type quotaType)
      Set the quotaType property: Type of quota.
      Parameters:
      quotaType - the quotaType value to set.
      Returns:
      the VolumeQuotaRulePatch object itself.
    • quotaTarget

      public String quotaTarget()
      Get the quotaTarget property: UserID/GroupID/SID based on the quota target type. UserID and groupID can be found by running ‘id’ or ‘getent’ command for the user or group and SID can be found by running <wmic useraccount where name='user-name' get sid>.
      Returns:
      the quotaTarget value.
    • withQuotaTarget

      public VolumeQuotaRulePatch withQuotaTarget(String quotaTarget)
      Set the quotaTarget property: UserID/GroupID/SID based on the quota target type. UserID and groupID can be found by running ‘id’ or ‘getent’ command for the user or group and SID can be found by running <wmic useraccount where name='user-name' get sid>.
      Parameters:
      quotaTarget - the quotaTarget value to set.
      Returns:
      the VolumeQuotaRulePatch object itself.
    • 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<VolumeQuotaRulePatch>
      Throws:
      IOException
    • fromJson

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