Class VolumeQuotaRuleInner
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.core.management.Resource
com.azure.resourcemanager.netapp.fluent.models.VolumeQuotaRuleInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>
public final class VolumeQuotaRuleInner
extends com.azure.core.management.Resource
Quota Rule of a Volume.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic VolumeQuotaRuleInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of VolumeQuotaRuleInner from the JsonReader.id()Get the id property: Fully qualified resource Id for the resource.name()Get the name property: The name of the resource.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.core.management.SystemDataGet the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: The type of the resource.voidvalidate()Validates the instance.withLocation(String location) 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 com.azure.core.management.Resource
location, tagsMethods 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
-
VolumeQuotaRuleInner
public VolumeQuotaRuleInner()Creates an instance of VolumeQuotaRuleInner class.
-
-
Method Details
-
systemData
public com.azure.core.management.SystemData systemData()Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.- Returns:
- the systemData value.
-
type
Get the type property: The type of the resource.- Overrides:
typein classcom.azure.core.management.ProxyResource- Returns:
- the type value.
-
name
Get the name property: The name of the resource.- Overrides:
namein classcom.azure.core.management.ProxyResource- Returns:
- the name value.
-
id
Get the id property: Fully qualified resource Id for the resource.- Overrides:
idin classcom.azure.core.management.ProxyResource- Returns:
- the id value.
-
withLocation
- Overrides:
withLocationin classcom.azure.core.management.Resource
-
withTags
- Overrides:
withTagsin classcom.azure.core.management.Resource
-
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 VolumeQuotaRuleInner 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 VolumeQuotaRuleInner 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 VolumeQuotaRuleInner object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>- Overrides:
toJsonin classcom.azure.core.management.Resource- Throws:
IOException
-
fromJson
public static VolumeQuotaRuleInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of VolumeQuotaRuleInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of VolumeQuotaRuleInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the VolumeQuotaRuleInner.
-