Class SubvolumePatchParams
java.lang.Object
com.azure.resourcemanager.netapp.fluent.models.SubvolumePatchParams
- All Implemented Interfaces:
com.azure.json.JsonSerializable<SubvolumePatchParams>
public final class SubvolumePatchParams
extends Object
implements com.azure.json.JsonSerializable<SubvolumePatchParams>
Parameters with which a subvolume can be updated.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SubvolumePatchParams
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of SubvolumePatchParams from the JsonReader.path()
Get the path property: path to the subvolume.size()
Get the size property: Truncate subvolume to the provided size in bytes.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.Set the path property: path to the subvolume.Set the size property: Truncate subvolume to the provided size in bytes.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
-
SubvolumePatchParams
public SubvolumePatchParams()Creates an instance of SubvolumePatchParams class.
-
-
Method Details
-
size
Get the size property: Truncate subvolume to the provided size in bytes.- Returns:
- the size value.
-
withSize
Set the size property: Truncate subvolume to the provided size in bytes.- Parameters:
size
- the size value to set.- Returns:
- the SubvolumePatchParams object itself.
-
path
Get the path property: path to the subvolume.- Returns:
- the path value.
-
withPath
Set the path property: path to the subvolume.- Parameters:
path
- the path value to set.- Returns:
- the SubvolumePatchParams 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<SubvolumePatchParams>
- Throws:
IOException
-
fromJson
public static SubvolumePatchParams fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of SubvolumePatchParams from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of SubvolumePatchParams 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 SubvolumePatchParams.
-