Class SubvolumeModelProperties
java.lang.Object
com.azure.resourcemanager.netapp.fluent.models.SubvolumeModelProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<SubvolumeModelProperties>
public final class SubvolumeModelProperties
extends Object
implements com.azure.json.JsonSerializable<SubvolumeModelProperties>
Properties which represents actual subvolume model which is stored as a file in the system.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of SubvolumeModelProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the accessedTimestamp property: Most recent access time and date.Get the bytesUsed property: Bytes used.Get the changedTimestamp property: Most recent change time and date.Get the creationTimestamp property: Creation time and date.static SubvolumeModelProperties
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of SubvolumeModelProperties from the JsonReader.Get the modifiedTimestamp property: Most recent modification time and date.Get the parentPath property: Path to the parent subvolume.path()
Get the path property: Path to the subvolume.Get the permissions property: Permissions of the subvolume.Get the provisioningState property: Azure lifecycle management.size()
Get the size property: Size of subvolume.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withAccessedTimestamp
(OffsetDateTime accessedTimestamp) Set the accessedTimestamp property: Most recent access time and date.withBytesUsed
(Long bytesUsed) Set the bytesUsed property: Bytes used.withChangedTimestamp
(OffsetDateTime changedTimestamp) Set the changedTimestamp property: Most recent change time and date.withCreationTimestamp
(OffsetDateTime creationTimestamp) Set the creationTimestamp property: Creation time and date.withModifiedTimestamp
(OffsetDateTime modifiedTimestamp) Set the modifiedTimestamp property: Most recent modification time and date.withParentPath
(String parentPath) Set the parentPath property: Path to the parent subvolume.Set the path property: Path to the subvolume.withPermissions
(String permissions) Set the permissions property: Permissions of the subvolume.withProvisioningState
(String provisioningState) Set the provisioningState property: Azure lifecycle management.Set the size property: Size of subvolume.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
-
SubvolumeModelProperties
public SubvolumeModelProperties()Creates an instance of SubvolumeModelProperties 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 SubvolumeModelProperties object itself.
-
parentPath
Get the parentPath property: Path to the parent subvolume.- Returns:
- the parentPath value.
-
withParentPath
Set the parentPath property: Path to the parent subvolume.- Parameters:
parentPath
- the parentPath value to set.- Returns:
- the SubvolumeModelProperties object itself.
-
size
Get the size property: Size of subvolume.- Returns:
- the size value.
-
withSize
Set the size property: Size of subvolume.- Parameters:
size
- the size value to set.- Returns:
- the SubvolumeModelProperties object itself.
-
bytesUsed
Get the bytesUsed property: Bytes used.- Returns:
- the bytesUsed value.
-
withBytesUsed
Set the bytesUsed property: Bytes used.- Parameters:
bytesUsed
- the bytesUsed value to set.- Returns:
- the SubvolumeModelProperties object itself.
-
permissions
Get the permissions property: Permissions of the subvolume.- Returns:
- the permissions value.
-
withPermissions
Set the permissions property: Permissions of the subvolume.- Parameters:
permissions
- the permissions value to set.- Returns:
- the SubvolumeModelProperties object itself.
-
creationTimestamp
Get the creationTimestamp property: Creation time and date.- Returns:
- the creationTimestamp value.
-
withCreationTimestamp
Set the creationTimestamp property: Creation time and date.- Parameters:
creationTimestamp
- the creationTimestamp value to set.- Returns:
- the SubvolumeModelProperties object itself.
-
accessedTimestamp
Get the accessedTimestamp property: Most recent access time and date.- Returns:
- the accessedTimestamp value.
-
withAccessedTimestamp
Set the accessedTimestamp property: Most recent access time and date.- Parameters:
accessedTimestamp
- the accessedTimestamp value to set.- Returns:
- the SubvolumeModelProperties object itself.
-
modifiedTimestamp
Get the modifiedTimestamp property: Most recent modification time and date.- Returns:
- the modifiedTimestamp value.
-
withModifiedTimestamp
Set the modifiedTimestamp property: Most recent modification time and date.- Parameters:
modifiedTimestamp
- the modifiedTimestamp value to set.- Returns:
- the SubvolumeModelProperties object itself.
-
changedTimestamp
Get the changedTimestamp property: Most recent change time and date.- Returns:
- the changedTimestamp value.
-
withChangedTimestamp
Set the changedTimestamp property: Most recent change time and date.- Parameters:
changedTimestamp
- the changedTimestamp value to set.- Returns:
- the SubvolumeModelProperties object itself.
-
provisioningState
Get the provisioningState property: Azure lifecycle management.- Returns:
- the provisioningState value.
-
withProvisioningState
Set the provisioningState property: Azure lifecycle management.- Parameters:
provisioningState
- the provisioningState value to set.- Returns:
- the SubvolumeModelProperties 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<SubvolumeModelProperties>
- Throws:
IOException
-
fromJson
public static SubvolumeModelProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of SubvolumeModelProperties from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of SubvolumeModelProperties 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 SubvolumeModelProperties.
-