Class BackupPatch
- java.lang.Object
-
- com.azure.resourcemanager.netapp.models.BackupPatch
-
public final class BackupPatch extends Object
Backup patch.
-
-
Constructor Summary
Constructors Constructor Description BackupPatch()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
backupId()
Get the backupId property: backupId UUID v4 used to identify the Backup.BackupType
backupType()
Get the backupType property: backupType Type of backup Manual or Scheduled.OffsetDateTime
creationDate()
Get the creationDate property: creationDate The creation date of the backup.String
failureReason()
Get the failureReason property: Failure reason.String
label()
Get the label property: Label for backup.String
provisioningState()
Get the provisioningState property: Azure lifecycle management.Long
size()
Get the size property: Size of backup.Map<String,String>
tags()
Get the tags property: Resource tags.Boolean
useExistingSnapshot()
Get the useExistingSnapshot property: Manual backup an already existing snapshot.void
validate()
Validates the instance.String
volumeName()
Get the volumeName property: Volume name.BackupPatch
withLabel(String label)
Set the label property: Label for backup.BackupPatch
withTags(Map<String,String> tags)
Set the tags property: Resource tags.BackupPatch
withUseExistingSnapshot(Boolean useExistingSnapshot)
Set the useExistingSnapshot property: Manual backup an already existing snapshot.
-
-
-
Method Detail
-
tags
public Map<String,String> tags()
Get the tags property: Resource tags.- Returns:
- the tags value.
-
withTags
public BackupPatch withTags(Map<String,String> tags)
Set the tags property: Resource tags.- Parameters:
tags
- the tags value to set.- Returns:
- the BackupPatch object itself.
-
backupId
public String backupId()
Get the backupId property: backupId UUID v4 used to identify the Backup.- Returns:
- the backupId value.
-
creationDate
public OffsetDateTime creationDate()
Get the creationDate property: creationDate The creation date of the backup.- Returns:
- the creationDate 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.- Returns:
- the size value.
-
label
public String label()
Get the label property: Label for backup.- Returns:
- the label value.
-
withLabel
public BackupPatch withLabel(String label)
Set the label property: Label for backup.- Parameters:
label
- the label value to set.- Returns:
- the BackupPatch object itself.
-
backupType
public BackupType backupType()
Get the backupType property: backupType Type of backup Manual or Scheduled.- Returns:
- the backupType value.
-
failureReason
public String failureReason()
Get the failureReason property: Failure reason.- Returns:
- the failureReason value.
-
volumeName
public String volumeName()
Get the volumeName property: Volume name.- Returns:
- the volumeName value.
-
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 BackupPatch 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 BackupPatch object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-