Class BackupInner
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.netapp.fluent.models.BackupInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>
public final class BackupInner
extends com.azure.core.management.ProxyResource
Backup under a Backup Vault.
-
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 BackupInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of BackupInner from the JsonReader.id()Get the id property: Fully qualified resource Id for the resource.Get the isLargeVolume property: Specifies if the backup is for a large volume.label()Get the label property: Label for backup.name()Get the name property: The name of the resource.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.core.management.SystemDataGet the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: The type of the resource.Get the useExistingSnapshot property: Manual backup an already existing snapshot.voidvalidate()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, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
BackupInner
public BackupInner()Creates an instance of BackupInner class.
-
-
Method Details
-
systemData
public com.azure.core.management.SystemData systemData()Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.- Returns:
- the systemData value.
-
type
Get the type property: The type of the resource.- Overrides:
typein classcom.azure.core.management.ProxyResource- Returns:
- the type value.
-
name
Get the name property: The name of the resource.- Overrides:
namein classcom.azure.core.management.ProxyResource- Returns:
- the name value.
-
id
Get the id property: Fully qualified resource Id for the resource.- Overrides:
idin classcom.azure.core.management.ProxyResource- Returns:
- the id value.
-
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 BackupInner 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 BackupInner 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 BackupInner 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 BackupInner 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:
toJsonin interfacecom.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>- Overrides:
toJsonin classcom.azure.core.management.ProxyResource- Throws:
IOException
-
fromJson
Reads an instance of BackupInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of BackupInner 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 BackupInner.
-