Class AzureVmWorkloadSqlDatabaseProtectableItem
- java.lang.Object
-
- com.azure.resourcemanager.recoveryservicesbackup.models.WorkloadProtectableItem
-
- com.azure.resourcemanager.recoveryservicesbackup.models.AzureVmWorkloadProtectableItem
-
- com.azure.resourcemanager.recoveryservicesbackup.models.AzureVmWorkloadSqlDatabaseProtectableItem
-
public final class AzureVmWorkloadSqlDatabaseProtectableItem extends AzureVmWorkloadProtectableItem
Azure VM workload-specific protectable item representing SQL Database.
-
-
Constructor Summary
Constructors Constructor Description AzureVmWorkloadSqlDatabaseProtectableItem()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
validate()
Validates the instance.AzureVmWorkloadSqlDatabaseProtectableItem
withBackupManagementType(String backupManagementType)
Set the backupManagementType property: Type of backup management to backup an item.AzureVmWorkloadSqlDatabaseProtectableItem
withFriendlyName(String friendlyName)
Set the friendlyName property: Friendly name of the backup item.AzureVmWorkloadSqlDatabaseProtectableItem
withIsAutoProtectable(Boolean isAutoProtectable)
Set the isAutoProtectable property: Indicates if protectable item is auto-protectable.AzureVmWorkloadSqlDatabaseProtectableItem
withIsAutoProtected(Boolean isAutoProtected)
Set the isAutoProtected property: Indicates if protectable item is auto-protected.AzureVmWorkloadSqlDatabaseProtectableItem
withParentName(String parentName)
Set the parentName property: Name for instance or AG.AzureVmWorkloadSqlDatabaseProtectableItem
withParentUniqueName(String parentUniqueName)
Set the parentUniqueName property: Parent Unique Name is added to provide the service formatted URI Name of the Parent Only Applicable for data bases where the parent would be either Instance or a SQL AG.AzureVmWorkloadSqlDatabaseProtectableItem
withPrebackupvalidation(PreBackupValidation prebackupvalidation)
Set the prebackupvalidation property: Pre-backup validation for protectable objects.AzureVmWorkloadSqlDatabaseProtectableItem
withProtectionState(ProtectionStatus protectionState)
Set the protectionState property: State of the back up item.AzureVmWorkloadSqlDatabaseProtectableItem
withServerName(String serverName)
Set the serverName property: Host/Cluster Name for instance or AG.AzureVmWorkloadSqlDatabaseProtectableItem
withSubinquireditemcount(Integer subinquireditemcount)
Set the subinquireditemcount property: For instance or AG, indicates number of DB's present.AzureVmWorkloadSqlDatabaseProtectableItem
withSubprotectableitemcount(Integer subprotectableitemcount)
Set the subprotectableitemcount property: For instance or AG, indicates number of DB's to be protected.AzureVmWorkloadSqlDatabaseProtectableItem
withWorkloadType(String workloadType)
Set the workloadType property: Type of workload for the backup management.-
Methods inherited from class com.azure.resourcemanager.recoveryservicesbackup.models.AzureVmWorkloadProtectableItem
isAutoProtectable, isAutoProtected, parentName, parentUniqueName, prebackupvalidation, serverName, subinquireditemcount, subprotectableitemcount
-
Methods inherited from class com.azure.resourcemanager.recoveryservicesbackup.models.WorkloadProtectableItem
backupManagementType, friendlyName, protectionState, workloadType
-
-
-
-
Method Detail
-
withParentName
public AzureVmWorkloadSqlDatabaseProtectableItem withParentName(String parentName)
Set the parentName property: Name for instance or AG.- Overrides:
withParentName
in classAzureVmWorkloadProtectableItem
- Parameters:
parentName
- the parentName value to set.- Returns:
- the AzureVmWorkloadProtectableItem object itself.
-
withParentUniqueName
public AzureVmWorkloadSqlDatabaseProtectableItem withParentUniqueName(String parentUniqueName)
Set the parentUniqueName property: Parent Unique Name is added to provide the service formatted URI Name of the Parent Only Applicable for data bases where the parent would be either Instance or a SQL AG.- Overrides:
withParentUniqueName
in classAzureVmWorkloadProtectableItem
- Parameters:
parentUniqueName
- the parentUniqueName value to set.- Returns:
- the AzureVmWorkloadProtectableItem object itself.
-
withServerName
public AzureVmWorkloadSqlDatabaseProtectableItem withServerName(String serverName)
Set the serverName property: Host/Cluster Name for instance or AG.- Overrides:
withServerName
in classAzureVmWorkloadProtectableItem
- Parameters:
serverName
- the serverName value to set.- Returns:
- the AzureVmWorkloadProtectableItem object itself.
-
withIsAutoProtectable
public AzureVmWorkloadSqlDatabaseProtectableItem withIsAutoProtectable(Boolean isAutoProtectable)
Set the isAutoProtectable property: Indicates if protectable item is auto-protectable.- Overrides:
withIsAutoProtectable
in classAzureVmWorkloadProtectableItem
- Parameters:
isAutoProtectable
- the isAutoProtectable value to set.- Returns:
- the AzureVmWorkloadProtectableItem object itself.
-
withIsAutoProtected
public AzureVmWorkloadSqlDatabaseProtectableItem withIsAutoProtected(Boolean isAutoProtected)
Set the isAutoProtected property: Indicates if protectable item is auto-protected.- Overrides:
withIsAutoProtected
in classAzureVmWorkloadProtectableItem
- Parameters:
isAutoProtected
- the isAutoProtected value to set.- Returns:
- the AzureVmWorkloadProtectableItem object itself.
-
withSubinquireditemcount
public AzureVmWorkloadSqlDatabaseProtectableItem withSubinquireditemcount(Integer subinquireditemcount)
Set the subinquireditemcount property: For instance or AG, indicates number of DB's present.- Overrides:
withSubinquireditemcount
in classAzureVmWorkloadProtectableItem
- Parameters:
subinquireditemcount
- the subinquireditemcount value to set.- Returns:
- the AzureVmWorkloadProtectableItem object itself.
-
withSubprotectableitemcount
public AzureVmWorkloadSqlDatabaseProtectableItem withSubprotectableitemcount(Integer subprotectableitemcount)
Set the subprotectableitemcount property: For instance or AG, indicates number of DB's to be protected.- Overrides:
withSubprotectableitemcount
in classAzureVmWorkloadProtectableItem
- Parameters:
subprotectableitemcount
- the subprotectableitemcount value to set.- Returns:
- the AzureVmWorkloadProtectableItem object itself.
-
withPrebackupvalidation
public AzureVmWorkloadSqlDatabaseProtectableItem withPrebackupvalidation(PreBackupValidation prebackupvalidation)
Set the prebackupvalidation property: Pre-backup validation for protectable objects.- Overrides:
withPrebackupvalidation
in classAzureVmWorkloadProtectableItem
- Parameters:
prebackupvalidation
- the prebackupvalidation value to set.- Returns:
- the AzureVmWorkloadProtectableItem object itself.
-
withBackupManagementType
public AzureVmWorkloadSqlDatabaseProtectableItem withBackupManagementType(String backupManagementType)
Set the backupManagementType property: Type of backup management to backup an item.- Overrides:
withBackupManagementType
in classAzureVmWorkloadProtectableItem
- Parameters:
backupManagementType
- the backupManagementType value to set.- Returns:
- the WorkloadProtectableItem object itself.
-
withWorkloadType
public AzureVmWorkloadSqlDatabaseProtectableItem withWorkloadType(String workloadType)
Set the workloadType property: Type of workload for the backup management.- Overrides:
withWorkloadType
in classAzureVmWorkloadProtectableItem
- Parameters:
workloadType
- the workloadType value to set.- Returns:
- the WorkloadProtectableItem object itself.
-
withFriendlyName
public AzureVmWorkloadSqlDatabaseProtectableItem withFriendlyName(String friendlyName)
Set the friendlyName property: Friendly name of the backup item.- Overrides:
withFriendlyName
in classAzureVmWorkloadProtectableItem
- Parameters:
friendlyName
- the friendlyName value to set.- Returns:
- the WorkloadProtectableItem object itself.
-
withProtectionState
public AzureVmWorkloadSqlDatabaseProtectableItem withProtectionState(ProtectionStatus protectionState)
Set the protectionState property: State of the back up item.- Overrides:
withProtectionState
in classAzureVmWorkloadProtectableItem
- Parameters:
protectionState
- the protectionState value to set.- Returns:
- the WorkloadProtectableItem object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validate
in classAzureVmWorkloadProtectableItem
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-