Class BackupProperties
java.lang.Object
com.azure.resourcemanager.netapp.fluent.models.BackupProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<BackupProperties>
public final class BackupProperties
extends Object
implements com.azure.json.JsonSerializable<BackupProperties>
Backup properties.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbackupId()
Get the backupId property: UUID v4 used to identify the Backup.Get the backupPolicyResourceId property: ResourceId used to identify the backup policy.Get the backupType property: Type of backup Manual or Scheduled.Get the completionDate property: The completion date of the backup.Get the creationDate property: The creation date of the backup.Get the failureReason property: Failure reason.static BackupProperties
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of BackupProperties from the JsonReader.Get the isLargeVolume property: Specifies if the backup is for a large volume.label()
Get the label property: Label for backup.Get the provisioningState property: Azure lifecycle management.size()
Get the size property: Size of backup in bytes.Get the snapshotCreationDate property: The snapshot creation date of the backup.Get the snapshotName property: The name of the snapshot.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) Get the useExistingSnapshot property: Manual backup an already existing snapshot.void
validate()
Validates the instance.Get the volumeResourceId property: ResourceId used to identify the Volume.Set the label property: Label for backup.withSnapshotName
(String snapshotName) Set the snapshotName property: The name of the snapshot.withUseExistingSnapshot
(Boolean useExistingSnapshot) Set the useExistingSnapshot property: Manual backup an already existing snapshot.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
-
BackupProperties
public BackupProperties()Creates an instance of BackupProperties class.
-
-
Method Details
-
backupId
Get the backupId property: UUID v4 used to identify the Backup.- Returns:
- the backupId value.
-
creationDate
Get the creationDate property: The creation date of the backup.- Returns:
- the creationDate value.
-
snapshotCreationDate
Get the snapshotCreationDate property: The snapshot creation date of the backup.- Returns:
- the snapshotCreationDate value.
-
completionDate
Get the completionDate property: The completion date of the backup.- Returns:
- the completionDate value.
-
provisioningState
Get the provisioningState property: Azure lifecycle management.- Returns:
- the provisioningState value.
-
size
Get the size property: Size of backup in bytes.- Returns:
- the size value.
-
label
Get the label property: Label for backup.- Returns:
- the label value.
-
withLabel
Set the label property: Label for backup.- Parameters:
label
- the label value to set.- Returns:
- the BackupProperties object itself.
-
backupType
Get the backupType property: Type of backup Manual or Scheduled.- Returns:
- the backupType value.
-
failureReason
Get the failureReason property: Failure reason.- Returns:
- the failureReason value.
-
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 BackupProperties object itself.
-
useExistingSnapshot
Get the useExistingSnapshot property: Manual backup an already existing snapshot. This will always be false for scheduled backups and true/false for manual backups.- Returns:
- the useExistingSnapshot value.
-
withUseExistingSnapshot
Set the useExistingSnapshot property: Manual backup an already existing snapshot. This will always be false for scheduled backups and true/false for manual backups.- Parameters:
useExistingSnapshot
- the useExistingSnapshot value to set.- Returns:
- the BackupProperties object itself.
-
snapshotName
Get the snapshotName property: The name of the snapshot.- Returns:
- the snapshotName value.
-
withSnapshotName
Set the snapshotName property: The name of the snapshot.- Parameters:
snapshotName
- the snapshotName value to set.- Returns:
- the BackupProperties object itself.
-
backupPolicyResourceId
Get the backupPolicyResourceId property: ResourceId used to identify the backup policy.- Returns:
- the backupPolicyResourceId value.
-
isLargeVolume
Get the isLargeVolume property: Specifies if the backup is for a large volume.- Returns:
- the isLargeVolume 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<BackupProperties>
- Throws:
IOException
-
fromJson
Reads an instance of BackupProperties from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of BackupProperties 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 BackupProperties.
-