Class VolumeQuotaRulesProperties
java.lang.Object
com.azure.resourcemanager.netapp.fluent.models.VolumeQuotaRulesProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<VolumeQuotaRulesProperties>
public final class VolumeQuotaRulesProperties
extends Object
implements com.azure.json.JsonSerializable<VolumeQuotaRulesProperties>
Volume Quota Rule properties.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of VolumeQuotaRulesProperties class. -
Method Summary
Modifier and TypeMethodDescriptionstatic VolumeQuotaRulesProperties
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of VolumeQuotaRulesProperties from the JsonReader.Get the provisioningState property: Gets the status of the VolumeQuotaRule at the time the operation was called.Get the quotaSizeInKiBs property: Size of quota.Get the quotaTarget property: UserID/GroupID/SID based on the quota target type.Get the quotaType property: Type of quota.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withQuotaSizeInKiBs
(Long quotaSizeInKiBs) Set the quotaSizeInKiBs property: Size of quota.withQuotaTarget
(String quotaTarget) Set the quotaTarget property: UserID/GroupID/SID based on the quota target type.withQuotaType
(Type quotaType) Set the quotaType property: Type of quota.Methods inherited from class java.lang.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
-
VolumeQuotaRulesProperties
public VolumeQuotaRulesProperties()Creates an instance of VolumeQuotaRulesProperties class.
-
-
Method Details
-
provisioningState
Get the provisioningState property: Gets the status of the VolumeQuotaRule at the time the operation was called.- Returns:
- the provisioningState value.
-
quotaSizeInKiBs
Get the quotaSizeInKiBs property: Size of quota.- Returns:
- the quotaSizeInKiBs value.
-
withQuotaSizeInKiBs
Set the quotaSizeInKiBs property: Size of quota.- Parameters:
quotaSizeInKiBs
- the quotaSizeInKiBs value to set.- Returns:
- the VolumeQuotaRulesProperties object itself.
-
quotaType
Get the quotaType property: Type of quota.- Returns:
- the quotaType value.
-
withQuotaType
Set the quotaType property: Type of quota.- Parameters:
quotaType
- the quotaType value to set.- Returns:
- the VolumeQuotaRulesProperties object itself.
-
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
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 VolumeQuotaRulesProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<VolumeQuotaRulesProperties>
- Throws:
IOException
-
fromJson
public static VolumeQuotaRulesProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of VolumeQuotaRulesProperties from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of VolumeQuotaRulesProperties 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 VolumeQuotaRulesProperties.
-