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 Details

    • BackupProperties

      public BackupProperties()
      Creates an instance of BackupProperties class.
  • Method Details

    • backupId

      public String backupId()
      Get the backupId property: UUID v4 used to identify the Backup.
      Returns:
      the backupId value.
    • creationDate

      public OffsetDateTime creationDate()
      Get the creationDate property: The creation date of the backup.
      Returns:
      the creationDate value.
    • snapshotCreationDate

      public OffsetDateTime snapshotCreationDate()
      Get the snapshotCreationDate property: The snapshot creation date of the backup.
      Returns:
      the snapshotCreationDate value.
    • completionDate

      public OffsetDateTime completionDate()
      Get the completionDate property: The completion date of the backup.
      Returns:
      the completionDate value.
    • provisioningState

      public String provisioningState()
      Get the provisioningState property: Azure lifecycle management.
      Returns:
      the provisioningState value.
    • size

      public Long size()
      Get the size property: Size of backup in bytes.
      Returns:
      the size value.
    • label

      public String label()
      Get the label property: Label for backup.
      Returns:
      the label value.
    • withLabel

      public BackupProperties withLabel(String label)
      Set the label property: Label for backup.
      Parameters:
      label - the label value to set.
      Returns:
      the BackupProperties object itself.
    • backupType

      public BackupType backupType()
      Get the backupType property: Type of backup Manual or Scheduled.
      Returns:
      the backupType value.
    • failureReason

      public String failureReason()
      Get the failureReason property: Failure reason.
      Returns:
      the failureReason value.
    • volumeResourceId

      public String volumeResourceId()
      Get the volumeResourceId property: ResourceId used to identify the Volume.
      Returns:
      the volumeResourceId value.
    • withVolumeResourceId

      public BackupProperties withVolumeResourceId(String volumeResourceId)
      Set the volumeResourceId property: ResourceId used to identify the Volume.
      Parameters:
      volumeResourceId - the volumeResourceId value to set.
      Returns:
      the BackupProperties object itself.
    • useExistingSnapshot

      public Boolean 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

      public BackupProperties withUseExistingSnapshot(Boolean useExistingSnapshot)
      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

      public String snapshotName()
      Get the snapshotName property: The name of the snapshot.
      Returns:
      the snapshotName value.
    • withSnapshotName

      public BackupProperties withSnapshotName(String snapshotName)
      Set the snapshotName property: The name of the snapshot.
      Parameters:
      snapshotName - the snapshotName value to set.
      Returns:
      the BackupProperties object itself.
    • backupPolicyResourceId

      public String backupPolicyResourceId()
      Get the backupPolicyResourceId property: ResourceId used to identify the backup policy.
      Returns:
      the backupPolicyResourceId value.
    • isLargeVolume

      public Boolean 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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<BackupProperties>
      Throws:
      IOException
    • fromJson

      public static BackupProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.