Class VolumeBackups
java.lang.Object
com.azure.resourcemanager.netapp.models.VolumeBackups
- All Implemented Interfaces:
com.azure.json.JsonSerializable<VolumeBackups>
public final class VolumeBackups
extends Object
implements com.azure.json.JsonSerializable<VolumeBackups>
Volume details using the backup policy.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the backupsCount property: Total count of backups for volume.static VolumeBackups
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of VolumeBackups from the JsonReader.Get the policyEnabled property: Policy enabled.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.Get the volumeName property: Volume name.Get the volumeResourceId property: ResourceId used to identify the Volume.withBackupsCount
(Integer backupsCount) Set the backupsCount property: Total count of backups for volume.withPolicyEnabled
(Boolean policyEnabled) Set the policyEnabled property: Policy enabled.withVolumeName
(String volumeName) Set the volumeName property: Volume name.withVolumeResourceId
(String volumeResourceId) Set the volumeResourceId property: ResourceId used to identify the Volume.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
-
VolumeBackups
public VolumeBackups()Creates an instance of VolumeBackups class.
-
-
Method Details
-
volumeName
Get the volumeName property: Volume name.- Returns:
- the volumeName value.
-
withVolumeName
Set the volumeName property: Volume name.- Parameters:
volumeName
- the volumeName value to set.- Returns:
- the VolumeBackups object itself.
-
volumeResourceId
Get the volumeResourceId property: ResourceId used to identify the Volume.- Returns:
- the volumeResourceId value.
-
withVolumeResourceId
Set the volumeResourceId property: ResourceId used to identify the Volume.- Parameters:
volumeResourceId
- the volumeResourceId value to set.- Returns:
- the VolumeBackups object itself.
-
backupsCount
Get the backupsCount property: Total count of backups for volume.- Returns:
- the backupsCount value.
-
withBackupsCount
Set the backupsCount property: Total count of backups for volume.- Parameters:
backupsCount
- the backupsCount value to set.- Returns:
- the VolumeBackups object itself.
-
policyEnabled
Get the policyEnabled property: Policy enabled.- Returns:
- the policyEnabled value.
-
withPolicyEnabled
Set the policyEnabled property: Policy enabled.- Parameters:
policyEnabled
- the policyEnabled value to set.- Returns:
- the VolumeBackups 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<VolumeBackups>
- Throws:
IOException
-
fromJson
Reads an instance of VolumeBackups from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of VolumeBackups 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 VolumeBackups.
-