Class SubvolumeProperties
java.lang.Object
com.azure.resourcemanager.netapp.fluent.models.SubvolumeProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<SubvolumeProperties>
public final class SubvolumeProperties
extends Object
implements com.azure.json.JsonSerializable<SubvolumeProperties>
This represents path associated with the subvolume.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SubvolumeProperties
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of SubvolumeProperties from the JsonReader.Get the parentPath property: parent path to the subvolume.path()
Get the path property: Path to the subvolume.Get the provisioningState property: Azure lifecycle management.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.withParentPath
(String parentPath) Set the parentPath property: parent path to the subvolume.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
-
SubvolumeProperties
public SubvolumeProperties()Creates an instance of SubvolumeProperties class.
-
-
Method Details
-
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 SubvolumeProperties object itself.
-
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 SubvolumeProperties object itself.
-
parentPath
Get the parentPath property: parent path to the subvolume.- Returns:
- the parentPath value.
-
withParentPath
Set the parentPath property: parent path to the subvolume.- Parameters:
parentPath
- the parentPath value to set.- Returns:
- the SubvolumeProperties object itself.
-
provisioningState
Get the provisioningState property: Azure lifecycle management.- Returns:
- the provisioningState value.
-
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<SubvolumeProperties>
- Throws:
IOException
-
fromJson
Reads an instance of SubvolumeProperties from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of SubvolumeProperties 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 SubvolumeProperties.
-